Add "idtest" as a test; add missing getgid() prototype to <unistd.h>
diff --git a/include/unistd.h b/include/unistd.h
index a1d2e15..5b05213 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -33,11 +33,12 @@
__extern int setuid(uid_t);
__extern uid_t getuid(void);
-__extern int setgid(gid_t);
-__extern uid_t geteuid(void);
__extern int seteuid(uid_t);
-__extern gid_t getegid(void);
+__extern uid_t geteuid(void);
+__extern int setgid(gid_t);
+__extern gid_t getgid(void);
__extern int setegid(gid_t);
+__extern gid_t getegid(void);
__extern int getgroups(int, gid_t *);
__extern int setgroups(size_t, const gid_t *);
__extern int setreuid(uid_t, uid_t);
diff --git a/klibc/Makefile b/klibc/Makefile
index efb86a9..bdaa583 100644
--- a/klibc/Makefile
+++ b/klibc/Makefile
@@ -1,4 +1,4 @@
-ARCH = i386
+ARCH = alpha
CROSS =
CC = $(CROSS)gcc
LD = $(CROSS)ld
@@ -14,7 +14,7 @@
STRIP = $(CROSS)strip -R .comment -R .note
TESTS = testvsnp hello minihello microhello getenvtest \
- getopttest malloctest minips
+ getopttest malloctest minips idtest
LIBOBJS = vsnprintf.o snprintf.o vsprintf.o sprintf.o \
vsscanf.o sscanf.o ctypes.o \
strntoumax.o strntoimax.o \
@@ -101,6 +101,8 @@
minips: minips.o $(LIB) $(CRT0)
+idtest: idtest.o $(LIB) $(CRT0)
+
$(LIB): $(LIBOBJS) $(ARCHOBJS) syscalls/static.obj socketcalls/static.obj
rm -f $(LIB)
$(AR) cq $(LIB) $(LIBOBJS) $(ARCHOBJS) syscalls/*.o socketcalls/*.o
diff --git a/klibc/include/unistd.h b/klibc/include/unistd.h
index a1d2e15..5b05213 100644
--- a/klibc/include/unistd.h
+++ b/klibc/include/unistd.h
@@ -33,11 +33,12 @@
__extern int setuid(uid_t);
__extern uid_t getuid(void);
-__extern int setgid(gid_t);
-__extern uid_t geteuid(void);
__extern int seteuid(uid_t);
-__extern gid_t getegid(void);
+__extern uid_t geteuid(void);
+__extern int setgid(gid_t);
+__extern gid_t getgid(void);
__extern int setegid(gid_t);
+__extern gid_t getegid(void);
__extern int getgroups(int, gid_t *);
__extern int setgroups(size_t, const gid_t *);
__extern int setreuid(uid_t, uid_t);