about summary refs log tree commit diff
path: root/posix/unistd.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-10-31 06:54:40 +0000
committerRoland McGrath <roland@gnu.org>1995-10-31 06:54:40 +0000
commit3bbceb1287e3df7eb75e7a9852278d4eb9d33a00 (patch)
treecef98b77c775cad088031317d8df8dc772324524 /posix/unistd.h
parent3e2ee7271dff697194c7761ca0c5836de486b36f (diff)
downloadglibc-3bbceb1287e3df7eb75e7a9852278d4eb9d33a00.tar.gz
glibc-3bbceb1287e3df7eb75e7a9852278d4eb9d33a00.tar.xz
glibc-3bbceb1287e3df7eb75e7a9852278d4eb9d33a00.zip
Tue Oct 31 00:07:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951031
	* sysdeps/mach/hurd/group_member.c: New file.
	* sysdeps/generic/group_member.c: New file.

	* Makerules (lib-noranlib): Don't depend on $(install-lib).
	(others): Do.
	* extra-lib.mk: Fix test of $(lib)-no-lib-dep.

Mon Oct 30 12:33:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* Rules (others): Depend on $(extra-objs).

	* posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
	* posix/Makefile (routines): Add group_member.

	* sysdeps/posix/euidaccess.c: New file, adapted from fileutils.

	* sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
	SIG operand in asm so it must be a register.
	Add dead return to quiet gcc warning.

	* Makerules (sysd-rules): Write a defn for sysd-rules-done.
	[! sysd-rules-done]: Inhibit deps.
Diffstat (limited to 'posix/unistd.h')
-rw-r--r--posix/unistd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/posix/unistd.h b/posix/unistd.h
index ffd83b2b1e..62c25fc09b 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -366,6 +366,12 @@ extern __gid_t getegid __P ((void));
 extern int __getgroups __P ((int __size, __gid_t __list[]));
 extern int getgroups __P ((int __size, __gid_t __list[]));
 
+#ifdef	__USE_GNU
+/* Return nonzero iff the calling process is in group GID.  */
+extern int __group_member __P ((__gid_t __gid));
+extern int group_member __P ((__gid_t __gid));
+#endif
+
 /* Set the user ID of the calling process to UID.
    If the calling process is the super-user, set the real
    and effective user IDs, and the saved set-user-ID to UID;