diff options
Diffstat (limited to 'libc/include')
| -rw-r--r-- | libc/include/stdint.h | 16 | ||||
| -rw-r--r-- | libc/include/strings.h | 1 | ||||
| -rw-r--r-- | libc/include/sys/_sigdefs.h | 69 | ||||
| -rw-r--r-- | libc/include/sys/linux-syscalls.h | 54 | ||||
| -rw-r--r-- | libc/include/sys/linux-unistd.h | 1 |
5 files changed, 103 insertions, 38 deletions
diff --git a/libc/include/stdint.h b/libc/include/stdint.h index 39a8ab8..237baa2 100644 --- a/libc/include/stdint.h +++ b/libc/include/stdint.h @@ -46,13 +46,17 @@ # define __STDINT_MACROS #endif +#if !defined __STRICT_ANSI__ || __STDC_VERSION__ >= 199901L +# define __STDC_INT64__ +#endif + typedef __int8_t int8_t; typedef __uint8_t uint8_t; typedef __int16_t int16_t; typedef __uint16_t uint16_t; typedef __int32_t int32_t; typedef __uint32_t uint32_t; -#if !defined(__STRICT_ANSI__) +#if defined(__STDC_INT64__) typedef __int64_t int64_t; typedef __uint64_t uint64_t; #endif @@ -157,7 +161,7 @@ typedef uint32_t uint_fast32_t; # define UINT_FAST32_C(c) UINT32_C(c) #endif -#if !defined(__STRICT_ANSI__) +#if defined(__STDC_INT64__) /* * int64_t */ @@ -198,7 +202,7 @@ typedef uint64_t uint_fast64_t; # define __PRIFAST_RANK "" # define __PRIPTR_RANK "" -#endif /* !__STRICT_ANSI__ */ +#endif /* __STDC_INT64__ */ /* * intptr_t & uintptr_t @@ -221,7 +225,7 @@ typedef unsigned int uintptr_t; * intmax_t & uintmax_t */ -#if !defined(__STRICT_ANSI__) +#if defined(__STDC_INT64__) typedef uint64_t uintmax_t; typedef int64_t intmax_t; @@ -233,7 +237,7 @@ typedef int64_t intmax_t; #define INTMAX_C(c) INT64_C(c) #define UINTMAX_C(c) UINT64_C(c) -#else /* __STRICT_ANSI__ */ +#else /* !__STDC_INT64__ */ typedef uint32_t uintmax_t; typedef int32_t intmax_t; @@ -245,7 +249,7 @@ typedef int32_t intmax_t; #define INTMAX_C(c) INT32_C(c) #define UINTMAX_C(c) UINT32_C(c) -#endif /* __STRICT_ANSI__ */ +#endif /* !__STDC_INT64__ */ /* size_t is defined by the GCC-specific <stddef.h> */ diff --git a/libc/include/strings.h b/libc/include/strings.h index 1f73e21..fee7dc4 100644 --- a/libc/include/strings.h +++ b/libc/include/strings.h @@ -39,6 +39,7 @@ #ifndef _STRINGS_H_ #define _STRINGS_H_ +#include <sys/types.h> #include <sys/cdefs.h> __BEGIN_DECLS diff --git a/libc/include/sys/_sigdefs.h b/libc/include/sys/_sigdefs.h index a3cb7a3..6822c25 100644 --- a/libc/include/sys/_sigdefs.h +++ b/libc/include/sys/_sigdefs.h @@ -25,41 +25,46 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ -/* this header is used to define signal constants and names; it might be included several times */ + +/* + * this header is used to define signal constants and names; + * it might be included several times + */ + #ifndef __BIONIC_SIGDEF #error __BIONIC_SIGDEF not defined #endif -__BIONIC_SIGDEF(SIGHUP,1,"Hangup") -__BIONIC_SIGDEF(SIGINT,2,"Interrupt") -__BIONIC_SIGDEF(SIGQUIT,3,"Quit") -__BIONIC_SIGDEF(SIGILL,4,"Illegal instruction") -__BIONIC_SIGDEF(SIGTRAP,5,"Trap") -__BIONIC_SIGDEF(SIGABRT,6,"Aborted") -__BIONIC_SIGDEF(SIGBUS,7,"Bus error") -__BIONIC_SIGDEF(SIGFPE,8,"Floating point exception") -__BIONIC_SIGDEF(SIGKILL,9,"Killed") -__BIONIC_SIGDEF(SIGUSR1,10,"User signal 1") -__BIONIC_SIGDEF(SIGSEGV,11,"Segmentation fault") -__BIONIC_SIGDEF(SIGUSR2,12,"User signal 2") -__BIONIC_SIGDEF(SIGPIPE,13,"Broken pipe") -__BIONIC_SIGDEF(SIGALRM,14,"Alarm clock") -__BIONIC_SIGDEF(SIGTERM,15,"Terminated") -__BIONIC_SIGDEF(SIGSTKFLT,16,"Stack fault") -__BIONIC_SIGDEF(SIGCHLD,17,"Child exited") -__BIONIC_SIGDEF(SIGCONT,18,"Continue") -__BIONIC_SIGDEF(SIGSTOP,19,"Stopped (signal)") -__BIONIC_SIGDEF(SIGTSTP,20,"Stopped") -__BIONIC_SIGDEF(SIGTTIN,21,"Stopped (tty input)") -__BIONIC_SIGDEF(SIGTTOU,22,"Stopper (tty output)") -__BIONIC_SIGDEF(SIGURG,23,"Urgent I/O condition") -__BIONIC_SIGDEF(SIGXCPU,24,"CPU time limit exceeded") -__BIONIC_SIGDEF(SIGXFSZ,25,"File size limit exceeded") -__BIONIC_SIGDEF(SIGVTALRM,26,"Virtual timer expired") -__BIONIC_SIGDEF(SIGPROF,27,"Profiling timer expired") -__BIONIC_SIGDEF(SIGWINCH,28,"Window size changed") -__BIONIC_SIGDEF(SIGIO,29,"I/O possible") -__BIONIC_SIGDEF(SIGPWR,30,"Power failure") -__BIONIC_SIGDEF(SIGSYS,31,"Bad system call") +__BIONIC_SIGDEF(HUP,1,"Hangup") +__BIONIC_SIGDEF(INT,2,"Interrupt") +__BIONIC_SIGDEF(QUIT,3,"Quit") +__BIONIC_SIGDEF(ILL,4,"Illegal instruction") +__BIONIC_SIGDEF(TRAP,5,"Trap") +__BIONIC_SIGDEF(ABRT,6,"Aborted") +__BIONIC_SIGDEF(BUS,7,"Bus error") +__BIONIC_SIGDEF(FPE,8,"Floating point exception") +__BIONIC_SIGDEF(KILL,9,"Killed") +__BIONIC_SIGDEF(USR1,10,"User signal 1") +__BIONIC_SIGDEF(SEGV,11,"Segmentation fault") +__BIONIC_SIGDEF(USR2,12,"User signal 2") +__BIONIC_SIGDEF(PIPE,13,"Broken pipe") +__BIONIC_SIGDEF(ALRM,14,"Alarm clock") +__BIONIC_SIGDEF(TERM,15,"Terminated") +__BIONIC_SIGDEF(STKFLT,16,"Stack fault") +__BIONIC_SIGDEF(CHLD,17,"Child exited") +__BIONIC_SIGDEF(CONT,18,"Continue") +__BIONIC_SIGDEF(STOP,19,"Stopped (signal)") +__BIONIC_SIGDEF(TSTP,20,"Stopped") +__BIONIC_SIGDEF(TTIN,21,"Stopped (tty input)") +__BIONIC_SIGDEF(TTOU,22,"Stopper (tty output)") +__BIONIC_SIGDEF(URG,23,"Urgent I/O condition") +__BIONIC_SIGDEF(XCPU,24,"CPU time limit exceeded") +__BIONIC_SIGDEF(XFSZ,25,"File size limit exceeded") +__BIONIC_SIGDEF(VTALRM,26,"Virtual timer expired") +__BIONIC_SIGDEF(PROF,27,"Profiling timer expired") +__BIONIC_SIGDEF(WINCH,28,"Window size changed") +__BIONIC_SIGDEF(IO,29,"I/O possible") +__BIONIC_SIGDEF(PWR,30,"Power failure") +__BIONIC_SIGDEF(SYS,31,"Bad system call") #undef __BIONIC_SIGDEF diff --git a/libc/include/sys/linux-syscalls.h b/libc/include/sys/linux-syscalls.h index 7772f1e..5d2b55e 100644 --- a/libc/include/sys/linux-syscalls.h +++ b/libc/include/sys/linux-syscalls.h @@ -218,6 +218,60 @@ #define __NR_inotify_rm_watch (__NR_SYSCALL_BASE + 293) #endif +#if defined(__SH3__) || defined(__SH4__) +#define __NR_exit_group (__NR_SYSCALL_BASE + 252) +#define __NR_waitpid (__NR_SYSCALL_BASE + 7) +#define __NR_waitid (__NR_SYSCALL_BASE + 284) +#define __NR_kill (__NR_SYSCALL_BASE + 37) +#define __NR_tkill (__NR_SYSCALL_BASE + 238) +#define __NR_set_thread_area (__NR_SYSCALL_BASE + 243) +#define __NR_vfork (__NR_SYSCALL_BASE + 190) +#define __NR_openat (__NR_SYSCALL_BASE + 295) +#define __NR_madvise (__NR_SYSCALL_BASE + 219) +#define __NR_mincore (__NR_SYSCALL_BASE + 218) +#define __NR_getdents64 (__NR_SYSCALL_BASE + 220) +#define __NR_fstatfs64 (__NR_SYSCALL_BASE + 269) +#define __NR_fstatat64 (__NR_SYSCALL_BASE + 300) +#define __NR_mkdirat (__NR_SYSCALL_BASE + 296) +#define __NR_fchownat (__NR_SYSCALL_BASE + 298) +#define __NR_fchmodat (__NR_SYSCALL_BASE + 306) +#define __NR_renameat (__NR_SYSCALL_BASE + 302) +#define __NR_unlinkat (__NR_SYSCALL_BASE + 301) +#define __NR_statfs64 (__NR_SYSCALL_BASE + 268) +#define __NR_clock_gettime (__NR_SYSCALL_BASE + 265) +#define __NR_clock_settime (__NR_SYSCALL_BASE + 264) +#define __NR_clock_getres (__NR_SYSCALL_BASE + 266) +#define __NR_clock_nanosleep (__NR_SYSCALL_BASE + 267) +#define __NR_timer_create (__NR_SYSCALL_BASE + 259) +#define __NR_timer_settime (__NR_SYSCALL_BASE + 260) +#define __NR_timer_gettime (__NR_SYSCALL_BASE + 261) +#define __NR_timer_getoverrun (__NR_SYSCALL_BASE + 262) +#define __NR_timer_delete (__NR_SYSCALL_BASE + 263) +#define __NR_utimes (__NR_SYSCALL_BASE + 271) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR___socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_epoll_create (__NR_SYSCALL_BASE + 254) +#define __NR_epoll_ctl (__NR_SYSCALL_BASE + 255) +#define __NR_epoll_wait (__NR_SYSCALL_BASE + 256) +#define __NR_inotify_init (__NR_SYSCALL_BASE + 290) +#define __NR_inotify_add_watch (__NR_SYSCALL_BASE + 291) +#define __NR_inotify_rm_watch (__NR_SYSCALL_BASE + 292) +#endif + #endif #endif /* _BIONIC_LINUX_SYSCALLS_H_ */ diff --git a/libc/include/sys/linux-unistd.h b/libc/include/sys/linux-unistd.h index 789271e..12f7704 100644 --- a/libc/include/sys/linux-unistd.h +++ b/libc/include/sys/linux-unistd.h @@ -171,6 +171,7 @@ int setsockopt (int, int, int, const void *, socklen_t); int getsockopt (int, int, int, void *, socklen_t *); int sendmsg (int, const struct msghdr *, unsigned int); int recvmsg (int, struct msghdr *, unsigned int); +int __socketcall (int, unsigned long*); int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); int sched_getscheduler (pid_t pid); int sched_yield (void); |
