]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 25 Jan 2001 08:52:08 +0000 (08:52 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 25 Jan 2001 08:52:08 +0000 (08:52 +0000)
* posix/unistd.h: Make seteuid and setegid available for XPG6.

ChangeLog
posix/unistd.h

index 9f782eb7e911eb2a9ae2bea2f267847c6fc788c7..dce9f2315046015b8faa278b0be18a4ddb47fd0d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2001-01-25  Ulrich Drepper  <drepper@redhat.com>
 
+       * posix/unistd.h: Make seteuid and setegid available for XPG6.
+
        * wcsmbs/wchar.h: Get FILE definition for XPG5.
 
        * conform/data/ctype.h-data: Use correct comment form.
index 8669c7b61b3a2cdcca33ebe0a025eb4e296a4084..7ae40b2ca5e7b3496dd4fe4fe5c4b5f82561a765 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1999, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -618,7 +618,7 @@ extern int setuid (__uid_t __uid) __THROW;
 extern int setreuid (__uid_t __ruid, __uid_t __euid) __THROW;
 #endif
 
-#ifdef __USE_BSD
+#if defined __USE_BSD || defined __USE_XOPEN2K
 /* Set the effective user ID of the calling process to UID.  */
 extern int seteuid (__uid_t __uid) __THROW;
 #endif /* Use BSD.  */
@@ -635,7 +635,7 @@ extern int setgid (__gid_t __gid) __THROW;
 extern int setregid (__gid_t __rgid, __gid_t __egid) __THROW;
 #endif
 
-#ifdef __USE_BSD
+#if defined __USE_BSD || defined __USE_XOPEN2K
 /* Set the effective group ID of the calling process to GID.  */
 extern int setegid (__gid_t __gid) __THROW;
 #endif /* Use BSD.  */