*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> delmntent (3c)              
Title
Content
Arch
Section
 

Contents


DELMNTENT(3)							  DELMNTENT(3)


NAME    [Toc]    [Back]

     delmntent - remove	entry from mounted filesystem description file

SYNOPSIS    [Toc]    [Back]

     #include <mntent.h>

     int delmntent(char	*filep,	struct mntent *mnt);

DESCRIPTION    [Toc]    [Back]

     This routine removes entries from the mounted file	system description
     file /etc/mtab.  The filep	argument is the	description file, usually
     /etc/mtab.	 The mnt argument is a pointer to an object with the following
     structure containing the broken-out fields	of a line in the filesystem
     description file, <mntent.h>.  The	fields have meanings described in
     fstab(4).

	  struct mntent	{
	       char *mnt_fsname;   /* file system name */
	       char *mnt_dir; /* file system path prefix */
	       char *mnt_type;	   /* dbg, efs,	nfs */
	       char *mnt_opts;	   /* ro, hide,	etc. */
	       int  mnt_freq; /* dump frequency, in days */
	       int  mnt_passno;	   /* pass number on parallel fsck */
	  };


     Any combination of	the fields mnt_fsname, mnt_dir,	mnt_type, and mnt_opts
     may be specified in mnt to	describe the entry to be removed.  If a	field
     is	non-NULL, the value given must match exactly to	select this entry for
     removal.  Only the	first entry which matches all non-NULL fields is
     removed.  The return value	is 1 if	an entry is removed, 0 if no match is
     found, and	-1 if an error occurs.

FILES    [Toc]    [Back]

     /etc/mtab

SEE ALSO    [Toc]    [Back]

      
      
     getmntent(3), fstab(4)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
rmfstabentry IRIX remove a filesystem entry from the /etc/fstab file.
mtab IRIX mounted filesystem table
addfstabentry IRIX add a filesystem entry into the /etc/fstab file.
logout FreeBSD remove an entry from the utmp file
unlink HP-UX remove directory entry; delete file
unsharefs IRIX remove a filesystem from the accessable list.
attr_remove IRIX remove a user attribute of a filesystem object
getfsstat NetBSD get list of all mounted file systems
getmntinfo FreeBSD get information about mounted file systems
getmntinfo_r Tru64 Get information about mounted file systems
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service