aboutsummaryrefslogtreecommitdiff
path: root/src/unistd/tcsetpgrp.c
blob: 789414669830fb762806a8dd4c95a34d3a2affbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <unistd.h>
#include <termios.h>
#include <sys/ioctl.h>

int tcsetpgrp(int fd, pid_t pgrp)
{
	int pgrp_int = pgrp;
	return ioctl(fd, TIOCSPGRP, &pgrp_int);
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif