Sign in
fuchsia
/
fuchsia
/
refs/heads/releases/canary
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
unistd
/
tcgetpgrp.c
blob: 7623949b8299a10201676a44398e93aec4a1dd3a [
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
;
}