From 867506f3b0f0c23128d601a8812de023078c88b4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 20 Mar 1998 16:35:19 +0000 Subject: Update. 1998-03-20 16:24 Ulrich Drepper * 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. --- sysdeps/unix/sysv/linux/sys/mount.h | 46 +++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 17 deletions(-) (limited to 'sysdeps/unix/sysv/linux/sys/mount.h') 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 +#include #include -__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, -- cgit v1.2.3