TIOCGPGRP, TIOCSPGRP, TIOCGSID
process group and session ID
- Provided by: manpages-dev (Version: 6.17-1)
- Source: manpages
- Report a bug
process group and session ID
Standard C library (libc, -lc)
#include <asm/termbits.h> /* Definition of TIOC* constants */ #include <sys/ioctl.h>
int ioctl(int fd, TIOCGPGRP, pid_t *argp); int ioctl(int fd, TIOCSPGRP, const pid_t *argp); int ioctl(int fd, TIOCGSID, pid_t *argp);
On success, 0 is returned. On error, -1 is returned, and errno is set to indicate the error.
ioctl(2), ioctl_tty(2), tcgetpgrp(3), tcsetpgrp(3), tcgetsid(3)