projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add include files to get prototype declarations, and fix bugs found.
[unix-history]
/
usr
/
src
/
lib
/
libc
/
compat-43
/
killpg.c
diff --git
a/usr/src/lib/libc/compat-43/killpg.c
b/usr/src/lib/libc/compat-43/killpg.c
index
94baa85
..
1cb7406
100644
(file)
--- a/
usr/src/lib/libc/compat-43/killpg.c
+++ b/
usr/src/lib/libc/compat-43/killpg.c
@@
-6,21
+6,24
@@
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)killpg.c 5.
2
(Berkeley) %G%";
+static char sccsid[] = "@(#)killpg.c 5.
3
(Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
-#include <sys/errno.h>
+#include <signal.h>
+#include <errno.h>
/*
* Backwards-compatible killpg().
*/
/*
* Backwards-compatible killpg().
*/
+#if __STDC__
+killpg(pid_t pgid, int sig)
+#else
killpg(pgid, sig)
pid_t pgid;
int sig;
killpg(pgid, sig)
pid_t pgid;
int sig;
+#endif
{
{
- extern int errno;
-
if (pgid == 1) {
errno = ESRCH;
return (-1);
if (pgid == 1) {
errno = ESRCH;
return (-1);