fix AS-safety of close when aio is in use and fd map is expanded
[musl.git] / src / unistd / tcsetpgrp.c
blob67c38cb45c9a5eb35eb1e8c4b843a8d809a24171
1 #include <unistd.h>
2 #include <termios.h>
3 #include <sys/ioctl.h>
5 int tcsetpgrp(int fd, pid_t pgrp)
7 int pgrp_int = pgrp;
8 return ioctl(fd, TIOCSPGRP, &pgrp_int);