mirror of
https://github.com/dlang/phobos.git
synced 2025-05-07 03:27:03 +03:00
added missing declarations
This commit is contained in:
parent
6d5e6ac95a
commit
0ee98ff70e
2 changed files with 69 additions and 46 deletions
|
@ -489,3 +489,26 @@ extern (C)
|
|||
|
||||
int utime(char* filename, utimbuf* buf);
|
||||
}
|
||||
|
||||
extern (C)
|
||||
{
|
||||
/* from unistd.h
|
||||
*/
|
||||
|
||||
gid_t getgid();
|
||||
uid_t getuid();
|
||||
int setpgid(pid_t pid, pid_t pgid);
|
||||
pid_t getpgid(pid_t pid);
|
||||
int setpgrp();
|
||||
pid_t getpgrp();
|
||||
|
||||
}
|
||||
|
||||
extern (C)
|
||||
{
|
||||
/* from signal.h
|
||||
*/
|
||||
|
||||
int killpg(pid_t, int);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,46 +1,46 @@
|
|||
|
||||
|
||||
module termios;
|
||||
|
||||
extern (C):
|
||||
|
||||
alias char cc_t;
|
||||
alias uint speed_t;
|
||||
alias uint tcflag_t;
|
||||
enum { NCCS = 32 } ;
|
||||
|
||||
struct termios
|
||||
{
|
||||
tcflag_t c_iflag;
|
||||
tcflag_t c_oflag;
|
||||
tcflag_t c_cflag;
|
||||
tcflag_t c_lflag;
|
||||
cc_t c_line;
|
||||
cc_t[NCCS] c_cc;
|
||||
speed_t c_ispeed;
|
||||
speed_t c_ospeed;
|
||||
}
|
||||
|
||||
int tcgetattr(int fd, termios* p);
|
||||
|
||||
enum { TCSANOW, TCSADRAIN, TCSAFLUSH }
|
||||
int tcsetattr(int fd, int tcsa, const termios* p);
|
||||
|
||||
void cvmakeraw(termios* p);
|
||||
|
||||
enum { TCIFLUSH, TCOFLUSH, TCIOFLUSH }
|
||||
int tcflush(int fd, int tc_flush);
|
||||
|
||||
enum { TCOOFF, TCOON, TCIOFF, TCION }
|
||||
int tcflow(int fd, int tc);
|
||||
|
||||
int tcsendbreak(int fd, int duration);
|
||||
int tcdrain(int fd);
|
||||
|
||||
int cfsetspeed(termios* p, speed_t speed);
|
||||
int cfsetispeed(termios* p, speed_t speed);
|
||||
int cfsetospeed(termios* p, speed_t speed);
|
||||
|
||||
speed_t cfgetispeed(termios* p);
|
||||
speed_t cfgetospeed(termios* p);
|
||||
|
||||
|
||||
|
||||
module termios;
|
||||
|
||||
extern (C):
|
||||
|
||||
alias char cc_t;
|
||||
alias uint speed_t;
|
||||
alias uint tcflag_t;
|
||||
enum { NCCS = 32 } ;
|
||||
|
||||
struct termios
|
||||
{
|
||||
tcflag_t c_iflag;
|
||||
tcflag_t c_oflag;
|
||||
tcflag_t c_cflag;
|
||||
tcflag_t c_lflag;
|
||||
cc_t c_line;
|
||||
cc_t[NCCS] c_cc;
|
||||
speed_t c_ispeed;
|
||||
speed_t c_ospeed;
|
||||
}
|
||||
|
||||
int tcgetattr(int fd, termios* p);
|
||||
|
||||
enum { TCSANOW, TCSADRAIN, TCSAFLUSH }
|
||||
int tcsetattr(int fd, int tcsa, const termios* p);
|
||||
|
||||
void cfmakeraw(termios* p);
|
||||
|
||||
enum { TCIFLUSH, TCOFLUSH, TCIOFLUSH }
|
||||
int tcflush(int fd, int tc_flush);
|
||||
|
||||
enum { TCOOFF, TCOON, TCIOFF, TCION }
|
||||
int tcflow(int fd, int tc);
|
||||
|
||||
int tcsendbreak(int fd, int duration);
|
||||
int tcdrain(int fd);
|
||||
|
||||
int cfsetspeed(termios* p, speed_t speed);
|
||||
int cfsetispeed(termios* p, speed_t speed);
|
||||
int cfsetospeed(termios* p, speed_t speed);
|
||||
|
||||
speed_t cfgetispeed(termios* p);
|
||||
speed_t cfgetospeed(termios* p);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue