/* $Id: sysdeps-head.h 616 2005-08-19 20:11:01Z bruce $ */ #ifndef SYS_DEPS__H__ #define SYS_DEPS__H__ #include typedef unsigned char uint8; typedef unsigned short uint16; /* sysdep: -hasattribute */ #define __attribute__(X) /* sysdep: -daylight */ #define daylight 1 /* sysdep: -hasdeprecated */ #define __DEPRECATED__ /* sysdep: -ulong32 */ typedef unsigned int uint32; /* sysdep: -ulong64 */ #undef HAS_ULONG64 typedef unsigned long long uint64; /* sysdep: endian=lsb */ #define ENDIAN_LSB 1 #undef ENDIAN_MSB #ifndef DIRENTRY_H #define DIRENTRY_H /* sysdep: +direct */ /* sysdep: -dirent */ #include #define direntry struct direct #endif /* sysdep: -hasdl */ /* sysdep: -hasipv6 */ #ifndef FORK_H #define FORK_H /* sysdep: -vfork */ extern pid_t fork(); #define vfork fork #endif /* sysdep: -getpeereid */ extern int getpeereid(int s, uid_t* u, gid_t* g); /* sysdep: -hasflock */ /* sysdep: -struct ucred */ /* sysdep: -linux_sendfile */ /* sysdep: -sigaction */ /* sysdep: -sigprocmask */ /* sysdep: -hasspnam */ /* sysdep: -hasuserpw */ /* sysdep: -waitpid */ /* sysdep: -haszlib */ /* sysdep: -poll */ #define IOPOLL_SELECT typedef struct { int fd; short events; short revents; } iopoll_fd; #define IOPOLL_READ 1 #define IOPOLL_WRITE 4 extern int iopoll(iopoll_fd* fds, unsigned nfds, unsigned long timeout); extern int iopoll_restart(iopoll_fd* fds, unsigned nfds, unsigned long timeout); #ifndef SELECT_H #define SELECT_H /* sysdep: -sysselect */ #include extern int select(); #endif /* sysdep: -setenv */ int setenv(const char* name, const char* value, int overwrite); /* sysdep: -timespec */ struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ }; /* sysdep: -clock_gettime */ #undef HASCLOCKGETTIME typedef int clockid_t; #define CLOCK_REALTIME 1 #define CLOCK_MONOTONIC 2 #define CLOCK_PROESS_CPUTIME_ID 3 #define CLOCK_THREAD_PUTIME_ID 4 int clock_getres(clockid_t clk_id, struct timespec *res); /* sysdep: -unsetenv */ #undef HASUNSETENV void unsetenv(const char* name); /* sysdep: -unaligned */ #undef HAS_UNALIGNED_ACCESSES /* sysdep: -hasmkfifo */ /* sysdep: -hasnamedpipebug */ /* sysdep: -hasinline */ /* $Id: sysdeps-tail.h 616 2005-08-19 20:11:01Z bruce $ */ #endif