1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

* sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.

(statfs_filesize_max): New function.
	* sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
	JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
	ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
	* sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
	statfs_filesize_max.
	* sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
	* sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
	* sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
This commit is contained in:
Roland McGrath
2002-10-18 19:03:55 +00:00
parent 2e9d4e8c88
commit 69c708edbc
7 changed files with 92 additions and 116 deletions

View File

@ -58,6 +58,15 @@
/* Constant that identifies the `iso9660' filesystem. */
#define ISOFS_SUPER_MAGIC 0x9660
/* Constant that identifies the `jffs' filesystem. */
#define JFFS_SUPER_MAGIC 0x07c0
/* Constant that identifies the `jffs2' filesystem. */
#define JFFS2_SUPER_MAGIC 0x72b6
/* Constant that identifies the `jfs' filesystem. */
#define JFS_SUPER_MAGIC 0x3153464a
/* Constants that identify the `minix2' filesystem. */
#define MINIX2_SUPER_MAGIC 0x2468
#define MINIX2_SUPER_MAGIC2 0x2478
@ -75,6 +84,9 @@
/* Constants that identify the `nfs' filesystem. */
#define NFS_SUPER_MAGIC 0x6969
/* Constants that identify the `ntfs' filesystem. */
#define NTFS_SUPER_MAGIC 0x5346544e
/* Constants that identify the `proc' filesystem. */
#define PROC_SUPER_MAGIC 0x9fa0
@ -84,6 +96,9 @@
/* Constants that identify the `reiser' filesystem. */
#define REISERFS_SUPER_MAGIC 0x52654973
/* Constant that identifies the `romfs' filesystem. */
#define ROMFS_SUPER_MAGIC 0x7275
/* Constants that identify the `smb' filesystem. */
#define SMB_SUPER_MAGIC 0x517b
@ -91,6 +106,9 @@
#define SYSV2_SUPER_MAGIC 0x012ff7b6
#define SYSV4_SUPER_MAGIC 0x012ff7b5
/* Constants that identify the `udf' filesystem. */
#define UDF_SUPER_MAGIC 0x15013346
/* Constants that identify the `ufs' filesystem. */
#define UFS_MAGIC 0x00011954
#define UFS_CIGAM 0x54190100 /* byteswapped MAGIC */