Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
FS_MOUNT(3)	       FreeBSD Library Functions Manual		   FS_MOUNT(3)

NAME
     fs_mount, fs_unmount, -- simplified file system mounting

LIBRARY
     PDEL Library (libpdel, -lpdel)

SYNOPSIS
     #include <pdel/sys/fs_mount.h>

     int
     fs_mount(const char *path,	int flags);

     int
     fs_unmount(const char *path, int flags);

DESCRIPTION
     These functions provide a simplified interface to mount(2)	and
     unmount(2).

     fs_mount()	attempts to mount the filesystem on the	directory path.	 The
     device to be mounted must be described in /etc/fstab.  The	flags are
     passed unchanged to mount(2).

     fs_ummount() attempts to unmount the filesystem mounted on	the directory
     path.  The	flags are passed unchanged to unmount(2).

RETURN VALUES
     fs_mount()	and fs_unmount() return	0 if successful, otherwise -1 is re-
     turned and	errno is set accordingly; see mount(2) for the possible	values
     for errno.

SEE ALSO
     mount(2), libpdel(3)

HISTORY
     The PDEL library was developed at Packet Design, LLC.
     http://www.packetdesign.com/

AUTHORS
     Archie Cobbs <archie@freebsd.org>

FreeBSD	13.0			April 22, 2002			  FreeBSD 13.0

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO | HISTORY | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=fs_mount&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help