mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 12:18:31 +00:00
Add script.com and whois.com courtesy of FreeBSD
This commit is contained in:
parent
654ceaba7d
commit
1ad2f530f9
33 changed files with 1735 additions and 265 deletions
|
@ -1374,7 +1374,7 @@ syscon termios TIOCCONS 0x541d 0x80047462 0x80047462 0x80047462 0x800474
|
|||
syscon termios TIOCGETD 0x5424 0x4004741a 0x4004741a 0x4004741a 0x4004741a 0 # boop
|
||||
syscon termios TIOCNOTTY 0x5422 0x20007471 0x20007471 0x20007471 0x20007471 0 # boop
|
||||
syscon termios TIOCNXCL 0x540d 0x2000740e 0x2000740e 0x2000740e 0x2000740e 0 # boop
|
||||
syscon termios TIOCSCTTY 0x540e 0x20007461 0x20007461 0x20007461 0x20007461 0 # boop
|
||||
syscon termios TIOCSCTTY 0x540e 0x20007461 0x20007461 0x20007461 0x20007461 0 # makes terminal controlling terminal of calling process (see login_tty)
|
||||
syscon termios TIOCSETD 0x5423 0x8004741b 0x8004741b 0x8004741b 0x8004741b 0 # boop
|
||||
syscon termios TIOCSIG 0x40045436 0x2000745f 0x2004745f 0x8004745f 0x8004745f 0 # boop
|
||||
syscon termios TIOCSTI 0x5412 0x80017472 0x80017472 0 0 0 # boop
|
||||
|
@ -1409,6 +1409,10 @@ syscon termios TIOCSFLAGS 0 0 0 0x8004745c 0x8004745c 0 # boop
|
|||
syscon termios TIOCSTSTAMP 0 0 0 0x8008745a 0x8008745a 0 # boop
|
||||
syscon termios ENDRUNDISC 0 0 0 0x9 0x9 0 # boop
|
||||
syscon termios TIOCPTMASTER 0 0 0x2000741c 0 0 0 # boop
|
||||
syscon termios TIOCPTYGRANT 0 0x20007454 0 0 0 0 # xnu grantpt()
|
||||
syscon termios TIOCPTYUNLK 0 0x20007452 0 0 0 0 # xnu grantpt()
|
||||
syscon termios TIOCPTYGNAME 0 0x40807453 0 0 0 0 # xnu grantpt()
|
||||
syscon termios FIODGNAME 0 0 0x80106678 0 0 0 # freebsd ptsname_r()
|
||||
syscon termios NETGRAPHDISC 0 0 0x6 0 0 0 # boop
|
||||
syscon termios H4DISC 0 0 0x7 0 0 0 # boop
|
||||
|
||||
|
|
2
libc/sysv/consts/FIODGNAME.s
Normal file
2
libc/sysv/consts/FIODGNAME.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/consts/syscon.internal.inc"
|
||||
.syscon termios,FIODGNAME,0,0,0x80106678,0,0,0
|
2
libc/sysv/consts/TIOCPTYGNAME.s
Normal file
2
libc/sysv/consts/TIOCPTYGNAME.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/consts/syscon.internal.inc"
|
||||
.syscon termios,TIOCPTYGNAME,0,0x40807453,0,0,0,0
|
2
libc/sysv/consts/TIOCPTYGRANT.s
Normal file
2
libc/sysv/consts/TIOCPTYGRANT.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/consts/syscon.internal.inc"
|
||||
.syscon termios,TIOCPTYGRANT,0,0x20007454,0,0,0,0
|
2
libc/sysv/consts/TIOCPTYUNLK.s
Normal file
2
libc/sysv/consts/TIOCPTYUNLK.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/consts/syscon.internal.inc"
|
||||
.syscon termios,TIOCPTYUNLK,0,0x20007452,0,0,0,0
|
|
@ -2,6 +2,7 @@
|
|||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_POLL_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
|
||||
#define INFTIM (-1)
|
||||
#define POLLERR SYMBOLIC(POLLERR)
|
||||
#define POLLHUP SYMBOLIC(POLLHUP)
|
||||
#define POLLIN SYMBOLIC(POLLIN)
|
||||
|
|
|
@ -178,6 +178,10 @@ extern const uint8_t VTIME;
|
|||
extern const uint8_t VWERASE;
|
||||
extern const uint32_t XCASE;
|
||||
extern const uint32_t XTABS;
|
||||
extern const uint32_t FIODGNAME;
|
||||
extern const uint32_t TIOCPTYGRANT;
|
||||
extern const uint32_t TIOCPTYUNLK;
|
||||
extern const uint32_t TIOCPTYGNAME;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
@ -250,6 +254,7 @@ COSMOPOLITAN_C_END_
|
|||
#define EXTA SYMBOLIC(EXTA)
|
||||
#define EXTB SYMBOLIC(EXTB)
|
||||
#define EXTPROC SYMBOLIC(EXTPROC)
|
||||
#define FIODGNAME SYMBOLIC(FIODGNAME)
|
||||
#define FLUSHO SYMBOLIC(FLUSHO)
|
||||
#define H4DISC SYMBOLIC(H4DISC)
|
||||
#define HUPCL SYMBOLIC(HUPCL)
|
||||
|
@ -319,6 +324,9 @@ COSMOPOLITAN_C_END_
|
|||
#define TIOCNXCL SYMBOLIC(TIOCNXCL)
|
||||
#define TIOCOUTQ SYMBOLIC(TIOCOUTQ)
|
||||
#define TIOCPTMASTER SYMBOLIC(TIOCPTMASTER)
|
||||
#define TIOCPTYGNAME SYMBOLIC(TIOCPTYGNAME)
|
||||
#define TIOCPTYGRANT SYMBOLIC(TIOCPTYGRANT)
|
||||
#define TIOCPTYUNLK SYMBOLIC(TIOCPTYUNLK)
|
||||
#define TIOCREMOTE SYMBOLIC(TIOCREMOTE)
|
||||
#define TIOCSBRK SYMBOLIC(TIOCSBRK)
|
||||
#define TIOCSCTTY SYMBOLIC(TIOCSCTTY)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue