#ifndef _SYS_MOUNT_H
#define _SYS_MOUNT_H 1
#include
#include
#define BLOCK_SIZE 1024
#define BLOCK_SIZE_BITS 10
enum
{
MS_RDONLY = 1,
#define MS_RDONLY MS_RDONLY
MS_NOSUID = 2,
#define MS_NOSUID MS_NOSUID
MS_NODEV = 4,
#define MS_NODEV MS_NODEV
MS_NOEXEC = 8,
#define MS_NOEXEC MS_NOEXEC
MS_SYNCHRONOUS = 16,
#define MS_SYNCHRONOUS MS_SYNCHRONOUS
MS_REMOUNT = 32,
#define MS_REMOUNT MS_REMOUNT
MS_MANDLOCK = 64,
#define MS_MANDLOCK MS_MANDLOCK
S_WRITE = 128,
#define S_WRITE S_WRITE
S_APPEND = 256,
#define S_APPEND S_APPEND
S_IMMUTABLE = 512,
#define S_IMMUTABLE S_IMMUTABLE
MS_NOATIME = 1024,
#define MS_NOATIME MS_NOATIME
MS_NODIRATIME = 2048,
#define MS_NODIRATIME MS_NODIRATIME
MS_BIND = 4096,
#define MS_BIND MS_BIND
};
#define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_NOATIME \
|MS_NODIRATIME)
#define MS_MGC_VAL 0xc0ed0000
#define MS_MGC_MSK 0xffff0000
#define BLKROSET _IO(0x12, 93)
#define BLKROGET _IO(0x12, 94)
#define BLKRRPART _IO(0x12, 95)
#define BLKGETSIZE _IO(0x12, 96)
#define BLKFLSBUF _IO(0x12, 97)
#define BLKRASET _IO(0x12, 98)
#define BLKRAGET _IO(0x12, 99)
#define BLKFRASET _IO(0x12,100)
#define BLKFRAGET _IO(0x12,101)
#define BLKSECTSET _IO(0x12,102)
#define BLKSECTGET _IO(0x12,103)
#define BLKSSZGET _IO(0x12,104)
#define BLKBSZGET _IOR(0x12,112,size_t)
#define BLKBSZSET _IOW(0x12,113,size_t)
#define BLKGETSIZE64 _IOR(0x12,114,size_t)
enum
{
MNT_FORCE = 1
#define MNT_FORCE MNT_FORCE
};
__BEGIN_DECLS
extern int mount (__const char *__special_file, __const char *__dir,
__const char *__fstype, unsigned long int __rwflag,
__const void *__data) __THROW;
extern int umount (__const char *__special_file) __THROW;
extern int umount2 (__const char *__special_file, int __flags) __THROW;
__END_DECLS
#endif
|