repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
cuserid: support invocation with a null pointer argument
[musl.git]
/
src
/
unistd
/
tcsetpgrp.c
blob
67c38cb45c9a5eb35eb1e8c4b843a8d809a24171
1
#include <unistd.h>
2
#include <termios.h>
3
#include <sys/ioctl.h>
4
5
int
tcsetpgrp
(
int
fd
,
pid_t pgrp
)
6
{
7
int
pgrp_int
=
pgrp
;
8
return
ioctl
(
fd
,
TIOCSPGRP
, &
pgrp_int
);
9
}