added missing declarations

This commit is contained in:
Walter Bright 2008-02-15 11:32:14 +00:00
parent 6d5e6ac95a
commit 0ee98ff70e
2 changed files with 69 additions and 46 deletions

View file

@ -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);
}

View file

@ -26,7 +26,7 @@ int tcgetattr(int fd, termios* p);
enum { TCSANOW, TCSADRAIN, TCSAFLUSH }
int tcsetattr(int fd, int tcsa, const termios* p);
void cvmakeraw(termios* p);
void cfmakeraw(termios* p);
enum { TCIFLUSH, TCOFLUSH, TCIOFLUSH }
int tcflush(int fd, int tc_flush);