Sign in
fuchsia
/
zircon
/
/
13ee3dc5e4c46bf127977ad28645c47442ec517d
/
.
/
third_party
/
ulib
/
musl
/
src
/
unistd
/
tcgetpgrp.c
blob: 0dd587676190807f11fa38ede1021d7d9420341a [
file
] [
log
] [
blame
]
#include
<sys/ioctl.h>
#include
<termios.h>
#include
<unistd.h>
pid_t
tcgetpgrp
(
int
fd
)
{
int
pgrp
;
if
(
ioctl
(
fd
,
TIOCGPGRP
,
&
pgrp
)
<
0
)
return
-
1
;
return
pgrp
;
}