浏览代码

Put a bandaid on getpgrp behavior

Eric Andersen 24 年之前
父节点
当前提交
f2e01e948c
共有 1 个文件被更改,包括 5 次插入8 次删除
  1. 5 8
      include/unistd.h

+ 5 - 8
include/unistd.h

@@ -525,18 +525,15 @@ extern __pid_t getppid __P ((void));
 #ifndef __FAVOR_BSD
 extern __pid_t getpgrp __P ((void));
 #else
-# ifdef __REDIRECT
-extern __pid_t __REDIRECT (getpgrp, __P ((__pid_t __pid)), __getpgid);
-# else
-#  define getpgrp __getpgid
-# endif
+//# ifdef __REDIRECT
+//extern __pid_t __REDIRECT (getpgrp, __P ((__pid_t __pid)), __getpgid);
+//# else
+#  define getpgrp getpgid
+//# endif
 #endif
 
 /* Get the process group ID of process PID.  */
-extern __pid_t __getpgid __P ((__pid_t __pid));
-#ifdef __USE_XOPEN_EXTENDED
 extern __pid_t getpgid __P ((__pid_t __pid));
-#endif
 
 
 /* Set the process group ID of the process matching PID to PGID.