- 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:
Thomas Veerman
2009-08-12 19:57:37 +00:00
parent 1defc4fc3a
commit c2ffe723d1
8 changed files with 37 additions and 11 deletions

View File

@@ -25,6 +25,7 @@
#include <minix/type.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mount.h>
#include <dirent.h>
#include <stdlib.h>

View File

@@ -6,7 +6,7 @@
#include <stdlib.h>
#include <dirent.h>
#include <string.h>
#include <unistd.h>
#include <sys/mount.h>
#include <fcntl.h>
#include <minix/config.h>
#include <minix/const.h>

View File

@@ -8,7 +8,7 @@ Replace the current root with a new one
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/mount.h>
int main(int argc, char *argv[])
{

View File

@@ -13,6 +13,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/mount.h>
#include <stdio.h>
_PROTOTYPE(int main, (int argc, char **argv));