Browse Source

Forgot a few things...

Eric Andersen 24 years ago
parent
commit
4e766ab43c
2 changed files with 9 additions and 1 deletions
  1. 8 0
      include/unistd.h
  2. 1 1
      libc/sysdeps/linux/i386/Makefile

+ 8 - 0
include/unistd.h

@@ -102,6 +102,14 @@ extern __gid_t getgid __P ((void));
 /* Get the effective group ID of the calling process.  */
 /* Get the effective group ID of the calling process.  */
 extern __gid_t getegid __P ((void));
 extern __gid_t getegid __P ((void));
 
 
+/* Set the real user ID of the calling process to RUID,
+   and the effective user ID of the calling process to EUID.  */
+extern int setreuid __P ((__uid_t __ruid, __uid_t __euid));
+
+/* Set the real group ID of the calling process to RGID,
+   and the effective group ID of the calling process to EGID.  */
+extern int setregid __P ((__gid_t __rgid, __gid_t __egid));
+
 /* If SIZE is zero, return the number of supplementary groups
 /* If SIZE is zero, return the number of supplementary groups
    the calling process is in.  Otherwise, fill in the group IDs
    the calling process is in.  Otherwise, fill in the group IDs
    of its supplementary groups in LIST and return the number written.  */
    of its supplementary groups in LIST and return the number written.  */

+ 1 - 1
libc/sysdeps/linux/i386/Makefile

@@ -44,7 +44,7 @@ $(LIBC): ar-target
 ar-target: $(OBJS)
 ar-target: $(OBJS)
 	$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
 	$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
 
 
-$(SOBJS):
+$(SOBJS): 
 	$(CC) $(CFLAGS) $< -c $*.S -o $*.o
 	$(CC) $(CFLAGS) $< -c $*.S -o $*.o
 	$(STRIPTOOL) -x -R .note -R .comment $*.o
 	$(STRIPTOOL) -x -R .note -R .comment $*.o