Don't utilize the pre-4.4Lite2 INITMOUNTNAMES compatibility cruft.

(bde will remove it soon)
This commit is contained in:
obrien 1998-09-04 08:55:29 +00:00
parent 8a98c63bcd
commit 874cec2b9f
2 changed files with 16 additions and 17 deletions

View File

@ -38,7 +38,7 @@
*
* %W% (Berkeley) %G%
*
* $Id: mount_freebsd3.c,v 5.2.2.1 1992/02/09 15:10:08 jsp beta $
* $Id: mount_freebsd3.c,v 1.1.1.1 1998/08/23 22:07:20 obrien Exp $
*
*/
@ -59,9 +59,8 @@
int
mount_freebsd3(MTYPE_TYPE type, const char *dir, int flags, voidp data)
{
char const *namelist[] = INITMOUNTNAMES;
return mount(namelist[type],
return mount(type,
dir,
flags,
data);

View File

@ -1,4 +1,4 @@
/* $Id$ */
/* $Id: config.h,v 1.6 1998/08/27 08:09:41 obrien Exp $ */
/* portions derived from
$NetBSD: config.h,v 1.11 1998/08/08 22:33:37 christos Exp $ */
/* config.h. Generated automatically by configure. */
@ -155,7 +155,7 @@
*/
/* Mount(2) type/name for UFS filesystem */
#define MOUNT_TYPE_UFS MOUNT_UFS
#define MOUNT_TYPE_UFS "ufs"
/* Mount(2) type/name for XFS filesystem (irix) */
/* #undef MOUNT_TYPE_XFS */
@ -164,29 +164,29 @@
/* #undef MOUNT_TYPE_EFS */
/* Mount(2) type/name for NFS filesystem */
#define MOUNT_TYPE_NFS MOUNT_NFS
#define MOUNT_TYPE_NFS "nfs"
/* Mount(2) type/name for NFS3 filesystem */
#define MOUNT_TYPE_NFS3 MOUNT_NFS3
#define MOUNT_TYPE_NFS3 "nfs"
/* Mount(2) type/name for PCFS filesystem */
/* XXX: conf/trap/trap_hpux.h may override this definition for HPUX 9.0 */
#define MOUNT_TYPE_PCFS MOUNT_MSDOS
#define MOUNT_TYPE_PCFS "msdos"
/* Mount(2) type/name for LOFS filesystem */
#define MOUNT_TYPE_LOFS MOUNT_LOFS
#define MOUNT_TYPE_LOFS "lofs"
/* Mount(2) type/name for CDFS filesystem */
#define MOUNT_TYPE_CDFS MOUNT_CD9660
#define MOUNT_TYPE_CDFS "cd9660"
/* Mount(2) type/name for TFS filesystem */
#define MOUNT_TYPE_TFS MOUNT_TFS
#define MOUNT_TYPE_TFS "tfs"
/* Mount(2) type/name for TMPFS filesystem */
/* #undef MOUNT_TYPE_TMPFS */
/* Mount(2) type/name for MFS filesystem */
#define MOUNT_TYPE_MFS MOUNT_MFS
#define MOUNT_TYPE_MFS "mfs"
/* Mount(2) type/name for CFS (crypto) filesystem */
/* #undef MOUNT_TYPE_CFS */
@ -201,13 +201,13 @@
/* #undef MOUNT_TYPE_IGNORE */
/* Mount(2) type/name for NULLFS (loopback on bsd44) filesystem */
#define MOUNT_TYPE_NULLFS MOUNT_NULL
#define MOUNT_TYPE_NULLFS "null"
/* Mount(2) type/name for UNIONFS filesystem */
#define MOUNT_TYPE_UNIONFS MOUNT_UNION
#define MOUNT_TYPE_UNIONFS "union"
/* Mount(2) type/name for UMAPFS (uid/gid mapping) filesystem */
#define MOUNT_TYPE_UMAPFS MOUNT_UMAP
#define MOUNT_TYPE_UMAPFS "umap"
/*
@ -1020,10 +1020,10 @@
#define AUTH_CREATE_GIDLIST_TYPE gid_t
/* The string used in printf to print the mount-type field of mount(2) */
#define MTYPE_PRINTF_TYPE "%d"
#define MTYPE_PRINTF_TYPE "%s"
/* Type of the mount-type field in the mount() system call */
#define MTYPE_TYPE int
#define MTYPE_TYPE const char *
/* Define a type for the pcfs_args structure */
#define pcfs_args_t struct msdosfs_args