summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-10-27 13:06:27 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-10-27 13:06:27 +0000
commit0545a864a6e98637ff6d2f3cd3c8e85ae311d4e6 (patch)
tree350f2dcf3b5c67cc39588c710950faa65791b1ae /perl.h
parenta68015de2b97756a748d63e3a1fe7ff73ca9ba54 (diff)
downloadperl-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.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 501c635c9f..ddad5cecf0 100644
--- a/perl.h
+++ b/perl.h
@@ -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 */