diff options
author | Martin Baulig <martin@home-of-linux.org> | 1998-08-24 19:35:20 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-08-24 19:35:20 +0000 |
commit | c85113af9b37995aa55e3bf328f294a762a129be (patch) | |
tree | 57754724affe8bd5ddac46534e727717e3d82448 | |
parent | fdae7a2113f71c6775407ada29ef93ae12bdb449 (diff) | |
download | shared-mime-info-c85113af9b37995aa55e3bf328f294a762a129be.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=/branches/LIBGTOP_0_25_PATCHES/; revision=350
-rw-r--r-- | support/ChangeLog | 5 | ||||
-rw-r--r-- | support/gnomesupport.awk | 18 |
2 files changed, 23 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index b53730c4..e32cf16e 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,3 +1,8 @@ +1998-08-24 Martin Baulig <martin@home-of-linux.org> + + * gnomesupport.awk: Emit declarations for `setreuid', `setregid' + and `getpagesize' if required (GCC_NEED_DECLARATIONS). + 1998-08-18 Martin Baulig <martin@home-of-linux.org> * Makefile.am: Added explicit dependency `error.c: gnomesupport.h'. 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 ""; |