Back to index

glibc  2.9
Defines | Enumerations | Functions
mount.h File Reference
#include <features.h>
#include <sys/ioctl.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BLOCK_SIZE   1024
#define BLOCK_SIZE_BITS   10
#define MS_RDONLY   MS_RDONLY
#define MS_NOSUID   MS_NOSUID
#define MS_NODEV   MS_NODEV
#define MS_NOEXEC   MS_NOEXEC
#define MS_SYNCHRONOUS   MS_SYNCHRONOUS
#define MS_REMOUNT   MS_REMOUNT
#define MS_MANDLOCK   MS_MANDLOCK
#define S_WRITE   S_WRITE
#define S_APPEND   S_APPEND
#define S_IMMUTABLE   S_IMMUTABLE
#define MS_NOATIME   MS_NOATIME
#define MS_NODIRATIME   MS_NODIRATIME
#define MS_BIND   MS_BIND
#define MS_RMT_MASK
#define MS_MGC_VAL   0xc0ed0000 /* Magic flag number to indicate "new" flags */
#define MS_MGC_MSK   0xffff0000 /* Magic flag number mask */
#define BLKROSET   _IO(0x12, 93) /* Set device read-only (0 = read-write). */
#define BLKROGET   _IO(0x12, 94) /* Get read-only status (0 = read_write). */
#define BLKRRPART   _IO(0x12, 95) /* Re-read partition table. */
#define BLKGETSIZE   _IO(0x12, 96) /* Return device size. */
#define BLKFLSBUF   _IO(0x12, 97) /* Flush buffer cache. */
#define BLKRASET   _IO(0x12, 98) /* Set read ahead for block device. */
#define BLKRAGET   _IO(0x12, 99) /* Get current read ahead setting. */
#define BLKFRASET   _IO(0x12,100) /* Set filesystem read-ahead. */
#define BLKFRAGET   _IO(0x12,101) /* Get filesystem read-ahead. */
#define BLKSECTSET   _IO(0x12,102) /* Set max sectors per request. */
#define BLKSECTGET   _IO(0x12,103) /* Get max sectors per request. */
#define BLKSSZGET   _IO(0x12,104) /* Get block device sector size. */
#define BLKBSZGET   _IOR(0x12,112,size_t)
#define BLKBSZSET   _IOW(0x12,113,size_t)
#define BLKGETSIZE64   _IOR(0x12,114,size_t) /* return device size. */
#define MNT_FORCE   MNT_FORCE

Enumerations

enum  {
  MS_RDONLY = 1, MS_RDONLY = 1, MS_NOSUID = 2, MS_NOSUID = 2,
  MS_NODEV = 4, MS_NODEV = 4, MS_NOEXEC = 8, MS_NOEXEC = 8,
  MS_SYNCHRONOUS = 16, MS_SYNCHRONOUS = 16, MS_REMOUNT = 32, MS_REMOUNT = 32,
  MS_MANDLOCK = 64, MS_MANDLOCK = 64, S_WRITE = 128, S_WRITE = 128,
  S_APPEND = 256, S_APPEND = 256, S_IMMUTABLE = 512, S_IMMUTABLE = 512,
  MS_NOATIME = 1024, MS_NOATIME = 1024, MS_NODIRATIME = 2048, MS_NODIRATIME = 2048,
  MS_BIND = 4096, MS_BIND = 4096
}
enum  { MNT_FORCE }

Functions

__BEGIN_DECLS int mount (__const char *__special_file, __const char *__dir, __const char *__fstype, unsigned long int __rwflag, __const void *__data) __THROW
int umount (__const char *__special_file) __THROW
int umount2 (__const char *__special_file, int __flags) __THROW

Define Documentation

#define BLKBSZGET   _IOR(0x12,112,size_t)

Definition at line 91 of file mount.h.

#define BLKBSZSET   _IOW(0x12,113,size_t)

Definition at line 92 of file mount.h.

#define BLKFLSBUF   _IO(0x12, 97) /* Flush buffer cache. */

Definition at line 83 of file mount.h.

#define BLKFRAGET   _IO(0x12,101) /* Get filesystem read-ahead. */

Definition at line 87 of file mount.h.

#define BLKFRASET   _IO(0x12,100) /* Set filesystem read-ahead. */

Definition at line 86 of file mount.h.

#define BLKGETSIZE   _IO(0x12, 96) /* Return device size. */

