chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ENV{TEST}=="1" compares and ENV{TEST}="1" sets the environment
[elogind.git]
/
klibc
/
klibc
/
getpt.c
1
/*
2
* getpt.c
3
*
4
* GNU extension to the standard Unix98 pty suite
5
*/
6
7
#include <stdio.h>
8
#include <stdlib.h>
9
#include <unistd.h>
10
#include <termios.h>
11
#include <fcntl.h>
12
#include <sys/ioctl.h>
13
14
int getpt(void)
15
{
16
return open("/dev/ptmx", O_RDWR|O_NOCTTY);
17
}