diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2015-10-30 17:50:42 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2015-10-30 17:50:42 -0400 |
commit | ea4421009acdf10bf0a7b26ff22c5afd431690db (patch) | |
tree | 89915d220d6dc218f562e104980c7c25a9f748ce /plan9 | |
parent | 7711f97842bc713f668a0686e9cb44322fe53f8c (diff) | |
download | perl-ea4421009acdf10bf0a7b26ff22c5afd431690db.tar.gz |
Revert "Remove unused filesystem stat symbols."
This reverts commit 821805a244cacd9869331999cd53407f3323206a.
What's out, is out.
perl #107904 Filesys-Df
perl #108189 Filesys-DfPortable
perl #108191 Filesys-Statvfs
perl #126368 Filesys-DfPortable
Diffstat (limited to 'plan9')
-rw-r--r-- | plan9/config.plan9 | 99 | ||||
-rw-r--r-- | plan9/config_h.sample | 99 | ||||
-rw-r--r-- | plan9/config_sh.sample | 17 |
3 files changed, 215 insertions, 0 deletions
diff --git a/plan9/config.plan9 b/plan9/config.plan9 index ce7cb0edc2..722e82999e 100644 --- a/plan9/config.plan9 +++ b/plan9/config.plan9 @@ -1478,12 +1478,24 @@ */ /*#define HAS_FREXPL / **/ +/* HAS_STRUCT_FS_DATA: + * This symbol, if defined, indicates that the struct fs_data + * to do statfs() is supported. + */ +/*#define HAS_STRUCT_FS_DATA / **/ + /* HAS_FSEEKO: * This symbol, if defined, indicates that the fseeko routine is * available to fseek beyond 32 bits (useful for ILP32 hosts). */ /*#define HAS_FSEEKO / **/ +/* HAS_FSTATFS: + * This symbol, if defined, indicates that the fstatfs routine is + * available to stat filesystems by file descriptors. + */ +/*#define HAS_FSTATFS / **/ + /* HAS_FSYNC: * This symbol, if defined, indicates that the fsync routine is * available to write a file's modified data and attributes to @@ -1526,6 +1538,12 @@ */ /*#define HAS_GETESPWNAM / **/ +/* HAS_GETFSSTAT: + * This symbol, if defined, indicates that the getfsstat routine is + * available to stat filesystems in bulk. + */ +/*#define HAS_GETFSSTAT / **/ + /* HAS_GETGRENT: * This symbol, if defined, indicates that the getgrent routine is * available for sequential access of the group database. @@ -1645,6 +1663,18 @@ /*#define HAS_GETLOGIN_R / **/ #define GETLOGIN_R_PROTO 0 /**/ +/* HAS_GETMNT: + * This symbol, if defined, indicates that the getmnt routine is + * available to get filesystem mount info by filename. + */ +/*#define HAS_GETMNT / **/ + +/* HAS_GETMNTENT: + * This symbol, if defined, indicates that the getmntent routine is + * available to iterate through mounted file systems to get their info. + */ +/*#define HAS_GETMNTENT / **/ + /* HAS_GETNETBYADDR: * This symbol, if defined, indicates that the getnetbyaddr() routine is * available to look up networks by their IP addresses. @@ -1832,6 +1862,11 @@ #if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE) # define _GNU_SOURCE #endif +/* HAS_HASMNTOPT: + * This symbol, if defined, indicates that the hasmntopt routine is + * available to query the mount options of file systems. + */ +/*#define HAS_HASMNTOPT / **/ /* HAS_HTONL: * This symbol, if defined, indicates that the htonl() routine (and @@ -2390,6 +2425,29 @@ /*#define USE_STAT_BLOCKS / **/ #endif +/* HAS_STRUCT_STATFS_F_FLAGS: + * This symbol, if defined, indicates that the struct statfs + * does have the f_flags member containing the mount flags of + * the filesystem containing the file. + * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3), + * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not + * have statfs() and struct statfs, they have ustat() and getmnt() + * with struct ustat and struct fs_data. + */ +/*#define HAS_STRUCT_STATFS_F_FLAGS / **/ + +/* HAS_STRUCT_STATFS: + * This symbol, if defined, indicates that the struct statfs + * to do statfs() is supported. + */ +/*#define HAS_STRUCT_STATFS / **/ + +/* HAS_FSTATVFS: + * This symbol, if defined, indicates that the fstatvfs routine is + * available to stat filesystems by file descriptors. + */ +/*#define HAS_FSTATVFS / **/ + /* USE_STDIO_PTR: * This symbol is defined if the _ptr and _cnt fields (or similar) * of the stdio FILE structure can be used to access the stdio buffer @@ -2602,6 +2660,12 @@ */ /*#define HAS_UNORDERED / **/ +/* HAS_USTAT: + * This symbol, if defined, indicates that the ustat system call is + * available to query file system statistics by dev_t. + */ +/*#define HAS_USTAT / **/ + /* HAS_VFORK: * This symbol, if defined, indicates that vfork() exists. */ @@ -2783,6 +2847,12 @@ */ /*#define I_MACH_CTHREADS / **/ +/* I_MNTENT: + * This symbol, if defined, indicates that <mntent.h> exists and + * should be included. + */ +/*#define I_MNTENT / **/ + /* I_NETDB: * This symbol, if defined, indicates that <netdb.h> exists and * should be included. @@ -2889,6 +2959,23 @@ */ /*#define I_SYSMODE / **/ +/* I_SYS_MOUNT: + * This symbol, if defined, indicates that <sys/mount.h> exists and + * should be included. + */ +/*#define I_SYS_MOUNT / **/ + +/* I_SYS_STATFS: + * This symbol, if defined, indicates that <sys/statfs.h> exists. + */ +/*#define I_SYS_STATFS / **/ + +/* I_SYS_STATVFS: + * This symbol, if defined, indicates that <sys/statvfs.h> exists and + * should be included. + */ +/*#define I_SYS_STATVFS / **/ + /* I_SYSUIO: * This symbol, if defined, indicates that <sys/uio.h> exists and * should be included. @@ -2901,6 +2988,12 @@ */ #define I_SYSUTSNAME /**/ +/* I_SYS_VFS: + * This symbol, if defined, indicates that <sys/vfs.h> exists and + * should be included. + */ +/*#define I_SYS_VFS / **/ + /* Plan 9: P9 has both <time.h> and <sys/time.h> */ /* I_TIME: * This symbol, if defined, indicates to the C program that it should @@ -2926,6 +3019,12 @@ /*#define I_SYS_TIME_KERNEL / **/ /*#define HAS_TM_TM_ZONE / **/ +/* I_USTAT: + * This symbol, if defined, indicates that <ustat.h> exists and + * should be included. + */ +/*#define I_USTAT / **/ + /* PERL_INC_VERSION_LIST: * This variable specifies the list of subdirectories in over * which perl.c:incpush() and lib/lib.pm will automatically diff --git a/plan9/config_h.sample b/plan9/config_h.sample index c89ab71453..d88498430c 100644 --- a/plan9/config_h.sample +++ b/plan9/config_h.sample @@ -1431,12 +1431,24 @@ */ /*#define HAS_FREXPL / **/ +/* HAS_STRUCT_FS_DATA: + * This symbol, if defined, indicates that the struct fs_data + * to do statfs() is supported. + */ +/*#define HAS_STRUCT_FS_DATA / **/ + /* HAS_FSEEKO: * This symbol, if defined, indicates that the fseeko routine is * available to fseek beyond 32 bits (useful for ILP32 hosts). */ /*#define HAS_FSEEKO / **/ +/* HAS_FSTATFS: + * This symbol, if defined, indicates that the fstatfs routine is + * available to stat filesystems by file descriptors. + */ +/*#define HAS_FSTATFS / **/ + /* HAS_FSYNC: * This symbol, if defined, indicates that the fsync routine is * available to write a file's modified data and attributes to @@ -1479,6 +1491,12 @@ */ /*#define HAS_GETESPWNAM / **/ +/* HAS_GETFSSTAT: + * This symbol, if defined, indicates that the getfsstat routine is + * available to stat filesystems in bulk. + */ +/*#define HAS_GETFSSTAT / **/ + /* HAS_GETGRENT: * This symbol, if defined, indicates that the getgrent routine is * available for sequential access of the group database. @@ -1598,6 +1616,18 @@ /*#define HAS_GETLOGIN_R / **/ #define GETLOGIN_R_PROTO 0 /**/ +/* HAS_GETMNT: + * This symbol, if defined, indicates that the getmnt routine is + * available to get filesystem mount info by filename. + */ +/*#define HAS_GETMNT / **/ + +/* HAS_GETMNTENT: + * This symbol, if defined, indicates that the getmntent routine is + * available to iterate through mounted file systems to get their info. + */ +/*#define HAS_GETMNTENT / **/ + /* HAS_GETNETBYADDR: * This symbol, if defined, indicates that the getnetbyaddr() routine is * available to look up networks by their IP addresses. @@ -1785,6 +1815,11 @@ #if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE) # define _GNU_SOURCE #endif +/* HAS_HASMNTOPT: + * This symbol, if defined, indicates that the hasmntopt routine is + * available to query the mount options of file systems. + */ +/*#define HAS_HASMNTOPT / **/ /* HAS_HTONL: * This symbol, if defined, indicates that the htonl() routine (and @@ -2322,6 +2357,29 @@ /*#define USE_STAT_BLOCKS / **/ #endif +/* HAS_STRUCT_STATFS_F_FLAGS: + * This symbol, if defined, indicates that the struct statfs + * does have the f_flags member containing the mount flags of + * the filesystem containing the file. + * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3), + * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not + * have statfs() and struct statfs, they have ustat() and getmnt() + * with struct ustat and struct fs_data. + */ +/*#define HAS_STRUCT_STATFS_F_FLAGS / **/ + +/* HAS_STRUCT_STATFS: + * This symbol, if defined, indicates that the struct statfs + * to do statfs() is supported. + */ +/*#define HAS_STRUCT_STATFS / **/ + +/* HAS_FSTATVFS: + * This symbol, if defined, indicates that the fstatvfs routine is + * available to stat filesystems by file descriptors. + */ +/*#define HAS_FSTATVFS / **/ + /* USE_STDIO_PTR: * This symbol is defined if the _ptr and _cnt fields (or similar) * of the stdio FILE structure can be used to access the stdio buffer @@ -2534,6 +2592,12 @@ */ /*#define HAS_UNORDERED / **/ +/* HAS_USTAT: + * This symbol, if defined, indicates that the ustat system call is + * available to query file system statistics by dev_t. + */ +/*#define HAS_USTAT / **/ + /* HAS_VFORK: * This symbol, if defined, indicates that vfork() exists. */ @@ -2715,6 +2779,12 @@ */ /*#define I_MACH_CTHREADS / **/ +/* I_MNTENT: + * This symbol, if defined, indicates that <mntent.h> exists and + * should be included. + */ +/*#define I_MNTENT / **/ + /* I_NETDB: * This symbol, if defined, indicates that <netdb.h> exists and * should be included. @@ -2821,6 +2891,23 @@ */ /*#define I_SYSMODE / **/ +/* I_SYS_MOUNT: + * This symbol, if defined, indicates that <sys/mount.h> exists and + * should be included. + */ +/*#define I_SYS_MOUNT / **/ + +/* I_SYS_STATFS: + * This symbol, if defined, indicates that <sys/statfs.h> exists. + */ +/*#define I_SYS_STATFS / **/ + +/* I_SYS_STATVFS: + * This symbol, if defined, indicates that <sys/statvfs.h> exists and + * should be included. + */ +/*#define I_SYS_STATVFS / **/ + /* I_SYSUIO: * This symbol, if defined, indicates that <sys/uio.h> exists and * should be included. @@ -2833,6 +2920,12 @@ */ #define I_SYSUTSNAME /**/ +/* I_SYS_VFS: + * This symbol, if defined, indicates that <sys/vfs.h> exists and + * should be included. + */ +/*#define I_SYS_VFS / **/ + /* I_TIME: * This symbol, if defined, indicates to the C program that it should * include <time.h>. @@ -2857,6 +2950,12 @@ /*#define I_SYS_TIME_KERNEL / **/ /*#define HAS_TM_TM_ZONE / **/ +/* I_USTAT: + * This symbol, if defined, indicates that <ustat.h> exists and + * should be included. + */ +/*#define I_USTAT / **/ + /* PERL_INC_VERSION_LIST: * This variable specifies the list of subdirectories in over * which perl.c:incpush() and lib/lib.pm will automatically diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample index 86802f02dc..4dd6efb049 100644 --- a/plan9/config_sh.sample +++ b/plan9/config_sh.sample @@ -222,8 +222,11 @@ d_fpclassl='undef' d_fpgetround='undef' d_fpos64_t='undef' d_frexpl='undef' +d_fs_data_s='undef' d_fseeko='undef' d_fsetpos='define' +d_fstatfs='undef' +d_fstatvfs='undef' d_fsync='define' d_ftello='undef' d_ftime='undef' @@ -233,6 +236,7 @@ d_gdbmndbm_h_uses_prototypes='undef' d_getaddrinfo='undef' d_getcwd='define' d_getespwnam='undef' +d_getfsstat='undef' d_getgrent='define' d_getgrent_r='undef' d_getgrgid_r='undef' @@ -249,6 +253,8 @@ d_gethostprotos='undef' d_getitimer='undef' d_getlogin='define' d_getlogin_r='undef' +d_getmnt='undef' +d_getmntent='undef' d_getnameinfo='undef' d_getnbyaddr='undef' d_getnbyname='undef' @@ -289,6 +295,7 @@ d_gmtime64='undef' d_gmtime_r='undef' d_gnulibc='undef' d_grpasswd='undef' +d_hasmntopt='undef' d_htonl='define' d_hypot='undef' d_ilogb='undef' @@ -514,7 +521,10 @@ d_sresgproto='undef' d_sresuproto='undef' d_stat='define' d_statblks='undef' +d_statfs_f_flags='undef' +d_statfs_s='undef' d_static_inline='undef' +d_statvfs='undef' d_stdio_cnt_lval='undef' d_stdio_ptr_lval='undef' d_stdio_ptr_lval_nochange_cnt='undef' @@ -573,6 +583,7 @@ d_unordered='undef' d_unsetenv='undef' d_usleep='undef' d_usleepproto='undef' +d_ustat='undef' d_vendorarch='undef' d_vendorbin='undef' d_vendorlib='undef' @@ -713,6 +724,7 @@ i_malloc='undef' i_mallocmalloc='undef' i_math='define' i_memory='undef' +i_mntent='undef' i_ndbm='undef' i_netdb='define' i_neterrno='undef' @@ -743,6 +755,7 @@ i_sysioctl='define' i_syslog='undef' i_sysmman='undef' i_sysmode='undef' +i_sysmount='undef' i_sysndir='undef' i_sysparam='define' i_syspoll='undef' @@ -751,6 +764,8 @@ i_syssecrt='undef' i_sysselct='define' i_syssockio='undef' i_sysstat='define' +i_sysstatfs='undef' +i_sysstatvfs='undef' i_systime='undef' i_systimek='undef' i_systimes='define' @@ -758,11 +773,13 @@ i_systypes='define' i_sysuio='define' i_sysun='define' i_sysutsname='define' +i_sysvfs='undef' i_syswait='define' i_termio='undef' i_termios='define' i_time='define' i_unistd='define' +i_ustat='undef' i_utime='define' i_values='undef' i_varargs='undef' |