about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sys
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-03-20 16:35:19 +0000
committerUlrich Drepper <drepper@redhat.com>1998-03-20 16:35:19 +0000
commit867506f3b0f0c23128d601a8812de023078c88b4 (patch)
treecc04aaefd099a90961bebdac8ea60cbcbe218d47 /sysdeps/unix/sysv/linux/sys
parent8e31cf7e9f269668c6c86db9813839efc2fd434b (diff)
downloadglibc-867506f3b0f0c23128d601a8812de023078c88b4.tar.gz
glibc-867506f3b0f0c23128d601a8812de023078c88b4.tar.xz
glibc-867506f3b0f0c23128d601a8812de023078c88b4.zip
Update.
1998-03-20 16:24  Ulrich Drepper  <drepper@cygnus.com>

	* libc.map: Add statvfs, fstatvfs, statvfs64, and fstatvfs64.
	* io/Makefile (headers): Add sys/statvfs.h and bits/statvfs.h.
	* io/sys/statvfs.h: New file.
	* sysdeps/generic/fstatvfs.h: New file.
	* sysdeps/generic/statvfs.h: New file.
	* sysdeps/generic/fstatvfs64.h: New file.
	* sysdeps/generic/statvfs64.h: New file.
	* sysdeps/generic/bits/statvfs.h: New file.
	* sysdeps/unix/sysv/linux/fstatvfs.c: New file.
	* sysdeps/unix/sysv/linux/statvfs.c: New file.
	* sysdeps/unix/sysv/linux/bits/statvfs.h: New file.

	* sysdeps/unix/sysv/linux/bits/statfs.h: Correct type for f_files
	and f_ffree elements.

	* sysdeps/unix/sysv/linux/sys/mount.h: Pretty print.  Define
	mount options in enum.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sys')
-rw-r--r--sysdeps/unix/sysv/linux/sys/mount.h46
1 files changed, 29 insertions, 17 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h
index f7d45704d2..c9ace10822 100644
--- a/sysdeps/unix/sysv/linux/sys/mount.h
+++ b/sysdeps/unix/sysv/linux/sys/mount.h
@@ -1,5 +1,5 @@
 /* Header file for mounting/unmount Linux filesystems.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -20,32 +20,42 @@
 /* This is taken from /usr/include/linux/fs.h.  */
 
 #ifndef _SYS_MOUNT_H
-
 #define _SYS_MOUNT_H	1
-#include <features.h>
 
+#include <features.h>
 #include <sys/ioctl.h>
 
-__BEGIN_DECLS
-
 #define BLOCK_SIZE	1024
 #define BLOCK_SIZE_BITS	10
 
 
 /* These are the fs-independent mount-flags: up to 16 flags are
    supported  */
-#define MS_RDONLY	1	/* Mount read-only.  */
-#define MS_NOSUID	2	/* Ignore suid and sgid bits.  */
-#define MS_NODEV	4	/* Disallow access to device special files.  */
-#define MS_NOEXEC	8	/* Disallow program execution.  */
-#define MS_SYNCHRONOUS	16	/* Writes are synced at once.  */
-#define MS_REMOUNT	32	/* Alter flags of a mounted FS.  */
-#define MS_MANDLOCK	64	/* Allow mandatory locks on an FS.  */
-#define S_WRITE		128	/* Write on file/directory/symlink.  */
-#define S_APPEND	256	/* Append-only file.  */
-#define S_IMMUTABLE	512	/* Immutable file.  */
-#define MS_NOATIME	1024	/* Do not update access times.  */
-
+enum
+{
+  MS_RDONLY = 1,		/* Mount read-only.  */
+#define MS_RDONLY	MS_RDONLY
+  MS_NOSUID = 2,		/* Ignore suid and sgid bits.  */
+#define MS_NOSUID	MS_NOSUID
+  MS_NODEV = 4,			/* Disallow access to device special files.  */
+#define MS_NODEV	MS_NODEV
+  MS_NOEXEC = 8,		/* Disallow program execution.  */
+#define MS_NOEXEC	MS_NOEXEC
+  MS_SYNCHRONOUS = 16,		/* Writes are synced at once.  */
+#define MS_SYNCHRONOUS	MS_SYNCHRONOUS
+  MS_REMOUNT = 32,		/* Alter flags of a mounted FS.  */
+#define MS_REMOUNT	MS_REMOUNT
+  MS_MANDLOCK = 64,		/* Allow mandatory locks on an FS.  */
+#define MS_MANDLOCK	MS_MANDLOCK
+  S_WRITE = 128,		/* Write on file/directory/symlink.  */
+#define S_WRITE		S_WRITE
+  S_APPEND = 256,		/* Append-only file.  */
+#define S_APPEND	S_APPEND
+  S_IMMUTABLE = 512,		/* Immutable file.  */
+#define S_IMMUTABLE	S_IMMUTABLE
+  MS_NOATIME = 1024		/* Do not update access times.  */
+#define MS_NOATIME	MS_NOATIME
+};
 
 /* Flags that can be altered by MS_REMOUNT  */
 #define MS_RMT_MASK (MS_RDONLY | MS_MANDLOCK)
@@ -70,6 +80,8 @@ __BEGIN_DECLS
 #define BLKRAGET   _IO(0x12, 99) /* Get current read ahead setting.  */
 
 
+__BEGIN_DECLS
+
 /* Mount a filesystem.  */
 extern int mount __P ((__const char *__special_file, __const char *__dir,
 		       __const char *__fstype, unsigned long int __rwflag,