aboutsummaryrefslogtreecommitdiff
path: root/posix/unistd.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-25 08:52:08 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-25 08:52:08 +0000
commit49833554e36f76cb29991d1ca8bca5ae3669ce20 (patch)
tree24846d9f046bf036b6e8be09d5f0f078a2c20f83 /posix/unistd.h
parentd9826675fcf2575c5961d6352def915d8b06e4d5 (diff)
downloadglibc-49833554e36f76cb29991d1ca8bca5ae3669ce20.zip
glibc-49833554e36f76cb29991d1ca8bca5ae3669ce20.tar.gz
glibc-49833554e36f76cb29991d1ca8bca5ae3669ce20.tar.bz2
Update.
* posix/unistd.h: Make seteuid and setegid available for XPG6.
Diffstat (limited to 'posix/unistd.h')
-rw-r--r--posix/unistd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/posix/unistd.h b/posix/unistd.h
index 8669c7b..7ae40b2 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -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. */