diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-10-27 13:06:27 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-10-27 13:06:27 +0000 |
commit | 0545a864a6e98637ff6d2f3cd3c8e85ae311d4e6 (patch) | |
tree | 350f2dcf3b5c67cc39588c710950faa65791b1ae /perl.h | |
parent | a68015de2b97756a748d63e3a1fe7ff73ca9ba54 (diff) | |
download | perl-0545a864a6e98637ff6d2f3cd3c8e85ae311d4e6.tar.gz |
Nosuid checking for statfs() people: from Spider Boardman.
p4raw-id: //depot/cfgperl@4465
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -3207,6 +3207,40 @@ typedef struct am_table_short AMTS; #ifdef I_MNTENT # include <mntent.h> /* for getmntent() */ #endif +#ifdef I_SYS_STATFS +# include <sys/statfs.h> /* for some statfs() */ +#endif +#ifdef I_SYS_VFS +# include <sys/vfs.h> /* for some statfs() */ +#endif +#ifdef I_USTAT +# include <ustat.h> /* for ustat() */ +#endif + +#if !defined(PERL_MOUNT_NOSUID) && defined(MOUNT_NOSUID) +# define PERL_MOUNT_NOSUID MOUNT_NOSUID +#endif +#if !defined(PERL_MOUNT_NOSUID) && defined(MNT_NOSUID) +# define PERL_MOUNT_NOSUID MNT_NOSUID +#endif +#if !defined(PERL_MOUNT_NOSUID) && defined(MS_NOSUID) +# define PERL_MOUNT_NOSUID MS_NOSUID +#endif +#if !defined(PERL_MOUNT_NOSUID) && defined(M_NOSUID) +# define PERL_MOUNT_NOSUID M_NOSUID +#endif + +#ifdef HAS_STRUCT_STATFS +# define PERL_STRUCT_STATFS statfs +# ifdef HAS_STRUCT_STATFS_F_FLAGS +# define PERL_STRUCT_STATFS_FLAGS(s) s.f_flags +# endif +#else +# ifdef HAS_STRUCT_FS_DATA +# define PERL_STRUCT_STATFS statfs +# define PERL_STRUCT_STATFS_FLAGS(s) s.fd_req.flags +# endif +#endif #endif /* IAMSUID */ |