summaryrefslogtreecommitdiff
path: root/support/gnomesupport.awk
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-08-24 19:35:20 +0000
committerMartin Baulig <martin@src.gnome.org>1998-08-24 19:35:20 +0000
commitbe4bbd709cd912aed665ec4109424fff5c24c9dc (patch)
tree5f32da39db53b2e68ec0f7724ce20dc8afccf1d3 /support/gnomesupport.awk
parentf7eca1be068cdadcd38c1867e64090b58dc073d5 (diff)
downloadshared-mime-info-be4bbd709cd912aed665ec4109424fff5c24c9dc.tar.gz
Emit declarations for `setreuid', `setregid' and `getpagesize' if required
1998-08-24 Martin Baulig <martin@home-of-linux.org> * gnomesupport.awk: Emit declarations for `setreuid', `setregid' and `getpagesize' if required (GCC_NEED_DECLARATIONS). svn path=/trunk/; revision=350
Diffstat (limited to 'support/gnomesupport.awk')
-rw-r--r--support/gnomesupport.awk18
1 files changed, 18 insertions, 0 deletions
diff --git a/support/gnomesupport.awk b/support/gnomesupport.awk
index 3e1ca0e8..b6f3162d 100644
--- a/support/gnomesupport.awk
+++ b/support/gnomesupport.awk
@@ -49,6 +49,24 @@ END {
print "/* Get name of current host. */";
print "int gethostname(char */*name*/, int /*namelen*/);";
}
+
+ if (def["NEED_DECLARATION_SETREUID"]) {
+ print "";
+ print "/* Set real and effective user ID. */";
+ print "int setreuid(uid_t /*ruid*/, uid_t /*euid*/);";
+ }
+
+ if (def["NEED_DECLARATION_SETREGID"]) {
+ print "";
+ print "/* Set real and effective group ID. */";
+ print "int setregid(gid_t /*rgid*/, gid_t /*egid*/);";
+ }
+
+ if (def["NEED_DECLARATION_GETPAGESIZE"]) {
+ print "";
+ print "/* Get system page size. */";
+ print "size_t getpagesize(void);";
+ }
if (!def["HAVE_MEMMOVE"]) {
print "";