summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/unistd/tcsetpgrp.c
blob: 67c38cb45c9a5eb35eb1e8c4b843a8d809a24171 (plain)
1
2
3
4
5
6
7
8
9
#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);
}