/usr/include/freebsd/unistd.h is in freebsd-glue 0.2.20.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | #include_next <unistd.h>
#ifndef _UNISTD_H_
#define _UNISTD_H_
#include <grp.h> /* initgroups */
#include <crypt.h> /* crypt */
#ifdef __FreeBSD_kernel__
#include <sys/syscall.h>
#include <stddef.h> /* size_t */
#endif
#define getopt(argc, argv, options) bsd_getopt(argc, argv, options)
__BEGIN_DECLS
int bsd_getopt(int argc, char *const *argv, const char *options);
extern int optreset;
#ifdef __FreeBSD_kernel__
static inline int
nfssvc (int a, void *b)
{
return syscall (SYS_nfssvc, a, b);
}
#ifndef SYS_closefrom
#define SYS_closefrom 509
#endif
static inline void
closefrom (int lowfd)
{
syscall (SYS_closefrom, lowfd);
}
int getosreldate(void);
int feature_present(const char *);
int execvP(const char *, const char *, char * const[]);
mode_t getmode(const void *, mode_t);
void *setmode(const char *);
#ifndef SYS_nlm_syscall
#define SYS_nlm_syscall 154
#endif
static inline int
nlm_syscall (int a, int b, int c, char **d)
{
return syscall (SYS_nlm_syscall, a, b, c, d);
}
int getloginclass (char *name, size_t len);
int setloginclass (const char *name);
int getpeereid (int, uid_t *, gid_t *);
int swapon (const char *);
int swapoff (const char *);
#endif /* __FreeBSD_kernel__ */
void setproctitle(const char *fmt, ...);
const char *crypt_get_format (void);
int crypt_set_format (const char *string);
__END_DECLS
#endif
|