Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mount.h « sys « include « cygwin « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5061580110241e698c1c014db7a094d4cf988e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* sys/mount.h

This file is part of Cygwin.

This software is a copyrighted work licensed under the terms of the
Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
details. */

#ifndef _SYS_MOUNT_H
#define _SYS_MOUNT_H

#ifdef __CYGWIN__	/* Build tweak for native Cygwin utils */
#include <cygwin/bits.h>
#endif

#define BLOCK_SIZE 1024
#define BLOCK_SIZE_BITS	10

#ifdef __cplusplus
extern "C" {
#endif

enum
{
  MOUNT_BINARY =	_BIT ( 1),	/* "binary" format read/writes */
  MOUNT_SYSTEM =	_BIT ( 3),	/* mount point came from system table */
  MOUNT_EXEC   =	_BIT ( 4),	/* Any file in the mounted directory
					   gets 'x' bit */
  MOUNT_CYGDRIVE   =	_BIT ( 5),	/* mount point refers to cygdrive
					   device mount */
  MOUNT_CYGWIN_EXEC =	_BIT ( 6),	/* file or directory is or contains a
					   cygwin executable */
  MOUNT_SPARSE	=	_BIT ( 7),	/* Support automatic sparsifying of
					   files. */
  MOUNT_NOTEXEC =	_BIT ( 8),	/* don't check files for executable magic */
  MOUNT_DEVFS =		_BIT ( 9),	/* /device "filesystem" */
  MOUNT_PROC =		_BIT (10),	/* /proc "filesystem" */
  MOUNT_RO =		_BIT (12),	/* read-only "filesystem" */
  MOUNT_NOACL =		_BIT (13),	/* support reading/writing ACLs */
  MOUNT_NOPOSIX =	_BIT (14),	/* Case insensitve path handling */
  MOUNT_OVERRIDE =	_BIT (15),	/* Allow overriding of root */
  MOUNT_IMMUTABLE =	_BIT (16),	/* Mount point can't be changed */
  MOUNT_AUTOMATIC =	_BIT (17),	/* Mount point was added automatically */
  MOUNT_DOS =		_BIT (18),	/* convert leading spaces and trailing
					   dots and spaces to private use area */
  MOUNT_IHASH =		_BIT (19),	/* Enforce hash values for inode numbers */
  MOUNT_BIND =		_BIT (20),	/* Allows bind syntax in fstab file. */
  MOUNT_USER_TEMP =	_BIT (21),	/* Mount the user's $TMP. */
  MOUNT_DONT_USE =	_BIT (31)	/* conversion to signed happens. */
};

int mount (const char *, const char *, unsigned __flags);
int umount (const char *);
int cygwin_umount (const char *__path, unsigned __flags);

#ifdef __cplusplus
};
#endif

#endif /* _SYS_MOUNT_H */