OSDN Git Service

* dcrt0.cc (dll_crt0_1): Move internal locale setting prior to potential
[pf3gnuchains/pf3gnuchains3x.git] / winsup / cygwin / nfs.h
1 /* nfs.h
2
3    Copyright 2008 Red Hat, Inc.
4
5 This software is a copyrighted work licensed under the terms of the
6 Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
7 details. */
8
9 #define NFS_ACT_ON_LINK "NfsActOnLink"
10 #define NFS_SYML_TARGET "NfsSymlinkTargetName"
11 #define NFS_V3_ATTR     "NfsV3Attributes"
12
13 /* NFS datastructures per RFC 1813, as returned by SFU NFS. */
14
15 enum ftype3 {
16   NF3REG    = 1,
17   NF3DIR    = 2,
18   NF3BLK    = 3,
19   NF3CHR    = 4,
20   NF3LNK    = 5,
21   NF3SOCK   = 6,
22   NF3FIFO   = 7
23 };
24
25 struct fattr3 {
26   uint32_t type;
27   uint32_t mode;
28   uint32_t nlink;
29   uint32_t uid;
30   uint32_t gid;
31   uint32_t filler1;
32   uint64_t size;
33   uint64_t used;
34   struct
35     {
36       uint32_t specdata1;
37       uint32_t specdata2;
38     } rdev;
39   uint64_t fsid;
40   uint64_t fileid;
41   timestruc_t atime;
42   timestruc_t mtime;
43   timestruc_t ctime;
44 };
45
46 struct nfs_aol_ffei_t {
47   ULONG NextEntryOffset;
48   UCHAR Flags;
49   UCHAR EaNameLength;
50   USHORT EaValueLength;
51   CHAR EaName[sizeof (NFS_ACT_ON_LINK)];
52 };
53 extern struct nfs_aol_ffei_t nfs_aol_ffei;
54
55 extern uint32_t nfs_type_mapping[];