source: trunk/libs/newlib/src/newlib/libc/sys/linux/linux_fsinfo.h

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 3.8 KB
Line 
1/* Constants from kernel header for various FSes.
2   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3   This file is part of the GNU C Library.
4
5   The GNU C Library is free software; you can redistribute it and/or
6   modify it under the terms of the GNU Lesser General Public
7   License as published by the Free Software Foundation; either
8   version 2.1 of the License, or (at your option) any later version.
9
10   The GNU C Library is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   Lesser General Public License for more details.
14
15   You should have received a copy of the GNU Lesser General Public
16   License along with the GNU C Library; if not, write to the Free
17   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18   02111-1307 USA.  */
19
20#ifndef _LINUX_FSINFO_H
21#define _LINUX_FSINFO_H 1
22
23/* These definitions come from the kernel headers.  But we cannot
24   include the headers here because of type clashes.  If new
25   filesystem types will become available we have to add the
26   appropriate definitions here.*/
27
28/* Constants that identify the `adfs' filesystem.  */
29#define ADFS_SUPER_MAGIC        0xadf5
30
31/* Constants that identify the `affs' filesystem.  */
32#define AFFS_SUPER_MAGIC        0xadff
33
34/* Constants that identify the `bfs' filesystem.  */
35#define BFS_MAGIC               0x1BADFACE
36
37/* Constants that identify the `coda' filesystem.  */
38#define CODA_SUPER_MAGIC        0x73757245
39
40/* Constants that identify the `coherent' filesystem.  */
41#define COH_SUPER_MAGIC         0x012ff7b7
42
43/* Constant that identifies the `devfs' filesystem.  */
44#define DEVFS_SUPER_MAGIC       0x1373
45
46/* Constant that identifies the `devpts' filesystem.  */
47#define DEVPTS_SUPER_MAGIC      0x1cd1
48
49/* Constant that identifies the `efs' filesystem.  */
50#define EFS_SUPER_MAGIC         0x414A53
51
52/* Constant that identifies the `ext2' and `ext3' filesystems.  */
53#define EXT2_SUPER_MAGIC        0xef53
54
55/* Constant that identifies the `hpfs' filesystem.  */
56#define HPFS_SUPER_MAGIC        0xf995e849
57
58/* Constant that identifies the `iso9660' filesystem.  */
59#define ISOFS_SUPER_MAGIC       0x9660
60
61/* Constants that identify the `minix2' filesystem.  */
62#define MINIX2_SUPER_MAGIC      0x2468
63#define MINIX2_SUPER_MAGIC2     0x2478
64
65/* Constants that identify the `minix' filesystem.  */
66#define MINIX_SUPER_MAGIC       0x137f
67#define MINIX_SUPER_MAGIC2      0x138F
68
69/* Constants that identify the `msdos' filesystem.  */
70#define MSDOS_SUPER_MAGIC       0x4d44
71
72/* Constants that identify the `ncp' filesystem.  */
73#define NCP_SUPER_MAGIC         0x564c
74
75/* Constants that identify the `nfs' filesystem.  */
76#define NFS_SUPER_MAGIC         0x6969
77
78/* Constants that identify the `proc' filesystem.  */
79#define PROC_SUPER_MAGIC        0x9fa0
80
81/* Constants that identify the `qnx4' filesystem.  */
82#define QNX4_SUPER_MAGIC        0x002f
83
84/* Constants that identify the `reiser' filesystem.  */
85#define REISERFS_SUPER_MAGIC    0x52654973
86
87/* Constants that identify the `smb' filesystem.  */
88#define SMB_SUPER_MAGIC         0x517b
89
90/* Constants that identify the `sysV' filesystem.  */
91#define SYSV2_SUPER_MAGIC       0x012ff7b6
92#define SYSV4_SUPER_MAGIC       0x012ff7b5
93
94/* Constants that identify the `ufs' filesystem.  */
95#define UFS_MAGIC               0x00011954
96#define UFS_CIGAM               0x54190100 /* byteswapped MAGIC */
97
98/* Constants that identify the `xenix' filesystem.  */
99#define XENIX_SUPER_MAGIC       0x012ff7b4
100
101/* Constant that identifies the `shm' filesystem.  */
102#define SHMFS_SUPER_MAGIC       0x01021994
103
104/* Maximum link counts.  */
105#define COH_LINK_MAX            10000
106#define EXT2_LINK_MAX           32000
107#define MINIX2_LINK_MAX         65530
108#define MINIX_LINK_MAX          250
109#define REISERFS_LINK_MAX       64535
110#define SYSV_LINK_MAX           126     /* 127? 251? */
111#define UFS_LINK_MAX            EXT2_LINK_MAX
112#define XENIX_LINK_MAX          126     /* ?? */
113
114#endif  /* linux_fsinfo.h */
Note: See TracBrowser for help on using the repository browser.