mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 06:30:05 +00:00
Correct types.
This commit is contained in:
parent
078a1bd706
commit
d063916977
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1993, 1995, 1997, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -16,14 +16,13 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
extern int __pgrpsys __P ((int type, ...));
|
extern pid_t __pgrpsys __P ((int type, ...));
|
||||||
|
|
||||||
/* Get the process group ID of process PID. */
|
/* Get the process group ID of process PID. */
|
||||||
int
|
pid_t
|
||||||
__getpgid (pid)
|
__getpgid (pid)
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1993, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -19,14 +19,14 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
extern int __pgrpsys __P ((int type, ...));
|
extern int __pgrpsys __P ((pid_t type, ...));
|
||||||
|
|
||||||
/* Set the process group ID of the process matching PID to PGID.
|
/* Set the process group ID of the process matching PID to PGID.
|
||||||
If PID is zero, the current process's process group ID is set.
|
If PID is zero, the current process's process group ID is set.
|
||||||
If PGID is zero, the process ID of the process is used. */
|
If PGID is zero, the process ID of the process is used. */
|
||||||
int
|
int
|
||||||
__setpgid (pid, pgid)
|
__setpgid (pid, pgid)
|
||||||
int pid, pgid; /* XXX why not pid_t ? */
|
pid_t pid, pgid;
|
||||||
{
|
{
|
||||||
return __pgrpsys (5, pid, pgid);
|
return __pgrpsys (5, pid, pgid);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1993, 1995, 1997, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -19,12 +19,12 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
extern int __pgrpsys __P ((int type, ...));
|
extern pid_t __pgrpsys __P ((int type, ...));
|
||||||
|
|
||||||
/* Create a new session with the calling process as its leader.
|
/* Create a new session with the calling process as its leader.
|
||||||
The process group IDs of the session and the calling process
|
The process group IDs of the session and the calling process
|
||||||
are set to the process ID of the calling process, which is returned. */
|
are set to the process ID of the calling process, which is returned. */
|
||||||
int
|
pid_t
|
||||||
__setsid ()
|
__setsid ()
|
||||||
{
|
{
|
||||||
return __pgrpsys (3);
|
return __pgrpsys (3);
|
||||||
|
Loading…
Reference in New Issue
Block a user