Definition at line 82 of file mount.h.

#define BLKGETSIZE64   _IOR(0x12,114,size_t) /* return device size. */

Definition at line 93 of file mount.h.

#define BLKRAGET   _IO(0x12, 99) /* Get current read ahead setting. */

Definition at line 85 of file mount.h.

#define BLKRASET   _IO(0x12, 98) /* Set read ahead for block device. */

Definition at line 84 of file mount.h.

#define BLKROGET   _IO(0x12, 94) /* Get read-only status (0 = read_write). */

Definition at line 80 of file mount.h.

#define BLKROSET   _IO(0x12, 93) /* Set device read-only (0 = read-write). */

Definition at line 79 of file mount.h.

#define BLKRRPART   _IO(0x12, 95) /* Re-read partition table. */

Definition at line 81 of file mount.h.

#define BLKSECTGET   _IO(0x12,103) /* Get max sectors per request. */

Definition at line 89 of file mount.h.

#define BLKSECTSET   _IO(0x12,102) /* Set max sectors per request. */

Definition at line 88 of file mount.h.

#define BLKSSZGET   _IO(0x12,104) /* Get block device sector size. */

Definition at line 90 of file mount.h.

#define BLOCK_SIZE   1024

Definition at line 28 of file mount.h.

#define BLOCK_SIZE_BITS   10

Definition at line 29 of file mount.h.

#define MNT_FORCE   MNT_FORCE
#define MS_BIND   MS_BIND

Definition at line 61 of file mount.h.

#define MS_MANDLOCK   MS_MANDLOCK

Definition at line 49 of file mount.h.

#define MS_MGC_MSK   0xffff0000 /* Magic flag number mask */

Definition at line 72 of file mount.h.

#define MS_MGC_VAL   0xc0ed0000 /* Magic flag number to indicate "new" flags */

Definition at line 71 of file mount.h.

#define MS_NOATIME   MS_NOATIME

Definition at line 57 of file mount.h.

#define MS_NODEV   MS_NODEV

Definition at line 41 of file mount.h.

Definition at line 59 of file mount.h.

#define MS_NOEXEC   MS_NOEXEC

Definition at line 43 of file mount.h.

#define MS_NOSUID   MS_NOSUID

Definition at line 39 of file mount.h.

#define MS_RDONLY   MS_RDONLY

Definition at line 37 of file mount.h.

#define MS_REMOUNT   MS_REMOUNT

Definition at line 47 of file mount.h.

#define MS_RMT_MASK
Value:

Definition at line 65 of file mount.h.

Definition at line 45 of file mount.h.

#define S_APPEND   S_APPEND

Definition at line 53 of file mount.h.

#define S_IMMUTABLE   S_IMMUTABLE

Definition at line 55 of file mount.h.

#define S_WRITE   S_WRITE

Definition at line 51 of file mount.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
MS_RDONLY 
MS_RDONLY 
MS_NOSUID 
MS_NOSUID 
MS_NODEV 
MS_NODEV 
MS_NOEXEC 
MS_NOEXEC 
MS_SYNCHRONOUS 
MS_SYNCHRONOUS 
MS_REMOUNT 
MS_REMOUNT 
MS_MANDLOCK 
MS_MANDLOCK 
S_WRITE 
S_WRITE 
S_APPEND 
S_APPEND 
S_IMMUTABLE 
S_IMMUTABLE 
MS_NOATIME 
MS_NOATIME 
MS_NODIRATIME 
MS_NODIRATIME 
MS_BIND 
MS_BIND 

Definition at line 34 of file mount.h.

{
  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
  MS_NODIRATIME = 2048,            /* Do not update directory access times.  */
#define MS_NODIRATIME       MS_NODIRATIME
  MS_BIND = 4096,           /* Bind directory at different place.  */
#define MS_BIND             MS_BIND
};
anonymous enum
Enumerator:
MNT_FORCE 

Definition at line 97 of file mount.h.

{
  MNT_FORCE = 1                    /* Force unmounting.  */
#define MNT_FORCE MNT_FORCE
};

Function Documentation

__BEGIN_DECLS int mount ( __const char *  __special_file,
__const char *  __dir,
__const char *  __fstype,
unsigned long int  __rwflag,
__const void *  __data 
)
int umount ( __const char *  __special_file)
int umount2 ( __const char *  __special_file,
int  __flags 
)