Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
bwh
/
klibc
/
201dabf78546ca712d3541670a5d898dc199854e
/
.
/
usr
/
klibc
/
getpt.c
blob: 8d2a5364bb654f6197cf26806ff3061c2ac5aa14 [
file
] [
log
] [
blame
]
/*
* getpt.c
*
* GNU extension to the standard Unix98 pty suite
*/
#include
<stdio.h>
#include
<stdlib.h>
#include
<unistd.h>
#include
<termios.h>
#include
<fcntl.h>
int
getpt
(
void
)
{
return
open
(
"/dev/ptmx"
,
O_RDWR
|
O_NOCTTY
);
}