1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00

With the change to the 4.4Lite2 mount interface we don't need special

conf files.
This commit is contained in:
David E. O'Brien 1998-09-05 00:58:37 +00:00
parent 512a3bb59b
commit 72c53665f2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38831
4 changed files with 5 additions and 77 deletions

View File

@ -1,67 +0,0 @@
/*
* Copyright (c) 1997-1998 Erez Zadok
* Copyright (c) 1990 Jan-Simon Pendry
* Copyright (c) 1990 Imperial College of Science, Technology & Medicine
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Jan-Simon Pendry at Imperial College, London.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* %W% (Berkeley) %G%
*
* $Id: mount_freebsd3.c,v 1.1.1.1 1998/08/23 22:07:20 obrien Exp $
*
*/
/*
* FreeBSD 3.x (as of snapshot 3.0-980311-SNAP) Mount helper
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif /* HAVE_CONFIG_H */
#include <am_defs.h>
#include <amu.h>
/*
* Map from conventional mount arguments
* to FreeBSD 3.0 style arguments.
*/
int
mount_freebsd3(MTYPE_TYPE type, const char *dir, int flags, voidp data)
{
return mount(type,
dir,
flags,
data);
}

View File

@ -1,3 +0,0 @@
/* $srcdir/conf/trap/trap_freebsd3.h */
extern int mount_freebsd3(MTYPE_TYPE type, const char *dir, int flags, voidp data);
#define MOUNT_TRAP(type, mnt, flags, mnt_data) mount_freebsd3(type, mnt->mnt_dir, flags, mnt_data)

View File

@ -14,12 +14,11 @@
* in $srcdir/aux/macros.
*/
/* $srcdir/conf/trap/trap_freebsd3.h */
/* $srcdir/conf/trap/trap_default.h */
#ifdef COMMENT_GET_DIRECTLY_FROM_FILE
extern int mount_freebsd3(MTYPE_TYPE type, const char *dir, int flags, voidp data);
#define MOUNT_TRAP(type, mnt, flags, mnt_data) mount_freebsd3(type, mnt->mnt_dir, flags, mnt_data)
#define MOUNT_TRAP(type, mnt, flags, mnt_data) mount(type, mnt->mnt_dir, flags, mnt_data)
#endif /* COMMENT_GET_DIRECTLY_FROM_FILE */
#include "conf/trap/trap_freebsd3.h"
#include "conf/trap/trap_default.h"
/* End of included MOUNT_TRAP macro definition file */

View File

@ -3,12 +3,11 @@
# Makefile for amd
# This file is under a "BSD" copyright (c) by David O'Brien 1998
#
# $Id$
# $Id: Makefile,v 1.1 1998/08/27 08:09:41 obrien Exp $
.PATH: ${.CURDIR}/../../../contrib/amd/libamu \
${.CURDIR}/../../../contrib/amd/conf/transp \
${.CURDIR}/../../../contrib/amd/conf/mtab \
${.CURDIR}/../../../contrib/amd/conf/mount \
${.CURDIR}/../../../contrib/amd/conf/umount
LIB= amu
@ -17,7 +16,7 @@ SRCS= hasmntopt.c misc_rpc.c mount_fs.c mtab.c nfs_prot_xdr.c \
util.c wire.c xutil.c
# These would be links created by the GNU-style configure
SRCS+= transp_sockets.c mtab_bsd.c mount_freebsd3.c umount_bsd44.c
SRCS+= transp_sockets.c mtab_bsd.c umount_bsd44.c
CFLAGS+= -I${.CURDIR}/../../../contrib/amd/libamu