]> code.delx.au - gnu-emacs/blob - nt/inc/unistd.h
Avoid compiler warnings in the MS-Windows build.
[gnu-emacs] / nt / inc / unistd.h
1 /* Fake unistd.h: config.h already provides most of the relevant things. */
2
3 #ifndef _UNISTD_H
4 #define _UNISTD_H
5
6 /* On Microsoft platforms, <stdlib.h> declares 'environ'; on POSIX
7 platforms, <unistd.h> does. Every file in Emacs that includes
8 <unistd.h> also includes <stdlib.h>, so there's no need to declare
9 'environ' here. */
10
11 /* Privide prototypes of library functions that are emulated on w32
12 and whose prototypes are usually found in unistd.h on Posix
13 platforms. */
14 extern ssize_t readlink (const char *, char *, size_t);
15 extern int symlink (char const *, char const *);
16 extern int setpgid (pid_t, pid_t);
17 extern pid_t getpgrp (void);
18 extern pid_t setsid (void);
19 extern pid_t tcgetpgrp (int);
20
21 #endif /* _UNISTD_H */