1996-05-03 18:29:10 +00:00
|
|
|
/* Fake unistd.h: config.h already provides most of the relevant things. */
|
2003-09-01 15:45:59 +00:00
|
|
|
|
2011-02-27 19:48:31 +00:00
|
|
|
#ifndef _UNISTD_H
|
|
|
|
#define _UNISTD_H
|
|
|
|
|
2012-09-04 17:34:54 +00:00
|
|
|
/* On Microsoft platforms, <stdlib.h> declares 'environ'; on POSIX
|
|
|
|
platforms, <unistd.h> does. Every file in Emacs that includes
|
|
|
|
<unistd.h> also includes <stdlib.h>, so there's no need to declare
|
|
|
|
'environ' here. */
|
|
|
|
|
2012-11-05 17:29:30 +00:00
|
|
|
/* Provide prototypes of library functions that are emulated on w32
|
|
|
|
and whose prototypes are usually found in unistd.h on POSIX
|
2012-11-05 16:21:18 +00:00
|
|
|
platforms. */
|
2011-02-27 19:48:31 +00:00
|
|
|
extern ssize_t readlink (const char *, char *, size_t);
|
|
|
|
extern int symlink (char const *, char const *);
|
2012-11-01 14:21:45 +00:00
|
|
|
extern int setpgid (pid_t, pid_t);
|
|
|
|
extern pid_t getpgrp (void);
|
2012-11-05 16:21:18 +00:00
|
|
|
extern pid_t setsid (void);
|
|
|
|
extern pid_t tcgetpgrp (int);
|
2011-02-27 19:48:31 +00:00
|
|
|
|
2012-11-14 17:22:55 +00:00
|
|
|
extern int faccessat (int, char const *, int, int);
|
|
|
|
|
|
|
|
/* These are normally on fcntl.h, but we don't override that header. */
|
|
|
|
/* Use values compatible with gnulib, as there's no reason to differ. */
|
|
|
|
#define AT_FDCWD (-3041965)
|
|
|
|
#define AT_EACCESS 4
|
|
|
|
#define AT_SYMLINK_NOFOLLOW 4096
|
|
|
|
|
2011-02-27 19:48:31 +00:00
|
|
|
#endif /* _UNISTD_H */
|