Use getpgid() to emulate getpgrp() since the latter isn't available on ia64
diff --git a/klibc/Makefile b/klibc/Makefile
index 5ec7f93..cede5fa 100644
--- a/klibc/Makefile
+++ b/klibc/Makefile
@@ -17,7 +17,7 @@
strtoimax.o strtoumax.o \
globals.o exitc.o atexit.o onexit.o \
execl.o execle.o execv.o execvpe.o execvp.o execlp.o execlpe.o \
- fork.o wait.o wait3.o waitpid.o system.o setpgrp.o \
+ fork.o wait.o wait3.o waitpid.o system.o setpgrp.o getpgrp.o \
printf.o vprintf.o fprintf.o vfprintf.o perror.o \
fopen.o fread.o fread2.o fgetc.o fgets.o \
fwrite.o fwrite2.o fputc.o fputs.o puts.o \
diff --git a/klibc/SYSCALLS b/klibc/SYSCALLS
index 00883cc..809a364 100644
--- a/klibc/SYSCALLS
+++ b/klibc/SYSCALLS
@@ -19,7 +19,6 @@
pid_t getpgid(pid_t)
<!alpha> pid_t getppid()
<alpha> pid_t getxpid@dual1::getppid()
-<!ia64> pid_t getpgrp()
pid_t setsid()
pid_t getsid(pid_t)
pid_t wait4(pid_t, int *, int, struct rusage *)
diff --git a/klibc/getpgrp.c b/klibc/getpgrp.c
new file mode 100644
index 0000000..c923698
--- /dev/null
+++ b/klibc/getpgrp.c
@@ -0,0 +1,9 @@
+/*
+ * getpgrp.c
+ */
+
+#include <unistd.h>
+
+pid_t getpgrp(void) {
+ return getpgid(0);
+}