- Moved (u)mount prototypes from unistd.h to sys/mount.h.
- Prepared mount system call to accept multiple mount flags instead of just read_only (however, it remains backwards compatible). - Updated the man mount(2) to reflect new header file usage. - Updated badblocks, newroot, mount, and umount commands to use the new header file.
This commit is contained in:
21
include/sys/mount.h
Executable file
21
include/sys/mount.h
Executable file
@@ -0,0 +1,21 @@
|
||||
/* <sys/mount.h>
|
||||
* definitions for mount(2)
|
||||
*/
|
||||
|
||||
#ifndef _MOUNT_H
|
||||
#define _MOUNT_H
|
||||
|
||||
#define MS_RDONLY 0x001 /* Mount device read only */
|
||||
#define MS_REUSE 0x002 /* Tell RS to try reusing binary from memory */
|
||||
|
||||
|
||||
/* Function Prototypes. */
|
||||
#ifndef _ANSI_H
|
||||
#include <ansi.h>
|
||||
#endif
|
||||
|
||||
_PROTOTYPE( int mount, (char *_spec, char *_name, int _mountflags,
|
||||
char *type, char *args) );
|
||||
_PROTOTYPE( int umount, (const char *_name) );
|
||||
|
||||
#endif /* _MOUNT_H */
|
||||
Reference in New Issue
Block a user