mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
musl: Add hexagon-linux-musl headers.
This commit is contained in:
parent
3df67dc414
commit
7f20b9f9db
24 changed files with 6330 additions and 0 deletions
409
lib/libc/include/hexagon-linux-musl/bits/alltypes.h
vendored
Normal file
409
lib/libc/include/hexagon-linux-musl/bits/alltypes.h
vendored
Normal file
|
|
@ -0,0 +1,409 @@
|
||||||
|
#define _Addr int
|
||||||
|
#define _Int64 long long
|
||||||
|
#define _Reg int
|
||||||
|
|
||||||
|
#define __BYTE_ORDER 1234
|
||||||
|
#define __LONG_MAX 0x7fffffffL
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
|
#ifdef __WCHAR_TYPE__
|
||||||
|
#if defined(__NEED_wchar_t) && !defined(__DEFINED_wchar_t)
|
||||||
|
typedef __WCHAR_TYPE__ wchar_t;
|
||||||
|
#define __DEFINED_wchar_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#else
|
||||||
|
#if defined(__NEED_wchar_t) && !defined(__DEFINED_wchar_t)
|
||||||
|
typedef long wchar_t;
|
||||||
|
#define __DEFINED_wchar_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_float_t) && !defined(__DEFINED_float_t)
|
||||||
|
typedef float float_t;
|
||||||
|
#define __DEFINED_float_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_double_t) && !defined(__DEFINED_double_t)
|
||||||
|
typedef double double_t;
|
||||||
|
#define __DEFINED_double_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_max_align_t) && !defined(__DEFINED_max_align_t)
|
||||||
|
typedef struct { long long __ll; long double __ld; } max_align_t;
|
||||||
|
#define __DEFINED_max_align_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define __LITTLE_ENDIAN 1234
|
||||||
|
#define __BIG_ENDIAN 4321
|
||||||
|
#define __USE_TIME_BITS64 1
|
||||||
|
|
||||||
|
#if defined(__NEED_size_t) && !defined(__DEFINED_size_t)
|
||||||
|
typedef unsigned _Addr size_t;
|
||||||
|
#define __DEFINED_size_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_uintptr_t) && !defined(__DEFINED_uintptr_t)
|
||||||
|
typedef unsigned _Addr uintptr_t;
|
||||||
|
#define __DEFINED_uintptr_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_ptrdiff_t) && !defined(__DEFINED_ptrdiff_t)
|
||||||
|
typedef _Addr ptrdiff_t;
|
||||||
|
#define __DEFINED_ptrdiff_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_ssize_t) && !defined(__DEFINED_ssize_t)
|
||||||
|
typedef _Addr ssize_t;
|
||||||
|
#define __DEFINED_ssize_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_intptr_t) && !defined(__DEFINED_intptr_t)
|
||||||
|
typedef _Addr intptr_t;
|
||||||
|
#define __DEFINED_intptr_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_regoff_t) && !defined(__DEFINED_regoff_t)
|
||||||
|
typedef _Addr regoff_t;
|
||||||
|
#define __DEFINED_regoff_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_register_t) && !defined(__DEFINED_register_t)
|
||||||
|
typedef _Reg register_t;
|
||||||
|
#define __DEFINED_register_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_time_t) && !defined(__DEFINED_time_t)
|
||||||
|
typedef _Int64 time_t;
|
||||||
|
#define __DEFINED_time_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_suseconds_t) && !defined(__DEFINED_suseconds_t)
|
||||||
|
typedef _Int64 suseconds_t;
|
||||||
|
#define __DEFINED_suseconds_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_int8_t) && !defined(__DEFINED_int8_t)
|
||||||
|
typedef signed char int8_t;
|
||||||
|
#define __DEFINED_int8_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_int16_t) && !defined(__DEFINED_int16_t)
|
||||||
|
typedef signed short int16_t;
|
||||||
|
#define __DEFINED_int16_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_int32_t) && !defined(__DEFINED_int32_t)
|
||||||
|
typedef signed int int32_t;
|
||||||
|
#define __DEFINED_int32_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_int64_t) && !defined(__DEFINED_int64_t)
|
||||||
|
typedef signed _Int64 int64_t;
|
||||||
|
#define __DEFINED_int64_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_intmax_t) && !defined(__DEFINED_intmax_t)
|
||||||
|
typedef signed _Int64 intmax_t;
|
||||||
|
#define __DEFINED_intmax_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_uint8_t) && !defined(__DEFINED_uint8_t)
|
||||||
|
typedef unsigned char uint8_t;
|
||||||
|
#define __DEFINED_uint8_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_uint16_t) && !defined(__DEFINED_uint16_t)
|
||||||
|
typedef unsigned short uint16_t;
|
||||||
|
#define __DEFINED_uint16_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_uint32_t) && !defined(__DEFINED_uint32_t)
|
||||||
|
typedef unsigned int uint32_t;
|
||||||
|
#define __DEFINED_uint32_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_uint64_t) && !defined(__DEFINED_uint64_t)
|
||||||
|
typedef unsigned _Int64 uint64_t;
|
||||||
|
#define __DEFINED_uint64_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_u_int64_t) && !defined(__DEFINED_u_int64_t)
|
||||||
|
typedef unsigned _Int64 u_int64_t;
|
||||||
|
#define __DEFINED_u_int64_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_uintmax_t) && !defined(__DEFINED_uintmax_t)
|
||||||
|
typedef unsigned _Int64 uintmax_t;
|
||||||
|
#define __DEFINED_uintmax_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_mode_t) && !defined(__DEFINED_mode_t)
|
||||||
|
typedef unsigned mode_t;
|
||||||
|
#define __DEFINED_mode_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_nlink_t) && !defined(__DEFINED_nlink_t)
|
||||||
|
typedef unsigned _Reg nlink_t;
|
||||||
|
#define __DEFINED_nlink_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_off_t) && !defined(__DEFINED_off_t)
|
||||||
|
typedef _Int64 off_t;
|
||||||
|
#define __DEFINED_off_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_ino_t) && !defined(__DEFINED_ino_t)
|
||||||
|
typedef unsigned _Int64 ino_t;
|
||||||
|
#define __DEFINED_ino_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_dev_t) && !defined(__DEFINED_dev_t)
|
||||||
|
typedef unsigned _Int64 dev_t;
|
||||||
|
#define __DEFINED_dev_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_blksize_t) && !defined(__DEFINED_blksize_t)
|
||||||
|
typedef long blksize_t;
|
||||||
|
#define __DEFINED_blksize_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_blkcnt_t) && !defined(__DEFINED_blkcnt_t)
|
||||||
|
typedef _Int64 blkcnt_t;
|
||||||
|
#define __DEFINED_blkcnt_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_fsblkcnt_t) && !defined(__DEFINED_fsblkcnt_t)
|
||||||
|
typedef unsigned _Int64 fsblkcnt_t;
|
||||||
|
#define __DEFINED_fsblkcnt_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_fsfilcnt_t) && !defined(__DEFINED_fsfilcnt_t)
|
||||||
|
typedef unsigned _Int64 fsfilcnt_t;
|
||||||
|
#define __DEFINED_fsfilcnt_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_wint_t) && !defined(__DEFINED_wint_t)
|
||||||
|
typedef unsigned wint_t;
|
||||||
|
#define __DEFINED_wint_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_wctype_t) && !defined(__DEFINED_wctype_t)
|
||||||
|
typedef unsigned long wctype_t;
|
||||||
|
#define __DEFINED_wctype_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_timer_t) && !defined(__DEFINED_timer_t)
|
||||||
|
typedef void * timer_t;
|
||||||
|
#define __DEFINED_timer_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_clockid_t) && !defined(__DEFINED_clockid_t)
|
||||||
|
typedef int clockid_t;
|
||||||
|
#define __DEFINED_clockid_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_clock_t) && !defined(__DEFINED_clock_t)
|
||||||
|
typedef long clock_t;
|
||||||
|
#define __DEFINED_clock_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_struct_timeval) && !defined(__DEFINED_struct_timeval)
|
||||||
|
struct timeval { time_t tv_sec; suseconds_t tv_usec; };
|
||||||
|
#define __DEFINED_struct_timeval
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_struct_timespec) && !defined(__DEFINED_struct_timespec)
|
||||||
|
struct timespec { time_t tv_sec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER==4321); long tv_nsec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER!=4321); };
|
||||||
|
#define __DEFINED_struct_timespec
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_pid_t) && !defined(__DEFINED_pid_t)
|
||||||
|
typedef int pid_t;
|
||||||
|
#define __DEFINED_pid_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_id_t) && !defined(__DEFINED_id_t)
|
||||||
|
typedef unsigned id_t;
|
||||||
|
#define __DEFINED_id_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_uid_t) && !defined(__DEFINED_uid_t)
|
||||||
|
typedef unsigned uid_t;
|
||||||
|
#define __DEFINED_uid_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_gid_t) && !defined(__DEFINED_gid_t)
|
||||||
|
typedef unsigned gid_t;
|
||||||
|
#define __DEFINED_gid_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_key_t) && !defined(__DEFINED_key_t)
|
||||||
|
typedef int key_t;
|
||||||
|
#define __DEFINED_key_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_useconds_t) && !defined(__DEFINED_useconds_t)
|
||||||
|
typedef unsigned useconds_t;
|
||||||
|
#define __DEFINED_useconds_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#if defined(__NEED_pthread_t) && !defined(__DEFINED_pthread_t)
|
||||||
|
typedef unsigned long pthread_t;
|
||||||
|
#define __DEFINED_pthread_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#else
|
||||||
|
#if defined(__NEED_pthread_t) && !defined(__DEFINED_pthread_t)
|
||||||
|
typedef struct __pthread * pthread_t;
|
||||||
|
#define __DEFINED_pthread_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#if defined(__NEED_pthread_once_t) && !defined(__DEFINED_pthread_once_t)
|
||||||
|
typedef int pthread_once_t;
|
||||||
|
#define __DEFINED_pthread_once_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_pthread_key_t) && !defined(__DEFINED_pthread_key_t)
|
||||||
|
typedef unsigned pthread_key_t;
|
||||||
|
#define __DEFINED_pthread_key_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_pthread_spinlock_t) && !defined(__DEFINED_pthread_spinlock_t)
|
||||||
|
typedef int pthread_spinlock_t;
|
||||||
|
#define __DEFINED_pthread_spinlock_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_pthread_mutexattr_t) && !defined(__DEFINED_pthread_mutexattr_t)
|
||||||
|
typedef struct { unsigned __attr; } pthread_mutexattr_t;
|
||||||
|
#define __DEFINED_pthread_mutexattr_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_pthread_condattr_t) && !defined(__DEFINED_pthread_condattr_t)
|
||||||
|
typedef struct { unsigned __attr; } pthread_condattr_t;
|
||||||
|
#define __DEFINED_pthread_condattr_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_pthread_barrierattr_t) && !defined(__DEFINED_pthread_barrierattr_t)
|
||||||
|
typedef struct { unsigned __attr; } pthread_barrierattr_t;
|
||||||
|
#define __DEFINED_pthread_barrierattr_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_pthread_rwlockattr_t) && !defined(__DEFINED_pthread_rwlockattr_t)
|
||||||
|
typedef struct { unsigned __attr[2]; } pthread_rwlockattr_t;
|
||||||
|
#define __DEFINED_pthread_rwlockattr_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_struct__IO_FILE) && !defined(__DEFINED_struct__IO_FILE)
|
||||||
|
struct _IO_FILE { char __x; };
|
||||||
|
#define __DEFINED_struct__IO_FILE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_FILE) && !defined(__DEFINED_FILE)
|
||||||
|
typedef struct _IO_FILE FILE;
|
||||||
|
#define __DEFINED_FILE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_va_list) && !defined(__DEFINED_va_list)
|
||||||
|
typedef __builtin_va_list va_list;
|
||||||
|
#define __DEFINED_va_list
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED___isoc_va_list) && !defined(__DEFINED___isoc_va_list)
|
||||||
|
typedef __builtin_va_list __isoc_va_list;
|
||||||
|
#define __DEFINED___isoc_va_list
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_mbstate_t) && !defined(__DEFINED_mbstate_t)
|
||||||
|
typedef struct __mbstate_t { unsigned __opaque1, __opaque2; } mbstate_t;
|
||||||
|
#define __DEFINED_mbstate_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_locale_t) && !defined(__DEFINED_locale_t)
|
||||||
|
typedef struct __locale_struct * locale_t;
|
||||||
|
#define __DEFINED_locale_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_sigset_t) && !defined(__DEFINED_sigset_t)
|
||||||
|
typedef struct __sigset_t { unsigned long __bits[128/sizeof(long)]; } sigset_t;
|
||||||
|
#define __DEFINED_sigset_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_struct_iovec) && !defined(__DEFINED_struct_iovec)
|
||||||
|
struct iovec { void *iov_base; size_t iov_len; };
|
||||||
|
#define __DEFINED_struct_iovec
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_struct_winsize) && !defined(__DEFINED_struct_winsize)
|
||||||
|
struct winsize { unsigned short ws_row, ws_col, ws_xpixel, ws_ypixel; };
|
||||||
|
#define __DEFINED_struct_winsize
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_socklen_t) && !defined(__DEFINED_socklen_t)
|
||||||
|
typedef unsigned socklen_t;
|
||||||
|
#define __DEFINED_socklen_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_sa_family_t) && !defined(__DEFINED_sa_family_t)
|
||||||
|
typedef unsigned short sa_family_t;
|
||||||
|
#define __DEFINED_sa_family_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__NEED_pthread_attr_t) && !defined(__DEFINED_pthread_attr_t)
|
||||||
|
typedef struct { union { int __i[sizeof(long)==8?14:9]; volatile int __vi[sizeof(long)==8?14:9]; unsigned long __s[sizeof(long)==8?7:9]; } __u; } pthread_attr_t;
|
||||||
|
#define __DEFINED_pthread_attr_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_pthread_mutex_t) && !defined(__DEFINED_pthread_mutex_t)
|
||||||
|
typedef struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatile void *volatile __p[sizeof(long)==8?5:6]; } __u; } pthread_mutex_t;
|
||||||
|
#define __DEFINED_pthread_mutex_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_mtx_t) && !defined(__DEFINED_mtx_t)
|
||||||
|
typedef struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatile void *volatile __p[sizeof(long)==8?5:6]; } __u; } mtx_t;
|
||||||
|
#define __DEFINED_mtx_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_pthread_cond_t) && !defined(__DEFINED_pthread_cond_t)
|
||||||
|
typedef struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)]; } __u; } pthread_cond_t;
|
||||||
|
#define __DEFINED_pthread_cond_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_cnd_t) && !defined(__DEFINED_cnd_t)
|
||||||
|
typedef struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)]; } __u; } cnd_t;
|
||||||
|
#define __DEFINED_cnd_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_pthread_rwlock_t) && !defined(__DEFINED_pthread_rwlock_t)
|
||||||
|
typedef struct { union { int __i[sizeof(long)==8?14:8]; volatile int __vi[sizeof(long)==8?14:8]; void *__p[sizeof(long)==8?7:8]; } __u; } pthread_rwlock_t;
|
||||||
|
#define __DEFINED_pthread_rwlock_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__NEED_pthread_barrier_t) && !defined(__DEFINED_pthread_barrier_t)
|
||||||
|
typedef struct { union { int __i[sizeof(long)==8?8:5]; volatile int __vi[sizeof(long)==8?8:5]; void *__p[sizeof(long)==8?4:5]; } __u; } pthread_barrier_t;
|
||||||
|
#define __DEFINED_pthread_barrier_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#undef _Addr
|
||||||
|
#undef _Int64
|
||||||
|
#undef _Reg
|
||||||
20
lib/libc/include/hexagon-linux-musl/bits/fenv.h
vendored
Normal file
20
lib/libc/include/hexagon-linux-musl/bits/fenv.h
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
#define FE_INVALID (1 << 1)
|
||||||
|
#define FE_DIVBYZERO (1 << 2)
|
||||||
|
#define FE_OVERFLOW (1 << 3)
|
||||||
|
#define FE_UNDERFLOW (1 << 4)
|
||||||
|
#define FE_INEXACT (1 << 5)
|
||||||
|
#define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | \
|
||||||
|
FE_OVERFLOW | FE_UNDERFLOW)
|
||||||
|
|
||||||
|
#define FE_TONEAREST 0x00
|
||||||
|
#define FE_TOWARDZERO 0x01
|
||||||
|
#define FE_DOWNWARD 0x02
|
||||||
|
#define FE_UPWARD 0x03
|
||||||
|
|
||||||
|
typedef unsigned long fexcept_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
unsigned long __cw;
|
||||||
|
} fenv_t;
|
||||||
|
|
||||||
|
#define FE_DFL_ENV ((const fenv_t *) -1)
|
||||||
16
lib/libc/include/hexagon-linux-musl/bits/float.h
vendored
Normal file
16
lib/libc/include/hexagon-linux-musl/bits/float.h
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#define FLT_EVAL_METHOD 0
|
||||||
|
|
||||||
|
#define LDBL_TRUE_MIN 4.94065645841246544177e-324L
|
||||||
|
#define LDBL_MIN 2.22507385850720138309e-308L
|
||||||
|
#define LDBL_MAX 1.79769313486231570815e+308L
|
||||||
|
#define LDBL_EPSILON 2.22044604925031308085e-16L
|
||||||
|
|
||||||
|
#define LDBL_MANT_DIG 53
|
||||||
|
#define LDBL_MIN_EXP (-1021)
|
||||||
|
#define LDBL_MAX_EXP 1024
|
||||||
|
|
||||||
|
#define LDBL_DIG 15
|
||||||
|
#define LDBL_MIN_10_EXP (-307)
|
||||||
|
#define LDBL_MAX_10_EXP 308
|
||||||
|
|
||||||
|
#define DECIMAL_DIG 17
|
||||||
1
lib/libc/include/hexagon-linux-musl/bits/ipcstat.h
vendored
Normal file
1
lib/libc/include/hexagon-linux-musl/bits/ipcstat.h
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
#define IPC_STAT 0x102
|
||||||
18
lib/libc/include/hexagon-linux-musl/bits/msg.h
vendored
Normal file
18
lib/libc/include/hexagon-linux-musl/bits/msg.h
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
struct msqid_ds {
|
||||||
|
struct ipc_perm msg_perm;
|
||||||
|
unsigned long __msg_stime_lo;
|
||||||
|
unsigned long __msg_stime_hi;
|
||||||
|
unsigned long __msg_rtime_lo;
|
||||||
|
unsigned long __msg_rtime_hi;
|
||||||
|
unsigned long __msg_ctime_lo;
|
||||||
|
unsigned long __msg_ctime_hi;
|
||||||
|
unsigned long msg_cbytes;
|
||||||
|
msgqnum_t msg_qnum;
|
||||||
|
msglen_t msg_qbytes;
|
||||||
|
pid_t msg_lspid;
|
||||||
|
pid_t msg_lrpid;
|
||||||
|
unsigned long __unused[2];
|
||||||
|
time_t msg_stime;
|
||||||
|
time_t msg_rtime;
|
||||||
|
time_t msg_ctime;
|
||||||
|
};
|
||||||
0
lib/libc/include/hexagon-linux-musl/bits/reg.h
vendored
Normal file
0
lib/libc/include/hexagon-linux-musl/bits/reg.h
vendored
Normal file
13
lib/libc/include/hexagon-linux-musl/bits/sem.h
vendored
Normal file
13
lib/libc/include/hexagon-linux-musl/bits/sem.h
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
struct semid_ds {
|
||||||
|
struct ipc_perm sem_perm;
|
||||||
|
unsigned long __sem_otime_lo;
|
||||||
|
unsigned long __sem_otime_hi;
|
||||||
|
unsigned long __sem_ctime_lo;
|
||||||
|
unsigned long __sem_ctime_hi;
|
||||||
|
unsigned short sem_nsems;
|
||||||
|
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
||||||
|
long __unused3;
|
||||||
|
long __unused4;
|
||||||
|
time_t sem_otime;
|
||||||
|
time_t sem_ctime;
|
||||||
|
};
|
||||||
1
lib/libc/include/hexagon-linux-musl/bits/setjmp.h
vendored
Normal file
1
lib/libc/include/hexagon-linux-musl/bits/setjmp.h
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
typedef long long __jmp_buf[8];
|
||||||
31
lib/libc/include/hexagon-linux-musl/bits/shm.h
vendored
Normal file
31
lib/libc/include/hexagon-linux-musl/bits/shm.h
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
#define SHMLBA 4096
|
||||||
|
|
||||||
|
struct shmid_ds {
|
||||||
|
struct ipc_perm shm_perm;
|
||||||
|
size_t shm_segsz;
|
||||||
|
unsigned long __shm_atime_lo;
|
||||||
|
unsigned long __shm_atime_hi;
|
||||||
|
unsigned long __shm_dtime_lo;
|
||||||
|
unsigned long __shm_dtime_hi;
|
||||||
|
unsigned long __shm_ctime_lo;
|
||||||
|
unsigned long __shm_ctime_hi;
|
||||||
|
pid_t shm_cpid;
|
||||||
|
pid_t shm_lpid;
|
||||||
|
unsigned long shm_nattch;
|
||||||
|
unsigned long __pad1;
|
||||||
|
unsigned long __pad2;
|
||||||
|
unsigned long __pad3;
|
||||||
|
time_t shm_atime;
|
||||||
|
time_t shm_dtime;
|
||||||
|
time_t shm_ctime;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct shminfo {
|
||||||
|
unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4];
|
||||||
|
};
|
||||||
|
|
||||||
|
struct shm_info {
|
||||||
|
int __used_ids;
|
||||||
|
unsigned long shm_tot, shm_rss, shm_swp;
|
||||||
|
unsigned long __swap_attempts, __swap_successes;
|
||||||
|
};
|
||||||
103
lib/libc/include/hexagon-linux-musl/bits/signal.h
vendored
Normal file
103
lib/libc/include/hexagon-linux-musl/bits/signal.h
vendored
Normal file
|
|
@ -0,0 +1,103 @@
|
||||||
|
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|
||||||
|
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
|
||||||
|
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
#define MINSIGSTKSZ 2048
|
||||||
|
#define SIGSTKSZ 8192
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
typedef int greg_t, gregset_t[18];
|
||||||
|
typedef struct sigcontext
|
||||||
|
{
|
||||||
|
unsigned long r0, r1, r2, r3;
|
||||||
|
unsigned long r4, r5, r6, r7;
|
||||||
|
unsigned long r8, r9, r10, r11;
|
||||||
|
unsigned long r12, r13, r14, r15;
|
||||||
|
unsigned long r16, r17, r18, r19;
|
||||||
|
unsigned long r20, r21, r22, r23;
|
||||||
|
unsigned long r24, r25, r26, r27;
|
||||||
|
unsigned long r28, r29, r30, r31;
|
||||||
|
unsigned long sa0;
|
||||||
|
unsigned long lc0;
|
||||||
|
unsigned long sa1;
|
||||||
|
unsigned long lc1;
|
||||||
|
unsigned long m0;
|
||||||
|
unsigned long m1;
|
||||||
|
unsigned long usr;
|
||||||
|
unsigned long p3_0;
|
||||||
|
unsigned long gp;
|
||||||
|
unsigned long ugp;
|
||||||
|
unsigned long pc;
|
||||||
|
unsigned long cause;
|
||||||
|
unsigned long badva;
|
||||||
|
unsigned long pad1;
|
||||||
|
unsigned long long pad2;
|
||||||
|
} mcontext_t;
|
||||||
|
#else
|
||||||
|
typedef struct {
|
||||||
|
unsigned long __regs[48];
|
||||||
|
} __attribute__((__aligned__(8))) mcontext_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
struct sigaltstack {
|
||||||
|
void *ss_sp;
|
||||||
|
int ss_flags;
|
||||||
|
size_t ss_size;
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef struct __ucontext {
|
||||||
|
unsigned long uc_flags;
|
||||||
|
struct __ucontext *uc_link;
|
||||||
|
stack_t uc_stack;
|
||||||
|
mcontext_t uc_mcontext;
|
||||||
|
sigset_t uc_sigmask;
|
||||||
|
} ucontext_t;
|
||||||
|
|
||||||
|
#define SA_NOCLDSTOP 1
|
||||||
|
#define SA_NOCLDWAIT 2
|
||||||
|
#define SA_SIGINFO 4
|
||||||
|
#define SA_ONSTACK 0x08000000
|
||||||
|
#define SA_RESTART 0x10000000
|
||||||
|
#define SA_NODEFER 0x40000000
|
||||||
|
#define SA_RESETHAND 0x80000000
|
||||||
|
#define SA_RESTORER 0x04000000
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define SIGHUP 1
|
||||||
|
#define SIGINT 2
|
||||||
|
#define SIGQUIT 3
|
||||||
|
#define SIGILL 4
|
||||||
|
#define SIGTRAP 5
|
||||||
|
#define SIGABRT 6
|
||||||
|
#define SIGIOT SIGABRT
|
||||||
|
#define SIGBUS 7
|
||||||
|
#define SIGFPE 8
|
||||||
|
#define SIGKILL 9
|
||||||
|
#define SIGUSR1 10
|
||||||
|
#define SIGSEGV 11
|
||||||
|
#define SIGUSR2 12
|
||||||
|
#define SIGPIPE 13
|
||||||
|
#define SIGALRM 14
|
||||||
|
#define SIGTERM 15
|
||||||
|
#define SIGSTKFLT 16
|
||||||
|
#define SIGCHLD 17
|
||||||
|
#define SIGCONT 18
|
||||||
|
#define SIGSTOP 19
|
||||||
|
#define SIGTSTP 20
|
||||||
|
#define SIGTTIN 21
|
||||||
|
#define SIGTTOU 22
|
||||||
|
#define SIGURG 23
|
||||||
|
#define SIGXCPU 24
|
||||||
|
#define SIGXFSZ 25
|
||||||
|
#define SIGVTALRM 26
|
||||||
|
#define SIGPROF 27
|
||||||
|
#define SIGWINCH 28
|
||||||
|
#define SIGIO 29
|
||||||
|
#define SIGPOLL 29
|
||||||
|
#define SIGPWR 30
|
||||||
|
#define SIGSYS 31
|
||||||
|
#define SIGUNUSED SIGSYS
|
||||||
|
|
||||||
|
#define _NSIG 65
|
||||||
20
lib/libc/include/hexagon-linux-musl/bits/stat.h
vendored
Normal file
20
lib/libc/include/hexagon-linux-musl/bits/stat.h
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
/* copied from kernel definition, but with padding replaced
|
||||||
|
* by the corresponding correctly-sized userspace types. */
|
||||||
|
struct stat {
|
||||||
|
dev_t st_dev;
|
||||||
|
ino_t st_ino;
|
||||||
|
mode_t st_mode;
|
||||||
|
nlink_t st_nlink;
|
||||||
|
uid_t st_uid;
|
||||||
|
gid_t st_gid;
|
||||||
|
dev_t st_rdev;
|
||||||
|
unsigned long __pad;
|
||||||
|
off_t st_size;
|
||||||
|
blksize_t st_blksize;
|
||||||
|
int __pad2;
|
||||||
|
blkcnt_t st_blocks;
|
||||||
|
struct timespec st_atim;
|
||||||
|
struct timespec st_mtim;
|
||||||
|
struct timespec st_ctim;
|
||||||
|
unsigned __unused[2];
|
||||||
|
};
|
||||||
695
lib/libc/include/hexagon-linux-musl/bits/syscall.h
vendored
Normal file
695
lib/libc/include/hexagon-linux-musl/bits/syscall.h
vendored
Normal file
|
|
@ -0,0 +1,695 @@
|
||||||
|
#define __NR_io_setup 0
|
||||||
|
#define __NR_io_destroy 1
|
||||||
|
#define __NR_io_submit 2
|
||||||
|
#define __NR_io_cancel 3
|
||||||
|
#define __NR_io_getevents 4
|
||||||
|
#define __NR_setxattr 5
|
||||||
|
#define __NR_lsetxattr 6
|
||||||
|
#define __NR_fsetxattr 7
|
||||||
|
#define __NR_getxattr 8
|
||||||
|
#define __NR_lgetxattr 9
|
||||||
|
#define __NR_fgetxattr 10
|
||||||
|
#define __NR_listxattr 11
|
||||||
|
#define __NR_llistxattr 12
|
||||||
|
#define __NR_flistxattr 13
|
||||||
|
#define __NR_removexattr 14
|
||||||
|
#define __NR_lremovexattr 15
|
||||||
|
#define __NR_fremovexattr 16
|
||||||
|
#define __NR_getcwd 17
|
||||||
|
#define __NR_lookup_dcookie 18
|
||||||
|
#define __NR_eventfd2 19
|
||||||
|
#define __NR_epoll_create1 20
|
||||||
|
#define __NR_epoll_ctl 21
|
||||||
|
#define __NR_epoll_pwait 22
|
||||||
|
#define __NR_dup 23
|
||||||
|
#define __NR_dup3 24
|
||||||
|
#define __NR_fcntl 25
|
||||||
|
#define __NR_inotify_init1 26
|
||||||
|
#define __NR_inotify_add_watch 27
|
||||||
|
#define __NR_inotify_rm_watch 28
|
||||||
|
#define __NR_ioctl 29
|
||||||
|
#define __NR_ioprio_set 30
|
||||||
|
#define __NR_ioprio_get 31
|
||||||
|
#define __NR_flock 32
|
||||||
|
#define __NR_mknodat 33
|
||||||
|
#define __NR_mkdirat 34
|
||||||
|
#define __NR_unlinkat 35
|
||||||
|
#define __NR_symlinkat 36
|
||||||
|
#define __NR_linkat 37
|
||||||
|
#define __NR_renameat 38
|
||||||
|
#define __NR_umount2 39
|
||||||
|
#define __NR_mount 40
|
||||||
|
#define __NR_pivot_root 41
|
||||||
|
#define __NR_nfsservctl 42
|
||||||
|
#define __NR_statfs 43
|
||||||
|
#define __NR_fstatfs 44
|
||||||
|
#define __NR_truncate 45
|
||||||
|
#define __NR_ftruncate 46
|
||||||
|
#define __NR_fallocate 47
|
||||||
|
#define __NR_faccessat 48
|
||||||
|
#define __NR_chdir 49
|
||||||
|
#define __NR_fchdir 50
|
||||||
|
#define __NR_chroot 51
|
||||||
|
#define __NR_fchmod 52
|
||||||
|
#define __NR_fchmodat 53
|
||||||
|
#define __NR_fchownat 54
|
||||||
|
#define __NR_fchown 55
|
||||||
|
#define __NR_openat 56
|
||||||
|
#define __NR_close 57
|
||||||
|
#define __NR_vhangup 58
|
||||||
|
#define __NR_pipe2 59
|
||||||
|
#define __NR_quotactl 60
|
||||||
|
#define __NR_getdents64 61
|
||||||
|
#define __NR_lseek 62
|
||||||
|
#define __NR_read 63
|
||||||
|
#define __NR_write 64
|
||||||
|
#define __NR_readv 65
|
||||||
|
#define __NR_writev 66
|
||||||
|
#define __NR_pread64 67
|
||||||
|
#define __NR_pwrite64 68
|
||||||
|
#define __NR_preadv 69
|
||||||
|
#define __NR_pwritev 70
|
||||||
|
#define __NR_sendfile 71
|
||||||
|
#define __NR_pselect6 72
|
||||||
|
#define __NR_ppoll 73
|
||||||
|
#define __NR_signalfd4 74
|
||||||
|
#define __NR_vmsplice 75
|
||||||
|
#define __NR_splice 76
|
||||||
|
#define __NR_tee 77
|
||||||
|
#define __NR_readlinkat 78
|
||||||
|
#define __NR_fstatat 79
|
||||||
|
#define __NR_fstat 80
|
||||||
|
#define __NR_sync 81
|
||||||
|
#define __NR_fsync 82
|
||||||
|
#define __NR_fdatasync 83
|
||||||
|
#define __NR_sync_file_range2 84
|
||||||
|
#define __NR_sync_file_range 84
|
||||||
|
#define __NR_timerfd_create 85
|
||||||
|
#define __NR_timerfd_settime 86
|
||||||
|
#define __NR_timerfd_gettime 87
|
||||||
|
#define __NR_utimensat 88
|
||||||
|
#define __NR_acct 89
|
||||||
|
#define __NR_capget 90
|
||||||
|
#define __NR_capset 91
|
||||||
|
#define __NR_personality 92
|
||||||
|
#define __NR_exit 93
|
||||||
|
#define __NR_exit_group 94
|
||||||
|
#define __NR_waitid 95
|
||||||
|
#define __NR_set_tid_address 96
|
||||||
|
#define __NR_unshare 97
|
||||||
|
#define __NR_futex 98
|
||||||
|
#define __NR_set_robust_list 99
|
||||||
|
#define __NR_get_robust_list 100
|
||||||
|
#define __NR_nanosleep 101
|
||||||
|
#define __NR_getitimer 102
|
||||||
|
#define __NR_setitimer 103
|
||||||
|
#define __NR_kexec_load 104
|
||||||
|
#define __NR_init_module 105
|
||||||
|
#define __NR_delete_module 106
|
||||||
|
#define __NR_timer_create 107
|
||||||
|
#define __NR_timer_gettime 108
|
||||||
|
#define __NR_timer_getoverrun 109
|
||||||
|
#define __NR_timer_settime 110
|
||||||
|
#define __NR_timer_delete 111
|
||||||
|
#define __NR_clock_settime 112
|
||||||
|
#define __NR_clock_gettime32 113
|
||||||
|
#define __NR_clock_getres 114
|
||||||
|
#define __NR_clock_nanosleep 115
|
||||||
|
#define __NR_syslog 116
|
||||||
|
#define __NR_ptrace 117
|
||||||
|
#define __NR_sched_setparam 118
|
||||||
|
#define __NR_sched_setscheduler 119
|
||||||
|
#define __NR_sched_getscheduler 120
|
||||||
|
#define __NR_sched_getparam 121
|
||||||
|
#define __NR_sched_setaffinity 122
|
||||||
|
#define __NR_sched_getaffinity 123
|
||||||
|
#define __NR_sched_yield 124
|
||||||
|
#define __NR_sched_get_priority_max 125
|
||||||
|
#define __NR_sched_get_priority_min 126
|
||||||
|
#define __NR_sched_rr_get_interval 127
|
||||||
|
#define __NR_restart_syscall 128
|
||||||
|
#define __NR_kill 129
|
||||||
|
#define __NR_tkill 130
|
||||||
|
#define __NR_tgkill 131
|
||||||
|
#define __NR_sigaltstack 132
|
||||||
|
#define __NR_rt_sigsuspend 133
|
||||||
|
#define __NR_rt_sigaction 134
|
||||||
|
#define __NR_rt_sigprocmask 135
|
||||||
|
#define __NR_rt_sigpending 136
|
||||||
|
#define __NR_rt_sigtimedwait 137
|
||||||
|
#define __NR_rt_sigqueueinfo 138
|
||||||
|
#define __NR_rt_sigreturn 139
|
||||||
|
#define __NR_setpriority 140
|
||||||
|
#define __NR_getpriority 141
|
||||||
|
#define __NR_reboot 142
|
||||||
|
#define __NR_setregid 143
|
||||||
|
#define __NR_setgid 144
|
||||||
|
#define __NR_setreuid 145
|
||||||
|
#define __NR_setuid 146
|
||||||
|
#define __NR_setresuid 147
|
||||||
|
#define __NR_getresuid 148
|
||||||
|
#define __NR_setresgid 149
|
||||||
|
#define __NR_getresgid 150
|
||||||
|
#define __NR_setfsuid 151
|
||||||
|
#define __NR_setfsgid 152
|
||||||
|
#define __NR_times 153
|
||||||
|
#define __NR_setpgid 154
|
||||||
|
#define __NR_getpgid 155
|
||||||
|
#define __NR_getsid 156
|
||||||
|
#define __NR_setsid 157
|
||||||
|
#define __NR_getgroups 158
|
||||||
|
#define __NR_setgroups 159
|
||||||
|
#define __NR_uname 160
|
||||||
|
#define __NR_sethostname 161
|
||||||
|
#define __NR_setdomainname 162
|
||||||
|
#define __NR_getrlimit 163
|
||||||
|
#define __NR_setrlimit 164
|
||||||
|
#define __NR_getrusage 165
|
||||||
|
#define __NR_umask 166
|
||||||
|
#define __NR_prctl 167
|
||||||
|
#define __NR_getcpu 168
|
||||||
|
#define __NR_gettimeofday_time32 169
|
||||||
|
#define __NR_settimeofday 170
|
||||||
|
#define __NR_adjtimex 171
|
||||||
|
#define __NR_getpid 172
|
||||||
|
#define __NR_getppid 173
|
||||||
|
#define __NR_getuid 174
|
||||||
|
#define __NR_geteuid 175
|
||||||
|
#define __NR_getgid 176
|
||||||
|
#define __NR_getegid 177
|
||||||
|
#define __NR_gettid 178
|
||||||
|
#define __NR_sysinfo 179
|
||||||
|
#define __NR_mq_open 180
|
||||||
|
#define __NR_mq_unlink 181
|
||||||
|
#define __NR_mq_timedsend 182
|
||||||
|
#define __NR_mq_timedreceive 183
|
||||||
|
#define __NR_mq_notify 184
|
||||||
|
#define __NR_mq_getsetattr 185
|
||||||
|
#define __NR_msgget 186
|
||||||
|
#define __NR_msgctl 187
|
||||||
|
#define __NR_msgrcv 188
|
||||||
|
#define __NR_msgsnd 189
|
||||||
|
#define __NR_semget 190
|
||||||
|
#define __NR_semctl 191
|
||||||
|
#define __NR_semtimedop 192
|
||||||
|
#define __NR_semop 193
|
||||||
|
#define __NR_shmget 194
|
||||||
|
#define __NR_shmctl 195
|
||||||
|
#define __NR_shmat 196
|
||||||
|
#define __NR_shmdt 197
|
||||||
|
#define __NR_socket 198
|
||||||
|
#define __NR_socketpair 199
|
||||||
|
#define __NR_bind 200
|
||||||
|
#define __NR_listen 201
|
||||||
|
#define __NR_accept 202
|
||||||
|
#define __NR_connect 203
|
||||||
|
#define __NR_getsockname 204
|
||||||
|
#define __NR_getpeername 205
|
||||||
|
#define __NR_sendto 206
|
||||||
|
#define __NR_recvfrom 207
|
||||||
|
#define __NR_setsockopt 208
|
||||||
|
#define __NR_getsockopt 209
|
||||||
|
#define __NR_shutdown 210
|
||||||
|
#define __NR_sendmsg 211
|
||||||
|
#define __NR_recvmsg 212
|
||||||
|
#define __NR_readahead 213
|
||||||
|
#define __NR_brk 214
|
||||||
|
#define __NR_munmap 215
|
||||||
|
#define __NR_mremap 216
|
||||||
|
#define __NR_add_key 217
|
||||||
|
#define __NR_request_key 218
|
||||||
|
#define __NR_keyctl 219
|
||||||
|
#define __NR_clone 220
|
||||||
|
#define __NR_execve 221
|
||||||
|
#define __NR_mmap 222
|
||||||
|
#define __NR_fadvise64 223
|
||||||
|
#define __NR_swapon 224
|
||||||
|
#define __NR_swapoff 225
|
||||||
|
#define __NR_mprotect 226
|
||||||
|
#define __NR_msync 227
|
||||||
|
#define __NR_mlock 228
|
||||||
|
#define __NR_munlock 229
|
||||||
|
#define __NR_mlockall 230
|
||||||
|
#define __NR_munlockall 231
|
||||||
|
#define __NR_mincore 232
|
||||||
|
#define __NR_madvise 233
|
||||||
|
#define __NR_remap_file_pages 234
|
||||||
|
#define __NR_mbind 235
|
||||||
|
#define __NR_get_mempolicy 236
|
||||||
|
#define __NR_set_mempolicy 237
|
||||||
|
#define __NR_migrate_pages 238
|
||||||
|
#define __NR_move_pages 239
|
||||||
|
#define __NR_rt_tgsigqueueinfo 240
|
||||||
|
#define __NR_perf_event_open 241
|
||||||
|
#define __NR_accept4 242
|
||||||
|
#define __NR_recvmmsg 243
|
||||||
|
#define __NR_arch_specific_syscall 244
|
||||||
|
#define __NR_wait4 260
|
||||||
|
#define __NR_prlimit64 261
|
||||||
|
#define __NR_fanotify_init 262
|
||||||
|
#define __NR_fanotify_mark 263
|
||||||
|
#define __NR_name_to_handle_at 264
|
||||||
|
#define __NR_open_by_handle_at 265
|
||||||
|
#define __NR_clock_adjtime 266
|
||||||
|
#define __NR_syncfs 267
|
||||||
|
#define __NR_setns 268
|
||||||
|
#define __NR_sendmmsg 269
|
||||||
|
#define __NR_process_vm_readv 270
|
||||||
|
#define __NR_process_vm_writev 271
|
||||||
|
#define __NR_kcmp 272
|
||||||
|
#define __NR_finit_module 273
|
||||||
|
#define __NR_sched_setattr 274
|
||||||
|
#define __NR_sched_getattr 275
|
||||||
|
#define __NR_renameat2 276
|
||||||
|
#define __NR_seccomp 277
|
||||||
|
#define __NR_getrandom 278
|
||||||
|
#define __NR_memfd_create 279
|
||||||
|
#define __NR_bpf 280
|
||||||
|
#define __NR_execveat 281
|
||||||
|
#define __NR_userfaultfd 282
|
||||||
|
#define __NR_membarrier 283
|
||||||
|
#define __NR_mlock2 284
|
||||||
|
#define __NR_copy_file_range 285
|
||||||
|
#define __NR_preadv2 286
|
||||||
|
#define __NR_pwritev2 287
|
||||||
|
#define __NR_pkey_mprotect 288
|
||||||
|
#define __NR_pkey_alloc 289
|
||||||
|
#define __NR_pkey_free 290
|
||||||
|
#define __NR_statx 291
|
||||||
|
#define __NR_clock_gettime64 403
|
||||||
|
#define __NR_clock_settime64 404
|
||||||
|
#define __NR_clock_adjtime64 405
|
||||||
|
#define __NR_clock_getres_time64 406
|
||||||
|
#define __NR_clock_nanosleep_time64 407
|
||||||
|
#define __NR_timer_gettime64 408
|
||||||
|
#define __NR_timer_settime64 409
|
||||||
|
#define __NR_timerfd_gettime64 410
|
||||||
|
#define __NR_timerfd_settime64 411
|
||||||
|
#define __NR_utimensat_time64 412
|
||||||
|
#define __NR_pselect6_time64 413
|
||||||
|
#define __NR_ppoll_time64 414
|
||||||
|
#define __NR_io_pgetevents_time64 416
|
||||||
|
#define __NR_recvmmsg_time64 417
|
||||||
|
#define __NR_mq_timedsend_time64 418
|
||||||
|
#define __NR_mq_timedreceive_time64 419
|
||||||
|
#define __NR_semtimedop_time64 420
|
||||||
|
#define __NR_rt_sigtimedwait_time64 421
|
||||||
|
#define __NR_futex_time64 422
|
||||||
|
#define __NR_sched_rr_get_interval_time64 423
|
||||||
|
#define __NR_pidfd_send_signal 424
|
||||||
|
#define __NR_io_uring_setup 425
|
||||||
|
#define __NR_io_uring_enter 426
|
||||||
|
#define __NR_io_uring_register 427
|
||||||
|
#define __NR_open_tree 428
|
||||||
|
#define __NR_move_mount 429
|
||||||
|
#define __NR_fsopen 430
|
||||||
|
#define __NR_fsconfig 431
|
||||||
|
#define __NR_fsmount 432
|
||||||
|
#define __NR_fspick 433
|
||||||
|
#define __NR_pidfd_open 434
|
||||||
|
#define __NR_close_range 436
|
||||||
|
#define __NR_openat2 437
|
||||||
|
#define __NR_pidfd_getfd 438
|
||||||
|
#define __NR_faccessat2 439
|
||||||
|
#define __NR_process_madvise 440
|
||||||
|
#define __NR_epoll_pwait2 441
|
||||||
|
#define __NR_mount_setattr 442
|
||||||
|
#define __NR_quotactl_fd 443
|
||||||
|
#define __NR_landlock_create_ruleset 444
|
||||||
|
#define __NR_landlock_add_rule 445
|
||||||
|
#define __NR_landlock_restrict_self 446
|
||||||
|
#define __NR_process_mrelease 448
|
||||||
|
#define __NR_futex_waitv 449
|
||||||
|
#define __NR_set_mempolicy_home_node 450
|
||||||
|
#define __NR_cachestat 451
|
||||||
|
#define __NR_fchmodat2 452
|
||||||
|
#define __NR_map_shadow_stack 453
|
||||||
|
#define __NR_futex_wake 454
|
||||||
|
#define __NR_futex_wait 455
|
||||||
|
#define __NR_futex_requeue 456
|
||||||
|
#define __NR_statmount 457
|
||||||
|
#define __NR_listmount 458
|
||||||
|
#define __NR_lsm_get_self_attr 459
|
||||||
|
#define __NR_lsm_set_self_attr 460
|
||||||
|
#define __NR_lsm_list_modules 461
|
||||||
|
|
||||||
|
#define __NR_syscalls (__NR_lsm_list_modules+1)
|
||||||
|
#define __NR_newfstatat __NR_fstatat
|
||||||
|
#define __NR_fcntl64 __NR_fcntl
|
||||||
|
#define __NR_statfs64 __NR_statfs
|
||||||
|
#define __NR_fstatfs64 __NR_fstatfs
|
||||||
|
#define __NR_truncate64 __NR_truncate
|
||||||
|
#define __NR_ftruncate64 __NR_ftruncate
|
||||||
|
#define __NR__llseek __NR_lseek
|
||||||
|
#define __NR_sendfile64 __NR_sendfile
|
||||||
|
#define __NR_fstatat64 __NR_fstatat
|
||||||
|
#define __NR_fstat64 __NR_fstat
|
||||||
|
#define __NR_mmap2 __NR_mmap
|
||||||
|
#define __NR_fadvise64_64 __NR_fadvise64
|
||||||
|
#define SYS_io_setup 0
|
||||||
|
#define SYS_io_destroy 1
|
||||||
|
#define SYS_io_submit 2
|
||||||
|
#define SYS_io_cancel 3
|
||||||
|
#define SYS_io_getevents 4
|
||||||
|
#define SYS_setxattr 5
|
||||||
|
#define SYS_lsetxattr 6
|
||||||
|
#define SYS_fsetxattr 7
|
||||||
|
#define SYS_getxattr 8
|
||||||
|
#define SYS_lgetxattr 9
|
||||||
|
#define SYS_fgetxattr 10
|
||||||
|
#define SYS_listxattr 11
|
||||||
|
#define SYS_llistxattr 12
|
||||||
|
#define SYS_flistxattr 13
|
||||||
|
#define SYS_removexattr 14
|
||||||
|
#define SYS_lremovexattr 15
|
||||||
|
#define SYS_fremovexattr 16
|
||||||
|
#define SYS_getcwd 17
|
||||||
|
#define SYS_lookup_dcookie 18
|
||||||
|
#define SYS_eventfd2 19
|
||||||
|
#define SYS_epoll_create1 20
|
||||||
|
#define SYS_epoll_ctl 21
|
||||||
|
#define SYS_epoll_pwait 22
|
||||||
|
#define SYS_dup 23
|
||||||
|
#define SYS_dup3 24
|
||||||
|
#define SYS_fcntl 25
|
||||||
|
#define SYS_inotify_init1 26
|
||||||
|
#define SYS_inotify_add_watch 27
|
||||||
|
#define SYS_inotify_rm_watch 28
|
||||||
|
#define SYS_ioctl 29
|
||||||
|
#define SYS_ioprio_set 30
|
||||||
|
#define SYS_ioprio_get 31
|
||||||
|
#define SYS_flock 32
|
||||||
|
#define SYS_mknodat 33
|
||||||
|
#define SYS_mkdirat 34
|
||||||
|
#define SYS_unlinkat 35
|
||||||
|
#define SYS_symlinkat 36
|
||||||
|
#define SYS_linkat 37
|
||||||
|
#define SYS_renameat 38
|
||||||
|
#define SYS_umount2 39
|
||||||
|
#define SYS_mount 40
|
||||||
|
#define SYS_pivot_root 41
|
||||||
|
#define SYS_nfsservctl 42
|
||||||
|
#define SYS_statfs 43
|
||||||
|
#define SYS_fstatfs 44
|
||||||
|
#define SYS_truncate 45
|
||||||
|
#define SYS_ftruncate 46
|
||||||
|
#define SYS_fallocate 47
|
||||||
|
#define SYS_faccessat 48
|
||||||
|
#define SYS_chdir 49
|
||||||
|
#define SYS_fchdir 50
|
||||||
|
#define SYS_chroot 51
|
||||||
|
#define SYS_fchmod 52
|
||||||
|
#define SYS_fchmodat 53
|
||||||
|
#define SYS_fchownat 54
|
||||||
|
#define SYS_fchown 55
|
||||||
|
#define SYS_openat 56
|
||||||
|
#define SYS_close 57
|
||||||
|
#define SYS_vhangup 58
|
||||||
|
#define SYS_pipe2 59
|
||||||
|
#define SYS_quotactl 60
|
||||||
|
#define SYS_getdents64 61
|
||||||
|
#define SYS_lseek 62
|
||||||
|
#define SYS_read 63
|
||||||
|
#define SYS_write 64
|
||||||
|
#define SYS_readv 65
|
||||||
|
#define SYS_writev 66
|
||||||
|
#define SYS_pread64 67
|
||||||
|
#define SYS_pwrite64 68
|
||||||
|
#define SYS_preadv 69
|
||||||
|
#define SYS_pwritev 70
|
||||||
|
#define SYS_sendfile 71
|
||||||
|
#define SYS_pselect6 72
|
||||||
|
#define SYS_ppoll 73
|
||||||
|
#define SYS_signalfd4 74
|
||||||
|
#define SYS_vmsplice 75
|
||||||
|
#define SYS_splice 76
|
||||||
|
#define SYS_tee 77
|
||||||
|
#define SYS_readlinkat 78
|
||||||
|
#define SYS_fstatat 79
|
||||||
|
#define SYS_fstat 80
|
||||||
|
#define SYS_sync 81
|
||||||
|
#define SYS_fsync 82
|
||||||
|
#define SYS_fdatasync 83
|
||||||
|
#define SYS_sync_file_range2 84
|
||||||
|
#define SYS_sync_file_range 84
|
||||||
|
#define SYS_timerfd_create 85
|
||||||
|
#define SYS_timerfd_settime 86
|
||||||
|
#define SYS_timerfd_gettime 87
|
||||||
|
#define SYS_utimensat 88
|
||||||
|
#define SYS_acct 89
|
||||||
|
#define SYS_capget 90
|
||||||
|
#define SYS_capset 91
|
||||||
|
#define SYS_personality 92
|
||||||
|
#define SYS_exit 93
|
||||||
|
#define SYS_exit_group 94
|
||||||
|
#define SYS_waitid 95
|
||||||
|
#define SYS_set_tid_address 96
|
||||||
|
#define SYS_unshare 97
|
||||||
|
#define SYS_futex 98
|
||||||
|
#define SYS_set_robust_list 99
|
||||||
|
#define SYS_get_robust_list 100
|
||||||
|
#define SYS_nanosleep 101
|
||||||
|
#define SYS_getitimer 102
|
||||||
|
#define SYS_setitimer 103
|
||||||
|
#define SYS_kexec_load 104
|
||||||
|
#define SYS_init_module 105
|
||||||
|
#define SYS_delete_module 106
|
||||||
|
#define SYS_timer_create 107
|
||||||
|
#define SYS_timer_gettime 108
|
||||||
|
#define SYS_timer_getoverrun 109
|
||||||
|
#define SYS_timer_settime 110
|
||||||
|
#define SYS_timer_delete 111
|
||||||
|
#define SYS_clock_settime 112
|
||||||
|
#define SYS_clock_gettime32 113
|
||||||
|
#define SYS_clock_getres 114
|
||||||
|
#define SYS_clock_nanosleep 115
|
||||||
|
#define SYS_syslog 116
|
||||||
|
#define SYS_ptrace 117
|
||||||
|
#define SYS_sched_setparam 118
|
||||||
|
#define SYS_sched_setscheduler 119
|
||||||
|
#define SYS_sched_getscheduler 120
|
||||||
|
#define SYS_sched_getparam 121
|
||||||
|
#define SYS_sched_setaffinity 122
|
||||||
|
#define SYS_sched_getaffinity 123
|
||||||
|
#define SYS_sched_yield 124
|
||||||
|
#define SYS_sched_get_priority_max 125
|
||||||
|
#define SYS_sched_get_priority_min 126
|
||||||
|
#define SYS_sched_rr_get_interval 127
|
||||||
|
#define SYS_restart_syscall 128
|
||||||
|
#define SYS_kill 129
|
||||||
|
#define SYS_tkill 130
|
||||||
|
#define SYS_tgkill 131
|
||||||
|
#define SYS_sigaltstack 132
|
||||||
|
#define SYS_rt_sigsuspend 133
|
||||||
|
#define SYS_rt_sigaction 134
|
||||||
|
#define SYS_rt_sigprocmask 135
|
||||||
|
#define SYS_rt_sigpending 136
|
||||||
|
#define SYS_rt_sigtimedwait 137
|
||||||
|
#define SYS_rt_sigqueueinfo 138
|
||||||
|
#define SYS_rt_sigreturn 139
|
||||||
|
#define SYS_setpriority 140
|
||||||
|
#define SYS_getpriority 141
|
||||||
|
#define SYS_reboot 142
|
||||||
|
#define SYS_setregid 143
|
||||||
|
#define SYS_setgid 144
|
||||||
|
#define SYS_setreuid 145
|
||||||
|
#define SYS_setuid 146
|
||||||
|
#define SYS_setresuid 147
|
||||||
|
#define SYS_getresuid 148
|
||||||
|
#define SYS_setresgid 149
|
||||||
|
#define SYS_getresgid 150
|
||||||
|
#define SYS_setfsuid 151
|
||||||
|
#define SYS_setfsgid 152
|
||||||
|
#define SYS_times 153
|
||||||
|
#define SYS_setpgid 154
|
||||||
|
#define SYS_getpgid 155
|
||||||
|
#define SYS_getsid 156
|
||||||
|
#define SYS_setsid 157
|
||||||
|
#define SYS_getgroups 158
|
||||||
|
#define SYS_setgroups 159
|
||||||
|
#define SYS_uname 160
|
||||||
|
#define SYS_sethostname 161
|
||||||
|
#define SYS_setdomainname 162
|
||||||
|
#define SYS_getrlimit 163
|
||||||
|
#define SYS_setrlimit 164
|
||||||
|
#define SYS_getrusage 165
|
||||||
|
#define SYS_umask 166
|
||||||
|
#define SYS_prctl 167
|
||||||
|
#define SYS_getcpu 168
|
||||||
|
#define SYS_gettimeofday_time32 169
|
||||||
|
#define SYS_settimeofday 170
|
||||||
|
#define SYS_adjtimex 171
|
||||||
|
#define SYS_getpid 172
|
||||||
|
#define SYS_getppid 173
|
||||||
|
#define SYS_getuid 174
|
||||||
|
#define SYS_geteuid 175
|
||||||
|
#define SYS_getgid 176
|
||||||
|
#define SYS_getegid 177
|
||||||
|
#define SYS_gettid 178
|
||||||
|
#define SYS_sysinfo 179
|
||||||
|
#define SYS_mq_open 180
|
||||||
|
#define SYS_mq_unlink 181
|
||||||
|
#define SYS_mq_timedsend 182
|
||||||
|
#define SYS_mq_timedreceive 183
|
||||||
|
#define SYS_mq_notify 184
|
||||||
|
#define SYS_mq_getsetattr 185
|
||||||
|
#define SYS_msgget 186
|
||||||
|
#define SYS_msgctl 187
|
||||||
|
#define SYS_msgrcv 188
|
||||||
|
#define SYS_msgsnd 189
|
||||||
|
#define SYS_semget 190
|
||||||
|
#define SYS_semctl 191
|
||||||
|
#define SYS_semtimedop 192
|
||||||
|
#define SYS_semop 193
|
||||||
|
#define SYS_shmget 194
|
||||||
|
#define SYS_shmctl 195
|
||||||
|
#define SYS_shmat 196
|
||||||
|
#define SYS_shmdt 197
|
||||||
|
#define SYS_socket 198
|
||||||
|
#define SYS_socketpair 199
|
||||||
|
#define SYS_bind 200
|
||||||
|
#define SYS_listen 201
|
||||||
|
#define SYS_accept 202
|
||||||
|
#define SYS_connect 203
|
||||||
|
#define SYS_getsockname 204
|
||||||
|
#define SYS_getpeername 205
|
||||||
|
#define SYS_sendto 206
|
||||||
|
#define SYS_recvfrom 207
|
||||||
|
#define SYS_setsockopt 208
|
||||||
|
#define SYS_getsockopt 209
|
||||||
|
#define SYS_shutdown 210
|
||||||
|
#define SYS_sendmsg 211
|
||||||
|
#define SYS_recvmsg 212
|
||||||
|
#define SYS_readahead 213
|
||||||
|
#define SYS_brk 214
|
||||||
|
#define SYS_munmap 215
|
||||||
|
#define SYS_mremap 216
|
||||||
|
#define SYS_add_key 217
|
||||||
|
#define SYS_request_key 218
|
||||||
|
#define SYS_keyctl 219
|
||||||
|
#define SYS_clone 220
|
||||||
|
#define SYS_execve 221
|
||||||
|
#define SYS_mmap 222
|
||||||
|
#define SYS_fadvise64 223
|
||||||
|
#define SYS_swapon 224
|
||||||
|
#define SYS_swapoff 225
|
||||||
|
#define SYS_mprotect 226
|
||||||
|
#define SYS_msync 227
|
||||||
|
#define SYS_mlock 228
|
||||||
|
#define SYS_munlock 229
|
||||||
|
#define SYS_mlockall 230
|
||||||
|
#define SYS_munlockall 231
|
||||||
|
#define SYS_mincore 232
|
||||||
|
#define SYS_madvise 233
|
||||||
|
#define SYS_remap_file_pages 234
|
||||||
|
#define SYS_mbind 235
|
||||||
|
#define SYS_get_mempolicy 236
|
||||||
|
#define SYS_set_mempolicy 237
|
||||||
|
#define SYS_migrate_pages 238
|
||||||
|
#define SYS_move_pages 239
|
||||||
|
#define SYS_rt_tgsigqueueinfo 240
|
||||||
|
#define SYS_perf_event_open 241
|
||||||
|
#define SYS_accept4 242
|
||||||
|
#define SYS_recvmmsg 243
|
||||||
|
#define SYS_arch_specific_syscall 244
|
||||||
|
#define SYS_wait4 260
|
||||||
|
#define SYS_prlimit64 261
|
||||||
|
#define SYS_fanotify_init 262
|
||||||
|
#define SYS_fanotify_mark 263
|
||||||
|
#define SYS_name_to_handle_at 264
|
||||||
|
#define SYS_open_by_handle_at 265
|
||||||
|
#define SYS_clock_adjtime 266
|
||||||
|
#define SYS_syncfs 267
|
||||||
|
#define SYS_setns 268
|
||||||
|
#define SYS_sendmmsg 269
|
||||||
|
#define SYS_process_vm_readv 270
|
||||||
|
#define SYS_process_vm_writev 271
|
||||||
|
#define SYS_kcmp 272
|
||||||
|
#define SYS_finit_module 273
|
||||||
|
#define SYS_sched_setattr 274
|
||||||
|
#define SYS_sched_getattr 275
|
||||||
|
#define SYS_renameat2 276
|
||||||
|
#define SYS_seccomp 277
|
||||||
|
#define SYS_getrandom 278
|
||||||
|
#define SYS_memfd_create 279
|
||||||
|
#define SYS_bpf 280
|
||||||
|
#define SYS_execveat 281
|
||||||
|
#define SYS_userfaultfd 282
|
||||||
|
#define SYS_membarrier 283
|
||||||
|
#define SYS_mlock2 284
|
||||||
|
#define SYS_copy_file_range 285
|
||||||
|
#define SYS_preadv2 286
|
||||||
|
#define SYS_pwritev2 287
|
||||||
|
#define SYS_pkey_mprotect 288
|
||||||
|
#define SYS_pkey_alloc 289
|
||||||
|
#define SYS_pkey_free 290
|
||||||
|
#define SYS_statx 291
|
||||||
|
#define SYS_clock_gettime64 403
|
||||||
|
#define SYS_clock_settime64 404
|
||||||
|
#define SYS_clock_adjtime64 405
|
||||||
|
#define SYS_clock_getres_time64 406
|
||||||
|
#define SYS_clock_nanosleep_time64 407
|
||||||
|
#define SYS_timer_gettime64 408
|
||||||
|
#define SYS_timer_settime64 409
|
||||||
|
#define SYS_timerfd_gettime64 410
|
||||||
|
#define SYS_timerfd_settime64 411
|
||||||
|
#define SYS_utimensat_time64 412
|
||||||
|
#define SYS_pselect6_time64 413
|
||||||
|
#define SYS_ppoll_time64 414
|
||||||
|
#define SYS_io_pgetevents_time64 416
|
||||||
|
#define SYS_recvmmsg_time64 417
|
||||||
|
#define SYS_mq_timedsend_time64 418
|
||||||
|
#define SYS_mq_timedreceive_time64 419
|
||||||
|
#define SYS_semtimedop_time64 420
|
||||||
|
#define SYS_rt_sigtimedwait_time64 421
|
||||||
|
#define SYS_futex_time64 422
|
||||||
|
#define SYS_sched_rr_get_interval_time64 423
|
||||||
|
#define SYS_pidfd_send_signal 424
|
||||||
|
#define SYS_io_uring_setup 425
|
||||||
|
#define SYS_io_uring_enter 426
|
||||||
|
#define SYS_io_uring_register 427
|
||||||
|
#define SYS_open_tree 428
|
||||||
|
#define SYS_move_mount 429
|
||||||
|
#define SYS_fsopen 430
|
||||||
|
#define SYS_fsconfig 431
|
||||||
|
#define SYS_fsmount 432
|
||||||
|
#define SYS_fspick 433
|
||||||
|
#define SYS_pidfd_open 434
|
||||||
|
#define SYS_close_range 436
|
||||||
|
#define SYS_openat2 437
|
||||||
|
#define SYS_pidfd_getfd 438
|
||||||
|
#define SYS_faccessat2 439
|
||||||
|
#define SYS_process_madvise 440
|
||||||
|
#define SYS_epoll_pwait2 441
|
||||||
|
#define SYS_mount_setattr 442
|
||||||
|
#define SYS_quotactl_fd 443
|
||||||
|
#define SYS_landlock_create_ruleset 444
|
||||||
|
#define SYS_landlock_add_rule 445
|
||||||
|
#define SYS_landlock_restrict_self 446
|
||||||
|
#define SYS_process_mrelease 448
|
||||||
|
#define SYS_futex_waitv 449
|
||||||
|
#define SYS_set_mempolicy_home_node 450
|
||||||
|
#define SYS_cachestat 451
|
||||||
|
#define SYS_fchmodat2 452
|
||||||
|
#define SYS_map_shadow_stack 453
|
||||||
|
#define SYS_futex_wake 454
|
||||||
|
#define SYS_futex_wait 455
|
||||||
|
#define SYS_futex_requeue 456
|
||||||
|
#define SYS_statmount 457
|
||||||
|
#define SYS_listmount 458
|
||||||
|
#define SYS_lsm_get_self_attr 459
|
||||||
|
#define SYS_lsm_set_self_attr 460
|
||||||
|
#define SYS_lsm_list_modules 461
|
||||||
|
#define SYS_syscalls (__NR_lsm_list_modules+1)
|
||||||
|
#define SYS_newfstatat __NR_fstatat
|
||||||
|
#define SYS_fcntl64 __NR_fcntl
|
||||||
|
#define SYS_statfs64 __NR_statfs
|
||||||
|
#define SYS_fstatfs64 __NR_fstatfs
|
||||||
|
#define SYS_truncate64 __NR_truncate
|
||||||
|
#define SYS_ftruncate64 __NR_ftruncate
|
||||||
|
#define SYS__llseek __NR_lseek
|
||||||
|
#define SYS_sendfile64 __NR_sendfile
|
||||||
|
#define SYS_fstatat64 __NR_fstatat
|
||||||
|
#define SYS_fstat64 __NR_fstat
|
||||||
|
#define SYS_mmap2 __NR_mmap
|
||||||
|
#define SYS_fadvise64_64 __NR_fadvise64
|
||||||
60
lib/libc/include/hexagon-linux-musl/bits/user.h
vendored
Normal file
60
lib/libc/include/hexagon-linux-musl/bits/user.h
vendored
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
#ifndef HEXAGON_ASM_USER_H
|
||||||
|
#define HEXAGON_ASM_USER_H
|
||||||
|
|
||||||
|
struct user_regs_struct {
|
||||||
|
unsigned long r0;
|
||||||
|
unsigned long r1;
|
||||||
|
unsigned long r2;
|
||||||
|
unsigned long r3;
|
||||||
|
unsigned long r4;
|
||||||
|
unsigned long r5;
|
||||||
|
unsigned long r6;
|
||||||
|
unsigned long r7;
|
||||||
|
unsigned long r8;
|
||||||
|
unsigned long r9;
|
||||||
|
unsigned long r10;
|
||||||
|
unsigned long r11;
|
||||||
|
unsigned long r12;
|
||||||
|
unsigned long r13;
|
||||||
|
unsigned long r14;
|
||||||
|
unsigned long r15;
|
||||||
|
unsigned long r16;
|
||||||
|
unsigned long r17;
|
||||||
|
unsigned long r18;
|
||||||
|
unsigned long r19;
|
||||||
|
unsigned long r20;
|
||||||
|
unsigned long r21;
|
||||||
|
unsigned long r22;
|
||||||
|
unsigned long r23;
|
||||||
|
unsigned long r24;
|
||||||
|
unsigned long r25;
|
||||||
|
unsigned long r26;
|
||||||
|
unsigned long r27;
|
||||||
|
unsigned long r28;
|
||||||
|
unsigned long r29;
|
||||||
|
unsigned long r30;
|
||||||
|
unsigned long r31;
|
||||||
|
unsigned long sa0;
|
||||||
|
unsigned long lc0;
|
||||||
|
unsigned long sa1;
|
||||||
|
unsigned long lc1;
|
||||||
|
unsigned long m0;
|
||||||
|
unsigned long m1;
|
||||||
|
unsigned long usr;
|
||||||
|
unsigned long p3_0;
|
||||||
|
unsigned long gp;
|
||||||
|
unsigned long ugp;
|
||||||
|
unsigned long pc;
|
||||||
|
unsigned long cause;
|
||||||
|
unsigned long badva;
|
||||||
|
unsigned long cs0;
|
||||||
|
unsigned long cs1;
|
||||||
|
unsigned long pad1;
|
||||||
|
};
|
||||||
|
|
||||||
|
#define ELF_NGREG 48
|
||||||
|
typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG];
|
||||||
|
|
||||||
|
typedef unsigned long elf_fpregset_t;
|
||||||
|
|
||||||
|
#endif
|
||||||
87
lib/libc/include/hexagon-linux-musl/dirent.h
vendored
Normal file
87
lib/libc/include/hexagon-linux-musl/dirent.h
vendored
Normal file
|
|
@ -0,0 +1,87 @@
|
||||||
|
#ifndef _DIRENT_H
|
||||||
|
#define _DIRENT_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <features.h>
|
||||||
|
|
||||||
|
#define __NEED_ino_t
|
||||||
|
#define __NEED_off_t
|
||||||
|
#define __NEED_size_t
|
||||||
|
#define __NEED_ssize_t
|
||||||
|
|
||||||
|
#include <bits/alltypes.h>
|
||||||
|
|
||||||
|
#include <bits/dirent.h>
|
||||||
|
|
||||||
|
typedef unsigned short reclen_t;
|
||||||
|
|
||||||
|
struct posix_dent {
|
||||||
|
ino_t d_ino;
|
||||||
|
off_t d_off;
|
||||||
|
reclen_t d_reclen;
|
||||||
|
unsigned char d_type;
|
||||||
|
char d_name[];
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef struct __dirstream DIR;
|
||||||
|
|
||||||
|
#define d_fileno d_ino
|
||||||
|
|
||||||
|
int closedir(DIR *);
|
||||||
|
DIR *fdopendir(int);
|
||||||
|
DIR *opendir(const char *);
|
||||||
|
struct dirent *readdir(DIR *);
|
||||||
|
int readdir_r(DIR *__restrict, struct dirent *__restrict, struct dirent **__restrict);
|
||||||
|
void rewinddir(DIR *);
|
||||||
|
int dirfd(DIR *);
|
||||||
|
|
||||||
|
ssize_t posix_getdents(int, void *, size_t, int);
|
||||||
|
|
||||||
|
int alphasort(const struct dirent **, const struct dirent **);
|
||||||
|
int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **));
|
||||||
|
|
||||||
|
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
void seekdir(DIR *, long);
|
||||||
|
long telldir(DIR *);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define DT_UNKNOWN 0
|
||||||
|
#define DT_FIFO 1
|
||||||
|
#define DT_CHR 2
|
||||||
|
#define DT_DIR 4
|
||||||
|
#define DT_BLK 6
|
||||||
|
#define DT_REG 8
|
||||||
|
#define DT_LNK 10
|
||||||
|
#define DT_SOCK 12
|
||||||
|
#define DT_WHT 14
|
||||||
|
|
||||||
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
#define IFTODT(x) ((x)>>12 & 017)
|
||||||
|
#define DTTOIF(x) ((x)<<12)
|
||||||
|
int getdents(int, struct dirent *, size_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _GNU_SOURCE
|
||||||
|
int versionsort(const struct dirent **, const struct dirent **);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_LARGEFILE64_SOURCE)
|
||||||
|
#define dirent64 dirent
|
||||||
|
#define readdir64 readdir
|
||||||
|
#define readdir64_r readdir_r
|
||||||
|
#define scandir64 scandir
|
||||||
|
#define alphasort64 alphasort
|
||||||
|
#define versionsort64 versionsort
|
||||||
|
#define off64_t off_t
|
||||||
|
#define ino64_t ino_t
|
||||||
|
#define getdents64 getdents
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
3516
lib/libc/include/hexagon-linux-musl/elf.h
vendored
Normal file
3516
lib/libc/include/hexagon-linux-musl/elf.h
vendored
Normal file
File diff suppressed because it is too large
Load diff
147
lib/libc/include/hexagon-linux-musl/sched.h
vendored
Normal file
147
lib/libc/include/hexagon-linux-musl/sched.h
vendored
Normal file
|
|
@ -0,0 +1,147 @@
|
||||||
|
#ifndef _SCHED_H
|
||||||
|
#define _SCHED_H
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <features.h>
|
||||||
|
|
||||||
|
#define __NEED_struct_timespec
|
||||||
|
#define __NEED_pid_t
|
||||||
|
#define __NEED_time_t
|
||||||
|
|
||||||
|
#ifdef _GNU_SOURCE
|
||||||
|
#define __NEED_size_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <bits/alltypes.h>
|
||||||
|
|
||||||
|
struct sched_param {
|
||||||
|
int sched_priority;
|
||||||
|
int __reserved1;
|
||||||
|
#if _REDIR_TIME64
|
||||||
|
long __reserved2[4];
|
||||||
|
#else
|
||||||
|
struct {
|
||||||
|
time_t __reserved1;
|
||||||
|
long __reserved2;
|
||||||
|
} __reserved2[2];
|
||||||
|
#endif
|
||||||
|
int __reserved3;
|
||||||
|
};
|
||||||
|
|
||||||
|
int sched_get_priority_max(int);
|
||||||
|
int sched_get_priority_min(int);
|
||||||
|
int sched_getparam(pid_t, struct sched_param *);
|
||||||
|
int sched_getscheduler(pid_t);
|
||||||
|
int sched_rr_get_interval(pid_t, struct timespec *);
|
||||||
|
int sched_setparam(pid_t, const struct sched_param *);
|
||||||
|
int sched_setscheduler(pid_t, int, const struct sched_param *);
|
||||||
|
int sched_yield(void);
|
||||||
|
|
||||||
|
#define SCHED_OTHER 0
|
||||||
|
#define SCHED_FIFO 1
|
||||||
|
#define SCHED_RR 2
|
||||||
|
#define SCHED_BATCH 3
|
||||||
|
#define SCHED_IDLE 5
|
||||||
|
#define SCHED_DEADLINE 6
|
||||||
|
#define SCHED_RESET_ON_FORK 0x40000000
|
||||||
|
|
||||||
|
#ifdef _GNU_SOURCE
|
||||||
|
#define CSIGNAL 0x000000ff
|
||||||
|
#define CLONE_NEWTIME 0x00000080
|
||||||
|
#define CLONE_VM 0x00000100
|
||||||
|
#define CLONE_FS 0x00000200
|
||||||
|
#define CLONE_FILES 0x00000400
|
||||||
|
#define CLONE_SIGHAND 0x00000800
|
||||||
|
#define CLONE_PIDFD 0x00001000
|
||||||
|
#define CLONE_PTRACE 0x00002000
|
||||||
|
#define CLONE_VFORK 0x00004000
|
||||||
|
#define CLONE_PARENT 0x00008000
|
||||||
|
#define CLONE_THREAD 0x00010000
|
||||||
|
#define CLONE_NEWNS 0x00020000
|
||||||
|
#define CLONE_SYSVSEM 0x00040000
|
||||||
|
#define CLONE_SETTLS 0x00080000
|
||||||
|
#define CLONE_PARENT_SETTID 0x00100000
|
||||||
|
#define CLONE_CHILD_CLEARTID 0x00200000
|
||||||
|
#define CLONE_DETACHED 0x00400000
|
||||||
|
#define CLONE_UNTRACED 0x00800000
|
||||||
|
#define CLONE_CHILD_SETTID 0x01000000
|
||||||
|
#define CLONE_NEWCGROUP 0x02000000
|
||||||
|
#define CLONE_NEWUTS 0x04000000
|
||||||
|
#define CLONE_NEWIPC 0x08000000
|
||||||
|
#define CLONE_NEWUSER 0x10000000
|
||||||
|
#define CLONE_NEWPID 0x20000000
|
||||||
|
#define CLONE_NEWNET 0x40000000
|
||||||
|
#define CLONE_IO 0x80000000
|
||||||
|
int clone (int (*)(void *), void *, int, void *, ...);
|
||||||
|
int unshare(int);
|
||||||
|
int setns(int, int);
|
||||||
|
|
||||||
|
int (memcmp)(const void *, const void *, size_t);
|
||||||
|
void *(memset)(void *, int, size_t);
|
||||||
|
void *(calloc)(size_t, size_t);
|
||||||
|
void (free)(void *);
|
||||||
|
|
||||||
|
typedef struct cpu_set_t { unsigned long __bits[128/sizeof(long)]; } cpu_set_t;
|
||||||
|
int __sched_cpucount(size_t, const cpu_set_t *);
|
||||||
|
int sched_getcpu(void);
|
||||||
|
int sched_getaffinity(pid_t, size_t, cpu_set_t *);
|
||||||
|
int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
|
||||||
|
|
||||||
|
#define __CPU_op_S(i, size, set, op) ( (i)/8U >= (size) ? 0 : \
|
||||||
|
(((unsigned long *)(set))[(i)/8/sizeof(long)] op (1UL<<((i)%(8*sizeof(long))))) )
|
||||||
|
|
||||||
|
#define CPU_SET_S(i, size, set) __CPU_op_S(i, size, set, |=)
|
||||||
|
#define CPU_CLR_S(i, size, set) __CPU_op_S(i, size, set, &=~)
|
||||||
|
#define CPU_ISSET_S(i, size, set) __CPU_op_S(i, size, set, &)
|
||||||
|
|
||||||
|
#define __CPU_op_func_S(func, op) \
|
||||||
|
static __inline void __CPU_##func##_S(size_t __size, cpu_set_t *__dest, \
|
||||||
|
const cpu_set_t *__src1, const cpu_set_t *__src2) \
|
||||||
|
{ \
|
||||||
|
size_t __i; \
|
||||||
|
for (__i=0; __i<__size/sizeof(long); __i++) \
|
||||||
|
((unsigned long *)__dest)[__i] = ((unsigned long *)__src1)[__i] \
|
||||||
|
op ((unsigned long *)__src2)[__i] ; \
|
||||||
|
}
|
||||||
|
|
||||||
|
__CPU_op_func_S(AND, &)
|
||||||
|
__CPU_op_func_S(OR, |)
|
||||||
|
__CPU_op_func_S(XOR, ^)
|
||||||
|
|
||||||
|
#define CPU_AND_S(a,b,c,d) __CPU_AND_S(a,b,c,d)
|
||||||
|
#define CPU_OR_S(a,b,c,d) __CPU_OR_S(a,b,c,d)
|
||||||
|
#define CPU_XOR_S(a,b,c,d) __CPU_XOR_S(a,b,c,d)
|
||||||
|
|
||||||
|
#define CPU_COUNT_S(size,set) __sched_cpucount(size,set)
|
||||||
|
#define CPU_ZERO_S(size,set) (memset)(set,0,size)
|
||||||
|
#define CPU_EQUAL_S(size,set1,set2) (!(memcmp)(set1,set2,size))
|
||||||
|
|
||||||
|
#define CPU_ALLOC_SIZE(n) (sizeof(long) * ( (n)/(8*sizeof(long)) \
|
||||||
|
+ ((n)%(8*sizeof(long)) + 8*sizeof(long)-1)/(8*sizeof(long)) ) )
|
||||||
|
#define CPU_ALLOC(n) ((cpu_set_t *)(calloc)(1,CPU_ALLOC_SIZE(n)))
|
||||||
|
#define CPU_FREE(set) (free)(set)
|
||||||
|
|
||||||
|
#define CPU_SETSIZE 1024
|
||||||
|
|
||||||
|
#define CPU_SET(i, set) CPU_SET_S(i,sizeof(cpu_set_t),set)
|
||||||
|
#define CPU_CLR(i, set) CPU_CLR_S(i,sizeof(cpu_set_t),set)
|
||||||
|
#define CPU_ISSET(i, set) CPU_ISSET_S(i,sizeof(cpu_set_t),set)
|
||||||
|
#define CPU_AND(d,s1,s2) CPU_AND_S(sizeof(cpu_set_t),d,s1,s2)
|
||||||
|
#define CPU_OR(d,s1,s2) CPU_OR_S(sizeof(cpu_set_t),d,s1,s2)
|
||||||
|
#define CPU_XOR(d,s1,s2) CPU_XOR_S(sizeof(cpu_set_t),d,s1,s2)
|
||||||
|
#define CPU_COUNT(set) CPU_COUNT_S(sizeof(cpu_set_t),set)
|
||||||
|
#define CPU_ZERO(set) CPU_ZERO_S(sizeof(cpu_set_t),set)
|
||||||
|
#define CPU_EQUAL(s1,s2) CPU_EQUAL_S(sizeof(cpu_set_t),s1,s2)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _REDIR_TIME64
|
||||||
|
__REDIR(sched_rr_get_interval, __sched_rr_get_interval_time64);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
231
lib/libc/include/hexagon-linux-musl/stdio.h
vendored
Normal file
231
lib/libc/include/hexagon-linux-musl/stdio.h
vendored
Normal file
|
|
@ -0,0 +1,231 @@
|
||||||
|
#ifndef _STDIO_H
|
||||||
|
#define _STDIO_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <features.h>
|
||||||
|
|
||||||
|
#define __NEED_FILE
|
||||||
|
#define __NEED___isoc_va_list
|
||||||
|
#define __NEED_size_t
|
||||||
|
|
||||||
|
#if __STDC_VERSION__ < 201112L
|
||||||
|
#define __NEED_struct__IO_FILE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|
||||||
|
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
|
||||||
|
|| defined(_BSD_SOURCE)
|
||||||
|
#define __NEED_ssize_t
|
||||||
|
#define __NEED_off_t
|
||||||
|
#define __NEED_va_list
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <bits/alltypes.h>
|
||||||
|
|
||||||
|
#if __cplusplus >= 201103L
|
||||||
|
#define NULL nullptr
|
||||||
|
#elif defined(__cplusplus)
|
||||||
|
#define NULL 0L
|
||||||
|
#else
|
||||||
|
#define NULL ((void*)0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#undef EOF
|
||||||
|
#define EOF (-1)
|
||||||
|
|
||||||
|
#undef SEEK_SET
|
||||||
|
#undef SEEK_CUR
|
||||||
|
#undef SEEK_END
|
||||||
|
#define SEEK_SET 0
|
||||||
|
#define SEEK_CUR 1
|
||||||
|
#define SEEK_END 2
|
||||||
|
|
||||||
|
#define _IOFBF 0
|
||||||
|
#define _IOLBF 1
|
||||||
|
#define _IONBF 2
|
||||||
|
|
||||||
|
#define BUFSIZ 1024
|
||||||
|
#define FILENAME_MAX 4096
|
||||||
|
#define FOPEN_MAX 1000
|
||||||
|
#define TMP_MAX 10000
|
||||||
|
#define L_tmpnam 20
|
||||||
|
|
||||||
|
typedef union _G_fpos64_t {
|
||||||
|
char __opaque[16];
|
||||||
|
long long __lldata;
|
||||||
|
double __align;
|
||||||
|
} fpos_t;
|
||||||
|
|
||||||
|
extern FILE *const stdin;
|
||||||
|
extern FILE *const stdout;
|
||||||
|
extern FILE *const stderr;
|
||||||
|
|
||||||
|
#define stdin (stdin)
|
||||||
|
#define stdout (stdout)
|
||||||
|
#define stderr (stderr)
|
||||||
|
|
||||||
|
FILE *fopen(const char *__restrict, const char *__restrict);
|
||||||
|
FILE *freopen(const char *__restrict, const char *__restrict, FILE *__restrict);
|
||||||
|
int fclose(FILE *);
|
||||||
|
|
||||||
|
int remove(const char *);
|
||||||
|
int rename(const char *, const char *);
|
||||||
|
|
||||||
|
int feof(FILE *);
|
||||||
|
int ferror(FILE *);
|
||||||
|
int fflush(FILE *);
|
||||||
|
void clearerr(FILE *);
|
||||||
|
|
||||||
|
int fseek(FILE *, long, int);
|
||||||
|
long ftell(FILE *);
|
||||||
|
void rewind(FILE *);
|
||||||
|
|
||||||
|
int fgetpos(FILE *__restrict, fpos_t *__restrict);
|
||||||
|
int fsetpos(FILE *, const fpos_t *);
|
||||||
|
|
||||||
|
size_t fread(void *__restrict, size_t, size_t, FILE *__restrict);
|
||||||
|
size_t fwrite(const void *__restrict, size_t, size_t, FILE *__restrict);
|
||||||
|
|
||||||
|
int fgetc(FILE *);
|
||||||
|
int getc(FILE *);
|
||||||
|
int getchar(void);
|
||||||
|
int ungetc(int, FILE *);
|
||||||
|
|
||||||
|
int fputc(int, FILE *);
|
||||||
|
int putc(int, FILE *);
|
||||||
|
int putchar(int);
|
||||||
|
|
||||||
|
char *fgets(char *__restrict, int, FILE *__restrict);
|
||||||
|
#if __STDC_VERSION__ < 201112L
|
||||||
|
char *gets(char *);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int fputs(const char *__restrict, FILE *__restrict);
|
||||||
|
int puts(const char *);
|
||||||
|
|
||||||
|
int printf(const char *__restrict, ...);
|
||||||
|
int fprintf(FILE *__restrict, const char *__restrict, ...);
|
||||||
|
int sprintf(char *__restrict, const char *__restrict, ...);
|
||||||
|
int snprintf(char *__restrict, size_t, const char *__restrict, ...);
|
||||||
|
|
||||||
|
int vprintf(const char *__restrict, __isoc_va_list);
|
||||||
|
int vfprintf(FILE *__restrict, const char *__restrict, __isoc_va_list);
|
||||||
|
int vsprintf(char *__restrict, const char *__restrict, __isoc_va_list);
|
||||||
|
int vsnprintf(char *__restrict, size_t, const char *__restrict, __isoc_va_list);
|
||||||
|
|
||||||
|
int scanf(const char *__restrict, ...);
|
||||||
|
int fscanf(FILE *__restrict, const char *__restrict, ...);
|
||||||
|
int sscanf(const char *__restrict, const char *__restrict, ...);
|
||||||
|
int vscanf(const char *__restrict, __isoc_va_list);
|
||||||
|
int vfscanf(FILE *__restrict, const char *__restrict, __isoc_va_list);
|
||||||
|
int vsscanf(const char *__restrict, const char *__restrict, __isoc_va_list);
|
||||||
|
|
||||||
|
void perror(const char *);
|
||||||
|
|
||||||
|
int setvbuf(FILE *__restrict, char *__restrict, int, size_t);
|
||||||
|
void setbuf(FILE *__restrict, char *__restrict);
|
||||||
|
|
||||||
|
char *tmpnam(char *);
|
||||||
|
FILE *tmpfile(void);
|
||||||
|
|
||||||
|
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|
||||||
|
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
|
||||||
|
|| defined(_BSD_SOURCE)
|
||||||
|
FILE *fmemopen(void *__restrict, size_t, const char *__restrict);
|
||||||
|
FILE *open_memstream(char **, size_t *);
|
||||||
|
FILE *fdopen(int, const char *);
|
||||||
|
FILE *popen(const char *, const char *);
|
||||||
|
int pclose(FILE *);
|
||||||
|
int fileno(FILE *);
|
||||||
|
int fseeko(FILE *, off_t, int);
|
||||||
|
off_t ftello(FILE *);
|
||||||
|
int dprintf(int, const char *__restrict, ...);
|
||||||
|
int vdprintf(int, const char *__restrict, __isoc_va_list);
|
||||||
|
void flockfile(FILE *);
|
||||||
|
int ftrylockfile(FILE *);
|
||||||
|
void funlockfile(FILE *);
|
||||||
|
int getc_unlocked(FILE *);
|
||||||
|
int getchar_unlocked(void);
|
||||||
|
int putc_unlocked(int, FILE *);
|
||||||
|
int putchar_unlocked(int);
|
||||||
|
ssize_t getdelim(char **__restrict, size_t *__restrict, int, FILE *__restrict);
|
||||||
|
ssize_t getline(char **__restrict, size_t *__restrict, FILE *__restrict);
|
||||||
|
int renameat(int, const char *, int, const char *);
|
||||||
|
char *ctermid(char *);
|
||||||
|
#define L_ctermid 20
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_GNU_SOURCE)
|
||||||
|
#define RENAME_NOREPLACE (1 << 0)
|
||||||
|
#define RENAME_EXCHANGE (1 << 1)
|
||||||
|
#define RENAME_WHITEOUT (1 << 2)
|
||||||
|
|
||||||
|
int renameat2(int, const char *, int, const char *, unsigned);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
|
||||||
|
|| defined(_BSD_SOURCE)
|
||||||
|
#define P_tmpdir "/tmp"
|
||||||
|
char *tempnam(const char *, const char *);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
#define L_cuserid 20
|
||||||
|
char *cuserid(char *);
|
||||||
|
void setlinebuf(FILE *);
|
||||||
|
void setbuffer(FILE *, char *, size_t);
|
||||||
|
int fgetc_unlocked(FILE *);
|
||||||
|
int fputc_unlocked(int, FILE *);
|
||||||
|
int fflush_unlocked(FILE *);
|
||||||
|
size_t fread_unlocked(void *, size_t, size_t, FILE *);
|
||||||
|
size_t fwrite_unlocked(const void *, size_t, size_t, FILE *);
|
||||||
|
void clearerr_unlocked(FILE *);
|
||||||
|
int feof_unlocked(FILE *);
|
||||||
|
int ferror_unlocked(FILE *);
|
||||||
|
int fileno_unlocked(FILE *);
|
||||||
|
int getw(FILE *);
|
||||||
|
int putw(int, FILE *);
|
||||||
|
char *fgetln(FILE *, size_t *);
|
||||||
|
int asprintf(char **, const char *, ...);
|
||||||
|
int vasprintf(char **, const char *, __isoc_va_list);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _GNU_SOURCE
|
||||||
|
char *fgets_unlocked(char *, int, FILE *);
|
||||||
|
int fputs_unlocked(const char *, FILE *);
|
||||||
|
|
||||||
|
typedef ssize_t (cookie_read_function_t)(void *, char *, size_t);
|
||||||
|
typedef ssize_t (cookie_write_function_t)(void *, const char *, size_t);
|
||||||
|
typedef int (cookie_seek_function_t)(void *, off_t *, int);
|
||||||
|
typedef int (cookie_close_function_t)(void *);
|
||||||
|
|
||||||
|
typedef struct _IO_cookie_io_functions_t {
|
||||||
|
cookie_read_function_t *read;
|
||||||
|
cookie_write_function_t *write;
|
||||||
|
cookie_seek_function_t *seek;
|
||||||
|
cookie_close_function_t *close;
|
||||||
|
} cookie_io_functions_t;
|
||||||
|
|
||||||
|
FILE *fopencookie(void *, const char *, cookie_io_functions_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_LARGEFILE64_SOURCE)
|
||||||
|
#define tmpfile64 tmpfile
|
||||||
|
#define fopen64 fopen
|
||||||
|
#define freopen64 freopen
|
||||||
|
#define fseeko64 fseeko
|
||||||
|
#define ftello64 ftello
|
||||||
|
#define fgetpos64 fgetpos
|
||||||
|
#define fsetpos64 fsetpos
|
||||||
|
#define fpos64_t fpos_t
|
||||||
|
#define off64_t off_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
81
lib/libc/include/hexagon-linux-musl/sys/epoll.h
vendored
Normal file
81
lib/libc/include/hexagon-linux-musl/sys/epoll.h
vendored
Normal file
|
|
@ -0,0 +1,81 @@
|
||||||
|
#ifndef _SYS_EPOLL_H
|
||||||
|
#define _SYS_EPOLL_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
#define __NEED_sigset_t
|
||||||
|
|
||||||
|
#include <bits/alltypes.h>
|
||||||
|
|
||||||
|
#define EPOLL_CLOEXEC O_CLOEXEC
|
||||||
|
#define EPOLL_NONBLOCK O_NONBLOCK
|
||||||
|
|
||||||
|
enum EPOLL_EVENTS { __EPOLL_DUMMY };
|
||||||
|
#define EPOLLIN 0x001
|
||||||
|
#define EPOLLPRI 0x002
|
||||||
|
#define EPOLLOUT 0x004
|
||||||
|
#define EPOLLRDNORM 0x040
|
||||||
|
#define EPOLLNVAL 0x020
|
||||||
|
#define EPOLLRDBAND 0x080
|
||||||
|
#define EPOLLWRNORM 0x100
|
||||||
|
#define EPOLLWRBAND 0x200
|
||||||
|
#define EPOLLMSG 0x400
|
||||||
|
#define EPOLLERR 0x008
|
||||||
|
#define EPOLLHUP 0x010
|
||||||
|
#define EPOLLRDHUP 0x2000
|
||||||
|
#define EPOLLEXCLUSIVE (1U<<28)
|
||||||
|
#define EPOLLWAKEUP (1U<<29)
|
||||||
|
#define EPOLLONESHOT (1U<<30)
|
||||||
|
#define EPOLLET (1U<<31)
|
||||||
|
|
||||||
|
#define EPOLL_CTL_ADD 1
|
||||||
|
#define EPOLL_CTL_DEL 2
|
||||||
|
#define EPOLL_CTL_MOD 3
|
||||||
|
|
||||||
|
typedef union epoll_data {
|
||||||
|
void *ptr;
|
||||||
|
int fd;
|
||||||
|
uint32_t u32;
|
||||||
|
uint64_t u64;
|
||||||
|
} epoll_data_t;
|
||||||
|
|
||||||
|
struct epoll_event {
|
||||||
|
uint32_t events;
|
||||||
|
epoll_data_t data;
|
||||||
|
}
|
||||||
|
#ifdef __x86_64__
|
||||||
|
__attribute__ ((__packed__))
|
||||||
|
#endif
|
||||||
|
;
|
||||||
|
|
||||||
|
struct epoll_params {
|
||||||
|
uint32_t busy_poll_usecs;
|
||||||
|
uint16_t busy_poll_budget;
|
||||||
|
uint8_t prefer_busy_poll;
|
||||||
|
|
||||||
|
uint8_t __pad;
|
||||||
|
};
|
||||||
|
|
||||||
|
#define EPOLL_IOC_TYPE 0x8A
|
||||||
|
#define EPIOCSPARAMS _IOW(EPOLL_IOC_TYPE, 0x01, struct epoll_params)
|
||||||
|
#define EPIOCGPARAMS _IOR(EPOLL_IOC_TYPE, 0x02, struct epoll_params)
|
||||||
|
|
||||||
|
int epoll_create(int);
|
||||||
|
int epoll_create1(int);
|
||||||
|
int epoll_ctl(int, int, int, struct epoll_event *);
|
||||||
|
int epoll_wait(int, struct epoll_event *, int, int);
|
||||||
|
int epoll_pwait(int, struct epoll_event *, int, int, const sigset_t *);
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* sys/epoll.h */
|
||||||
18
lib/libc/include/hexagon-linux-musl/sys/reg.h
vendored
Normal file
18
lib/libc/include/hexagon-linux-musl/sys/reg.h
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#ifndef _SYS_REG_H
|
||||||
|
#define _SYS_REG_H
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <bits/alltypes.h>
|
||||||
|
|
||||||
|
#undef __WORDSIZE
|
||||||
|
#if __LONG_MAX == 0x7fffffffL
|
||||||
|
#define __WORDSIZE 32
|
||||||
|
#else
|
||||||
|
#define __WORDSIZE 64
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <bits/reg.h>
|
||||||
|
|
||||||
|
#endif
|
||||||
197
lib/libc/include/hexagon-linux-musl/sys/stat.h
vendored
Normal file
197
lib/libc/include/hexagon-linux-musl/sys/stat.h
vendored
Normal file
|
|
@ -0,0 +1,197 @@
|
||||||
|
#ifndef _SYS_STAT_H
|
||||||
|
#define _SYS_STAT_H
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <features.h>
|
||||||
|
|
||||||
|
#define __NEED_dev_t
|
||||||
|
#define __NEED_ino_t
|
||||||
|
#define __NEED_mode_t
|
||||||
|
#define __NEED_nlink_t
|
||||||
|
#define __NEED_uid_t
|
||||||
|
#define __NEED_gid_t
|
||||||
|
#define __NEED_off_t
|
||||||
|
#define __NEED_time_t
|
||||||
|
#define __NEED_blksize_t
|
||||||
|
#define __NEED_blkcnt_t
|
||||||
|
#define __NEED_struct_timespec
|
||||||
|
|
||||||
|
#ifdef _GNU_SOURCE
|
||||||
|
#define __NEED_int64_t
|
||||||
|
#define __NEED_uint64_t
|
||||||
|
#define __NEED_uint32_t
|
||||||
|
#define __NEED_uint16_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <bits/alltypes.h>
|
||||||
|
|
||||||
|
#include <bits/stat.h>
|
||||||
|
|
||||||
|
#define st_atime st_atim.tv_sec
|
||||||
|
#define st_mtime st_mtim.tv_sec
|
||||||
|
#define st_ctime st_ctim.tv_sec
|
||||||
|
|
||||||
|
#define S_IFMT 0170000
|
||||||
|
|
||||||
|
#define S_IFDIR 0040000
|
||||||
|
#define S_IFCHR 0020000
|
||||||
|
#define S_IFBLK 0060000
|
||||||
|
#define S_IFREG 0100000
|
||||||
|
#define S_IFIFO 0010000
|
||||||
|
#define S_IFLNK 0120000
|
||||||
|
#define S_IFSOCK 0140000
|
||||||
|
|
||||||
|
#define S_TYPEISMQ(buf) 0
|
||||||
|
#define S_TYPEISSEM(buf) 0
|
||||||
|
#define S_TYPEISSHM(buf) 0
|
||||||
|
#define S_TYPEISTMO(buf) 0
|
||||||
|
|
||||||
|
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
|
||||||
|
#define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
|
||||||
|
#define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
|
||||||
|
#define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
|
||||||
|
#define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO)
|
||||||
|
#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
|
||||||
|
#define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
|
||||||
|
|
||||||
|
#ifndef S_IRUSR
|
||||||
|
#define S_ISUID 04000
|
||||||
|
#define S_ISGID 02000
|
||||||
|
#define S_ISVTX 01000
|
||||||
|
#define S_IRUSR 0400
|
||||||
|
#define S_IWUSR 0200
|
||||||
|
#define S_IXUSR 0100
|
||||||
|
#define S_IRWXU 0700
|
||||||
|
#define S_IRGRP 0040
|
||||||
|
#define S_IWGRP 0020
|
||||||
|
#define S_IXGRP 0010
|
||||||
|
#define S_IRWXG 0070
|
||||||
|
#define S_IROTH 0004
|
||||||
|
#define S_IWOTH 0002
|
||||||
|
#define S_IXOTH 0001
|
||||||
|
#define S_IRWXO 0007
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define UTIME_NOW 0x3fffffff
|
||||||
|
#define UTIME_OMIT 0x3ffffffe
|
||||||
|
|
||||||
|
int stat(const char *__restrict, struct stat *__restrict);
|
||||||
|
int fstat(int, struct stat *);
|
||||||
|
int lstat(const char *__restrict, struct stat *__restrict);
|
||||||
|
int fstatat(int, const char *__restrict, struct stat *__restrict, int);
|
||||||
|
int chmod(const char *, mode_t);
|
||||||
|
int fchmod(int, mode_t);
|
||||||
|
int fchmodat(int, const char *, mode_t, int);
|
||||||
|
mode_t umask(mode_t);
|
||||||
|
int mkdir(const char *, mode_t);
|
||||||
|
int mkfifo(const char *, mode_t);
|
||||||
|
int mkdirat(int, const char *, mode_t);
|
||||||
|
int mkfifoat(int, const char *, mode_t);
|
||||||
|
|
||||||
|
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
int mknod(const char *, mode_t, dev_t);
|
||||||
|
int mknodat(int, const char *, mode_t, dev_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int futimens(int, const struct timespec [2]);
|
||||||
|
int utimensat(int, const char *, const struct timespec [2], int);
|
||||||
|
|
||||||
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
int lchmod(const char *, mode_t);
|
||||||
|
#define S_IREAD S_IRUSR
|
||||||
|
#define S_IWRITE S_IWUSR
|
||||||
|
#define S_IEXEC S_IXUSR
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_GNU_SOURCE)
|
||||||
|
#define STATX_TYPE 1U
|
||||||
|
#define STATX_MODE 2U
|
||||||
|
#define STATX_NLINK 4U
|
||||||
|
#define STATX_UID 8U
|
||||||
|
#define STATX_GID 0x10U
|
||||||
|
#define STATX_ATIME 0x20U
|
||||||
|
#define STATX_MTIME 0x40U
|
||||||
|
#define STATX_CTIME 0x80U
|
||||||
|
#define STATX_INO 0x100U
|
||||||
|
#define STATX_SIZE 0x200U
|
||||||
|
#define STATX_BLOCKS 0x400U
|
||||||
|
#define STATX_BASIC_STATS 0x7ffU
|
||||||
|
#define STATX_BTIME 0x800U
|
||||||
|
#define STATX_ALL 0xfffU
|
||||||
|
#define STATX_MNT_ID 0x1000U
|
||||||
|
#define STATX_DIOALIGN 0x2000U
|
||||||
|
#define STATX_MNT_ID_UNIQUE 0x4000U
|
||||||
|
|
||||||
|
#define STATX_ATTR_COMPRESSED 0x4
|
||||||
|
#define STATX_ATTR_IMMUTABLE 0x10
|
||||||
|
#define STATX_ATTR_APPEND 0x20
|
||||||
|
#define STATX_ATTR_NODUMP 0x40
|
||||||
|
#define STATX_ATTR_ENCRYPTED 0x800
|
||||||
|
#define STATX_ATTR_AUTOMOUNT 0x1000
|
||||||
|
#define STATX_ATTR_MOUNT_ROOT 0x2000
|
||||||
|
#define STATX_ATTR_VERITY 0x100000
|
||||||
|
#define STATX_ATTR_DAX 0x200000
|
||||||
|
|
||||||
|
struct statx_timestamp {
|
||||||
|
int64_t tv_sec;
|
||||||
|
uint32_t tv_nsec, __pad;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct statx {
|
||||||
|
uint32_t stx_mask;
|
||||||
|
uint32_t stx_blksize;
|
||||||
|
uint64_t stx_attributes;
|
||||||
|
uint32_t stx_nlink;
|
||||||
|
uint32_t stx_uid;
|
||||||
|
uint32_t stx_gid;
|
||||||
|
uint16_t stx_mode;
|
||||||
|
uint16_t __pad0[1];
|
||||||
|
uint64_t stx_ino;
|
||||||
|
uint64_t stx_size;
|
||||||
|
uint64_t stx_blocks;
|
||||||
|
uint64_t stx_attributes_mask;
|
||||||
|
struct statx_timestamp stx_atime;
|
||||||
|
struct statx_timestamp stx_btime;
|
||||||
|
struct statx_timestamp stx_ctime;
|
||||||
|
struct statx_timestamp stx_mtime;
|
||||||
|
uint32_t stx_rdev_major;
|
||||||
|
uint32_t stx_rdev_minor;
|
||||||
|
uint32_t stx_dev_major;
|
||||||
|
uint32_t stx_dev_minor;
|
||||||
|
uint64_t stx_mnt_id;
|
||||||
|
uint32_t stx_dio_mem_align;
|
||||||
|
uint32_t stx_dio_offset_align;
|
||||||
|
uint64_t stx_subvol;
|
||||||
|
uint64_t __pad1[11];
|
||||||
|
};
|
||||||
|
|
||||||
|
int statx(int, const char *__restrict, int, unsigned, struct statx *__restrict);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_LARGEFILE64_SOURCE)
|
||||||
|
#define stat64 stat
|
||||||
|
#define fstat64 fstat
|
||||||
|
#define lstat64 lstat
|
||||||
|
#define fstatat64 fstatat
|
||||||
|
#define blkcnt64_t blkcnt_t
|
||||||
|
#define fsblkcnt64_t fsblkcnt_t
|
||||||
|
#define fsfilcnt64_t fsfilcnt_t
|
||||||
|
#define ino64_t ino_t
|
||||||
|
#define off64_t off_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _REDIR_TIME64
|
||||||
|
__REDIR(stat, __stat_time64);
|
||||||
|
__REDIR(fstat, __fstat_time64);
|
||||||
|
__REDIR(lstat, __lstat_time64);
|
||||||
|
__REDIR(fstatat, __fstatat_time64);
|
||||||
|
__REDIR(futimens, __futimens_time64);
|
||||||
|
__REDIR(utimensat, __utimensat_time64);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
56
lib/libc/include/hexagon-linux-musl/sys/uio.h
vendored
Normal file
56
lib/libc/include/hexagon-linux-musl/sys/uio.h
vendored
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
#ifndef _SYS_UIO_H
|
||||||
|
#define _SYS_UIO_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <features.h>
|
||||||
|
|
||||||
|
#define __NEED_size_t
|
||||||
|
#define __NEED_ssize_t
|
||||||
|
#define __NEED_struct_iovec
|
||||||
|
|
||||||
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
#define __NEED_off_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _GNU_SOURCE
|
||||||
|
#define __NEED_pid_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <bits/alltypes.h>
|
||||||
|
|
||||||
|
#define UIO_MAXIOV 1024
|
||||||
|
|
||||||
|
ssize_t readv (int, const struct iovec *, int);
|
||||||
|
ssize_t writev (int, const struct iovec *, int);
|
||||||
|
|
||||||
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
ssize_t preadv (int, const struct iovec *, int, off_t);
|
||||||
|
ssize_t pwritev (int, const struct iovec *, int, off_t);
|
||||||
|
#if defined(_LARGEFILE64_SOURCE)
|
||||||
|
#define preadv64 preadv
|
||||||
|
#define pwritev64 pwritev
|
||||||
|
#define off64_t off_t
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _GNU_SOURCE
|
||||||
|
ssize_t process_vm_writev(pid_t, const struct iovec *, unsigned long, const struct iovec *, unsigned long, unsigned long);
|
||||||
|
ssize_t process_vm_readv(pid_t, const struct iovec *, unsigned long, const struct iovec *, unsigned long, unsigned long);
|
||||||
|
ssize_t preadv2 (int, const struct iovec *, int, off_t, int);
|
||||||
|
ssize_t pwritev2 (int, const struct iovec *, int, off_t, int);
|
||||||
|
#define RWF_HIPRI 0x00000001
|
||||||
|
#define RWF_DSYNC 0x00000002
|
||||||
|
#define RWF_SYNC 0x00000004
|
||||||
|
#define RWF_NOWAIT 0x00000008
|
||||||
|
#define RWF_APPEND 0x00000010
|
||||||
|
#define RWF_NOAPPEND 0x00000020
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
25
lib/libc/include/hexagon-linux-musl/sys/user.h
vendored
Normal file
25
lib/libc/include/hexagon-linux-musl/sys/user.h
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
#ifndef _SYS_USER_H
|
||||||
|
#define _SYS_USER_H
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <bits/alltypes.h>
|
||||||
|
|
||||||
|
#undef __WORDSIZE
|
||||||
|
#if __LONG_MAX == 0x7fffffffL
|
||||||
|
#define __WORDSIZE 32
|
||||||
|
#else
|
||||||
|
#define __WORDSIZE 64
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <bits/user.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
100
lib/libc/include/hexagon-linux-musl/syslog.h
vendored
Normal file
100
lib/libc/include/hexagon-linux-musl/syslog.h
vendored
Normal file
|
|
@ -0,0 +1,100 @@
|
||||||
|
#ifndef _SYSLOG_H
|
||||||
|
#define _SYSLOG_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <features.h>
|
||||||
|
|
||||||
|
#define LOG_EMERG 0
|
||||||
|
#define LOG_ALERT 1
|
||||||
|
#define LOG_CRIT 2
|
||||||
|
#define LOG_ERR 3
|
||||||
|
#define LOG_WARNING 4
|
||||||
|
#define LOG_NOTICE 5
|
||||||
|
#define LOG_INFO 6
|
||||||
|
#define LOG_DEBUG 7
|
||||||
|
|
||||||
|
#define LOG_PRIMASK 7
|
||||||
|
#define LOG_PRI(p) ((p)&LOG_PRIMASK)
|
||||||
|
#define LOG_MAKEPRI(f, p) ((f)|(p))
|
||||||
|
|
||||||
|
#define LOG_MASK(p) (1<<(p))
|
||||||
|
#define LOG_UPTO(p) ((1<<((p)+1))-1)
|
||||||
|
|
||||||
|
#define LOG_KERN (0<<3)
|
||||||
|
#define LOG_USER (1<<3)
|
||||||
|
#define LOG_MAIL (2<<3)
|
||||||
|
#define LOG_DAEMON (3<<3)
|
||||||
|
#define LOG_AUTH (4<<3)
|
||||||
|
#define LOG_SYSLOG (5<<3)
|
||||||
|
#define LOG_LPR (6<<3)
|
||||||
|
#define LOG_NEWS (7<<3)
|
||||||
|
#define LOG_UUCP (8<<3)
|
||||||
|
#define LOG_CRON (9<<3)
|
||||||
|
#define LOG_AUTHPRIV (10<<3)
|
||||||
|
#define LOG_FTP (11<<3)
|
||||||
|
|
||||||
|
#define LOG_LOCAL0 (16<<3)
|
||||||
|
#define LOG_LOCAL1 (17<<3)
|
||||||
|
#define LOG_LOCAL2 (18<<3)
|
||||||
|
#define LOG_LOCAL3 (19<<3)
|
||||||
|
#define LOG_LOCAL4 (20<<3)
|
||||||
|
#define LOG_LOCAL5 (21<<3)
|
||||||
|
#define LOG_LOCAL6 (22<<3)
|
||||||
|
#define LOG_LOCAL7 (23<<3)
|
||||||
|
|
||||||
|
#define LOG_NFACILITIES 24
|
||||||
|
#define LOG_FACMASK 0x3f8
|
||||||
|
#define LOG_FAC(p) (((p)&LOG_FACMASK)>>3)
|
||||||
|
|
||||||
|
#define LOG_PID 0x01
|
||||||
|
#define LOG_CONS 0x02
|
||||||
|
#define LOG_ODELAY 0x04
|
||||||
|
#define LOG_NDELAY 0x08
|
||||||
|
#define LOG_NOWAIT 0x10
|
||||||
|
#define LOG_PERROR 0x20
|
||||||
|
|
||||||
|
void closelog (void);
|
||||||
|
void openlog (const char *, int, int);
|
||||||
|
int setlogmask (int);
|
||||||
|
void syslog (int, const char *, ...);
|
||||||
|
|
||||||
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
#define _PATH_LOG "/dev/log"
|
||||||
|
#define __NEED_va_list
|
||||||
|
#include <bits/alltypes.h>
|
||||||
|
void vsyslog (int, const char *, va_list);
|
||||||
|
#if defined(SYSLOG_NAMES)
|
||||||
|
#define INTERNAL_NOPRI 0x10
|
||||||
|
#define INTERNAL_MARK (LOG_NFACILITIES<<3)
|
||||||
|
typedef struct {
|
||||||
|
char *c_name;
|
||||||
|
int c_val;
|
||||||
|
} CODE;
|
||||||
|
#define prioritynames ((CODE *)(const CODE []){ \
|
||||||
|
{ "alert", LOG_ALERT }, { "crit", LOG_CRIT }, { "debug", LOG_DEBUG }, \
|
||||||
|
{ "emerg", LOG_EMERG }, { "err", LOG_ERR }, { "error", LOG_ERR }, \
|
||||||
|
{ "info", LOG_INFO }, { "none", INTERNAL_NOPRI }, \
|
||||||
|
{ "notice", LOG_NOTICE }, { "panic", LOG_EMERG }, \
|
||||||
|
{ "warn", LOG_WARNING }, { "warning", LOG_WARNING }, { 0, -1 } })
|
||||||
|
#define facilitynames ((CODE *)(const CODE []){ \
|
||||||
|
{ "auth", LOG_AUTH }, { "authpriv", LOG_AUTHPRIV }, \
|
||||||
|
{ "cron", LOG_CRON }, { "daemon", LOG_DAEMON }, { "ftp", LOG_FTP }, \
|
||||||
|
{ "kern", LOG_KERN }, { "lpr", LOG_LPR }, { "mail", LOG_MAIL }, \
|
||||||
|
{ "mark", INTERNAL_MARK }, { "news", LOG_NEWS }, \
|
||||||
|
{ "security", LOG_AUTH }, { "syslog", LOG_SYSLOG }, \
|
||||||
|
{ "user", LOG_USER }, { "uucp", LOG_UUCP }, \
|
||||||
|
{ "local0", LOG_LOCAL0 }, { "local1", LOG_LOCAL1 }, \
|
||||||
|
{ "local2", LOG_LOCAL2 }, { "local3", LOG_LOCAL3 }, \
|
||||||
|
{ "local4", LOG_LOCAL4 }, { "local5", LOG_LOCAL5 }, \
|
||||||
|
{ "local6", LOG_LOCAL6 }, { "local7", LOG_LOCAL7 }, { 0, -1 } })
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
485
lib/libc/include/hexagon-linux-musl/unistd.h
vendored
Normal file
485
lib/libc/include/hexagon-linux-musl/unistd.h
vendored
Normal file
|
|
@ -0,0 +1,485 @@
|
||||||
|
#ifndef _UNISTD_H
|
||||||
|
#define _UNISTD_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <features.h>
|
||||||
|
|
||||||
|
#define STDIN_FILENO 0
|
||||||
|
#define STDOUT_FILENO 1
|
||||||
|
#define STDERR_FILENO 2
|
||||||
|
|
||||||
|
#define SEEK_SET 0
|
||||||
|
#define SEEK_CUR 1
|
||||||
|
#define SEEK_END 2
|
||||||
|
#define SEEK_DATA 3
|
||||||
|
#define SEEK_HOLE 4
|
||||||
|
|
||||||
|
#if __cplusplus >= 201103L
|
||||||
|
#define NULL nullptr
|
||||||
|
#elif defined(__cplusplus)
|
||||||
|
#define NULL 0L
|
||||||
|
#else
|
||||||
|
#define NULL ((void*)0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define __NEED_size_t
|
||||||
|
#define __NEED_ssize_t
|
||||||
|
#define __NEED_uid_t
|
||||||
|
#define __NEED_gid_t
|
||||||
|
#define __NEED_off_t
|
||||||
|
#define __NEED_pid_t
|
||||||
|
#define __NEED_intptr_t
|
||||||
|
#define __NEED_useconds_t
|
||||||
|
|
||||||
|
#include <bits/alltypes.h>
|
||||||
|
|
||||||
|
int pipe(int [2]);
|
||||||
|
int pipe2(int [2], int);
|
||||||
|
int close(int);
|
||||||
|
int posix_close(int, int);
|
||||||
|
int dup(int);
|
||||||
|
int dup2(int, int);
|
||||||
|
int dup3(int, int, int);
|
||||||
|
off_t lseek(int, off_t, int);
|
||||||
|
int fsync(int);
|
||||||
|
int fdatasync(int);
|
||||||
|
|
||||||
|
ssize_t read(int, void *, size_t);
|
||||||
|
ssize_t write(int, const void *, size_t);
|
||||||
|
ssize_t pread(int, void *, size_t, off_t);
|
||||||
|
ssize_t pwrite(int, const void *, size_t, off_t);
|
||||||
|
|
||||||
|
int chown(const char *, uid_t, gid_t);
|
||||||
|
int fchown(int, uid_t, gid_t);
|
||||||
|
int lchown(const char *, uid_t, gid_t);
|
||||||
|
int fchownat(int, const char *, uid_t, gid_t, int);
|
||||||
|
|
||||||
|
int link(const char *, const char *);
|
||||||
|
int linkat(int, const char *, int, const char *, int);
|
||||||
|
int symlink(const char *, const char *);
|
||||||
|
int symlinkat(const char *, int, const char *);
|
||||||
|
ssize_t readlink(const char *__restrict, char *__restrict, size_t);
|
||||||
|
ssize_t readlinkat(int, const char *__restrict, char *__restrict, size_t);
|
||||||
|
int unlink(const char *);
|
||||||
|
int unlinkat(int, const char *, int);
|
||||||
|
int rmdir(const char *);
|
||||||
|
int truncate(const char *, off_t);
|
||||||
|
int ftruncate(int, off_t);
|
||||||
|
|
||||||
|
#define F_OK 0
|
||||||
|
#define R_OK 4
|
||||||
|
#define W_OK 2
|
||||||
|
#define X_OK 1
|
||||||
|
|
||||||
|
int access(const char *, int);
|
||||||
|
int faccessat(int, const char *, int, int);
|
||||||
|
|
||||||
|
int chdir(const char *);
|
||||||
|
int fchdir(int);
|
||||||
|
char *getcwd(char *, size_t);
|
||||||
|
|
||||||
|
unsigned alarm(unsigned);
|
||||||
|
unsigned sleep(unsigned);
|
||||||
|
int pause(void);
|
||||||
|
|
||||||
|
pid_t fork(void);
|
||||||
|
pid_t _Fork(void);
|
||||||
|
int execve(const char *, char *const [], char *const []);
|
||||||
|
int execv(const char *, char *const []);
|
||||||
|
int execle(const char *, const char *, ...);
|
||||||
|
int execl(const char *, const char *, ...);
|
||||||
|
int execvp(const char *, char *const []);
|
||||||
|
int execlp(const char *, const char *, ...);
|
||||||
|
int fexecve(int, char *const [], char *const []);
|
||||||
|
_Noreturn void _exit(int);
|
||||||
|
|
||||||
|
pid_t getpid(void);
|
||||||
|
pid_t getppid(void);
|
||||||
|
pid_t getpgrp(void);
|
||||||
|
pid_t getpgid(pid_t);
|
||||||
|
int setpgid(pid_t, pid_t);
|
||||||
|
pid_t setsid(void);
|
||||||
|
pid_t getsid(pid_t);
|
||||||
|
char *ttyname(int);
|
||||||
|
int ttyname_r(int, char *, size_t);
|
||||||
|
int isatty(int);
|
||||||
|
pid_t tcgetpgrp(int);
|
||||||
|
int tcsetpgrp(int, pid_t);
|
||||||
|
|
||||||
|
uid_t getuid(void);
|
||||||
|
uid_t geteuid(void);
|
||||||
|
gid_t getgid(void);
|
||||||
|
gid_t getegid(void);
|
||||||
|
int getgroups(int, gid_t []);
|
||||||
|
int setuid(uid_t);
|
||||||
|
int seteuid(uid_t);
|
||||||
|
int setgid(gid_t);
|
||||||
|
int setegid(gid_t);
|
||||||
|
|
||||||
|
char *getlogin(void);
|
||||||
|
int getlogin_r(char *, size_t);
|
||||||
|
int gethostname(char *, size_t);
|
||||||
|
char *ctermid(char *);
|
||||||
|
|
||||||
|
int getopt(int, char * const [], const char *);
|
||||||
|
extern char *optarg;
|
||||||
|
extern int optind, opterr, optopt;
|
||||||
|
|
||||||
|
long pathconf(const char *, int);
|
||||||
|
long fpathconf(int, int);
|
||||||
|
long sysconf(int);
|
||||||
|
size_t confstr(int, char *, size_t);
|
||||||
|
|
||||||
|
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
#define F_ULOCK 0
|
||||||
|
#define F_LOCK 1
|
||||||
|
#define F_TLOCK 2
|
||||||
|
#define F_TEST 3
|
||||||
|
int setreuid(uid_t, uid_t);
|
||||||
|
int setregid(gid_t, gid_t);
|
||||||
|
int lockf(int, int, off_t);
|
||||||
|
long gethostid(void);
|
||||||
|
int nice(int);
|
||||||
|
void sync(void);
|
||||||
|
pid_t setpgrp(void);
|
||||||
|
char *crypt(const char *, const char *);
|
||||||
|
void encrypt(char *, int);
|
||||||
|
void swab(const void *__restrict, void *__restrict, ssize_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) \
|
||||||
|
|| (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700)
|
||||||
|
int usleep(unsigned);
|
||||||
|
unsigned ualarm(unsigned, unsigned);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
#define L_SET 0
|
||||||
|
#define L_INCR 1
|
||||||
|
#define L_XTND 2
|
||||||
|
int brk(void *);
|
||||||
|
void *sbrk(intptr_t);
|
||||||
|
pid_t vfork(void);
|
||||||
|
int vhangup(void);
|
||||||
|
int chroot(const char *);
|
||||||
|
int getpagesize(void);
|
||||||
|
int getdtablesize(void);
|
||||||
|
int sethostname(const char *, size_t);
|
||||||
|
int getdomainname(char *, size_t);
|
||||||
|
int setdomainname(const char *, size_t);
|
||||||
|
int setgroups(size_t, const gid_t *);
|
||||||
|
char *getpass(const char *);
|
||||||
|
int daemon(int, int);
|
||||||
|
void setusershell(void);
|
||||||
|
void endusershell(void);
|
||||||
|
char *getusershell(void);
|
||||||
|
int acct(const char *);
|
||||||
|
long syscall(long, ...);
|
||||||
|
int execvpe(const char *, char *const [], char *const []);
|
||||||
|
int issetugid(void);
|
||||||
|
int getentropy(void *, size_t);
|
||||||
|
extern int optreset;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _GNU_SOURCE
|
||||||
|
extern char **environ;
|
||||||
|
int setresuid(uid_t, uid_t, uid_t);
|
||||||
|
int setresgid(gid_t, gid_t, gid_t);
|
||||||
|
int getresuid(uid_t *, uid_t *, uid_t *);
|
||||||
|
int getresgid(gid_t *, gid_t *, gid_t *);
|
||||||
|
char *get_current_dir_name(void);
|
||||||
|
int syncfs(int);
|
||||||
|
int euidaccess(const char *, int);
|
||||||
|
int eaccess(const char *, int);
|
||||||
|
ssize_t copy_file_range(int, off_t *, int, off_t *, size_t, unsigned);
|
||||||
|
pid_t gettid(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_LARGEFILE64_SOURCE)
|
||||||
|
#define lseek64 lseek
|
||||||
|
#define pread64 pread
|
||||||
|
#define pwrite64 pwrite
|
||||||
|
#define truncate64 truncate
|
||||||
|
#define ftruncate64 ftruncate
|
||||||
|
#define lockf64 lockf
|
||||||
|
#define off64_t off_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define POSIX_CLOSE_RESTART 0
|
||||||
|
|
||||||
|
#define _XOPEN_VERSION 700
|
||||||
|
#define _XOPEN_UNIX 1
|
||||||
|
#define _XOPEN_ENH_I18N 1
|
||||||
|
|
||||||
|
#define _POSIX_VERSION 200809L
|
||||||
|
#define _POSIX2_VERSION _POSIX_VERSION
|
||||||
|
|
||||||
|
#define _POSIX_ADVISORY_INFO _POSIX_VERSION
|
||||||
|
#define _POSIX_CHOWN_RESTRICTED 1
|
||||||
|
#define _POSIX_IPV6 _POSIX_VERSION
|
||||||
|
#define _POSIX_JOB_CONTROL 1
|
||||||
|
#define _POSIX_MAPPED_FILES _POSIX_VERSION
|
||||||
|
#define _POSIX_MEMLOCK _POSIX_VERSION
|
||||||
|
#define _POSIX_MEMLOCK_RANGE _POSIX_VERSION
|
||||||
|
#define _POSIX_MEMORY_PROTECTION _POSIX_VERSION
|
||||||
|
#define _POSIX_MESSAGE_PASSING _POSIX_VERSION
|
||||||
|
#define _POSIX_FSYNC _POSIX_VERSION
|
||||||
|
#define _POSIX_NO_TRUNC 1
|
||||||
|
#define _POSIX_RAW_SOCKETS _POSIX_VERSION
|
||||||
|
#define _POSIX_REALTIME_SIGNALS _POSIX_VERSION
|
||||||
|
#define _POSIX_REGEXP 1
|
||||||
|
#define _POSIX_SAVED_IDS 1
|
||||||
|
#define _POSIX_SHELL 1
|
||||||
|
#define _POSIX_SPAWN _POSIX_VERSION
|
||||||
|
#define _POSIX_VDISABLE 0
|
||||||
|
|
||||||
|
#define _POSIX_THREADS _POSIX_VERSION
|
||||||
|
#define _POSIX_THREAD_PROCESS_SHARED _POSIX_VERSION
|
||||||
|
#define _POSIX_THREAD_SAFE_FUNCTIONS _POSIX_VERSION
|
||||||
|
#define _POSIX_THREAD_ATTR_STACKADDR _POSIX_VERSION
|
||||||
|
#define _POSIX_THREAD_ATTR_STACKSIZE _POSIX_VERSION
|
||||||
|
#define _POSIX_THREAD_PRIORITY_SCHEDULING _POSIX_VERSION
|
||||||
|
#define _POSIX_THREAD_CPUTIME _POSIX_VERSION
|
||||||
|
#define _POSIX_TIMERS _POSIX_VERSION
|
||||||
|
#define _POSIX_TIMEOUTS _POSIX_VERSION
|
||||||
|
#define _POSIX_MONOTONIC_CLOCK _POSIX_VERSION
|
||||||
|
#define _POSIX_CPUTIME _POSIX_VERSION
|
||||||
|
#define _POSIX_CLOCK_SELECTION _POSIX_VERSION
|
||||||
|
#define _POSIX_BARRIERS _POSIX_VERSION
|
||||||
|
#define _POSIX_SPIN_LOCKS _POSIX_VERSION
|
||||||
|
#define _POSIX_READER_WRITER_LOCKS _POSIX_VERSION
|
||||||
|
#define _POSIX_ASYNCHRONOUS_IO _POSIX_VERSION
|
||||||
|
#define _POSIX_SEMAPHORES _POSIX_VERSION
|
||||||
|
#define _POSIX_SHARED_MEMORY_OBJECTS _POSIX_VERSION
|
||||||
|
|
||||||
|
#define _POSIX2_C_BIND _POSIX_VERSION
|
||||||
|
|
||||||
|
#if __LONG_MAX == 0x7fffffffL
|
||||||
|
#define _POSIX_V6_ILP32_OFFBIG 1
|
||||||
|
#define _POSIX_V7_ILP32_OFFBIG 1
|
||||||
|
#else
|
||||||
|
#define _POSIX_V6_LP64_OFF64 1
|
||||||
|
#define _POSIX_V7_LP64_OFF64 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#define _PC_LINK_MAX 0
|
||||||
|
#define _PC_MAX_CANON 1
|
||||||
|
#define _PC_MAX_INPUT 2
|
||||||
|
#define _PC_NAME_MAX 3
|
||||||
|
#define _PC_PATH_MAX 4
|
||||||
|
#define _PC_PIPE_BUF 5
|
||||||
|
#define _PC_CHOWN_RESTRICTED 6
|
||||||
|
#define _PC_NO_TRUNC 7
|
||||||
|
#define _PC_VDISABLE 8
|
||||||
|
#define _PC_SYNC_IO 9
|
||||||
|
#define _PC_ASYNC_IO 10
|
||||||
|
#define _PC_PRIO_IO 11
|
||||||
|
#define _PC_SOCK_MAXBUF 12
|
||||||
|
#define _PC_FILESIZEBITS 13
|
||||||
|
#define _PC_REC_INCR_XFER_SIZE 14
|
||||||
|
#define _PC_REC_MAX_XFER_SIZE 15
|
||||||
|
#define _PC_REC_MIN_XFER_SIZE 16
|
||||||
|
#define _PC_REC_XFER_ALIGN 17
|
||||||
|
#define _PC_ALLOC_SIZE_MIN 18
|
||||||
|
#define _PC_SYMLINK_MAX 19
|
||||||
|
#define _PC_2_SYMLINKS 20
|
||||||
|
|
||||||
|
#define _SC_ARG_MAX 0
|
||||||
|
#define _SC_CHILD_MAX 1
|
||||||
|
#define _SC_CLK_TCK 2
|
||||||
|
#define _SC_NGROUPS_MAX 3
|
||||||
|
#define _SC_OPEN_MAX 4
|
||||||
|
#define _SC_STREAM_MAX 5
|
||||||
|
#define _SC_TZNAME_MAX 6
|
||||||
|
#define _SC_JOB_CONTROL 7
|
||||||
|
#define _SC_SAVED_IDS 8
|
||||||
|
#define _SC_REALTIME_SIGNALS 9
|
||||||
|
#define _SC_PRIORITY_SCHEDULING 10
|
||||||
|
#define _SC_TIMERS 11
|
||||||
|
#define _SC_ASYNCHRONOUS_IO 12
|
||||||
|
#define _SC_PRIORITIZED_IO 13
|
||||||
|
#define _SC_SYNCHRONIZED_IO 14
|
||||||
|
#define _SC_FSYNC 15
|
||||||
|
#define _SC_MAPPED_FILES 16
|
||||||
|
#define _SC_MEMLOCK 17
|
||||||
|
#define _SC_MEMLOCK_RANGE 18
|
||||||
|
#define _SC_MEMORY_PROTECTION 19
|
||||||
|
#define _SC_MESSAGE_PASSING 20
|
||||||
|
#define _SC_SEMAPHORES 21
|
||||||
|
#define _SC_SHARED_MEMORY_OBJECTS 22
|
||||||
|
#define _SC_AIO_LISTIO_MAX 23
|
||||||
|
#define _SC_AIO_MAX 24
|
||||||
|
#define _SC_AIO_PRIO_DELTA_MAX 25
|
||||||
|
#define _SC_DELAYTIMER_MAX 26
|
||||||
|
#define _SC_MQ_OPEN_MAX 27
|
||||||
|
#define _SC_MQ_PRIO_MAX 28
|
||||||
|
#define _SC_VERSION 29
|
||||||
|
#define _SC_PAGE_SIZE 30
|
||||||
|
#define _SC_PAGESIZE 30 /* !! */
|
||||||
|
#define _SC_RTSIG_MAX 31
|
||||||
|
#define _SC_SEM_NSEMS_MAX 32
|
||||||
|
#define _SC_SEM_VALUE_MAX 33
|
||||||
|
#define _SC_SIGQUEUE_MAX 34
|
||||||
|
#define _SC_TIMER_MAX 35
|
||||||
|
#define _SC_BC_BASE_MAX 36
|
||||||
|
#define _SC_BC_DIM_MAX 37
|
||||||
|
#define _SC_BC_SCALE_MAX 38
|
||||||
|
#define _SC_BC_STRING_MAX 39
|
||||||
|
#define _SC_COLL_WEIGHTS_MAX 40
|
||||||
|
#define _SC_EXPR_NEST_MAX 42
|
||||||
|
#define _SC_LINE_MAX 43
|
||||||
|
#define _SC_RE_DUP_MAX 44
|
||||||
|
#define _SC_2_VERSION 46
|
||||||
|
#define _SC_2_C_BIND 47
|
||||||
|
#define _SC_2_C_DEV 48
|
||||||
|
#define _SC_2_FORT_DEV 49
|
||||||
|
#define _SC_2_FORT_RUN 50
|
||||||
|
#define _SC_2_SW_DEV 51
|
||||||
|
#define _SC_2_LOCALEDEF 52
|
||||||
|
#define _SC_UIO_MAXIOV 60 /* !! */
|
||||||
|
#define _SC_IOV_MAX 60
|
||||||
|
#define _SC_THREADS 67
|
||||||
|
#define _SC_THREAD_SAFE_FUNCTIONS 68
|
||||||
|
#define _SC_GETGR_R_SIZE_MAX 69
|
||||||
|
#define _SC_GETPW_R_SIZE_MAX 70
|
||||||
|
#define _SC_LOGIN_NAME_MAX 71
|
||||||
|
#define _SC_TTY_NAME_MAX 72
|
||||||
|
#define _SC_THREAD_DESTRUCTOR_ITERATIONS 73
|
||||||
|
#define _SC_THREAD_KEYS_MAX 74
|
||||||
|
#define _SC_THREAD_STACK_MIN 75
|
||||||
|
#define _SC_THREAD_THREADS_MAX 76
|
||||||
|
#define _SC_THREAD_ATTR_STACKADDR 77
|
||||||
|
#define _SC_THREAD_ATTR_STACKSIZE 78
|
||||||
|
#define _SC_THREAD_PRIORITY_SCHEDULING 79
|
||||||
|
#define _SC_THREAD_PRIO_INHERIT 80
|
||||||
|
#define _SC_THREAD_PRIO_PROTECT 81
|
||||||
|
#define _SC_THREAD_PROCESS_SHARED 82
|
||||||
|
#define _SC_NPROCESSORS_CONF 83
|
||||||
|
#define _SC_NPROCESSORS_ONLN 84
|
||||||
|
#define _SC_PHYS_PAGES 85
|
||||||
|
#define _SC_AVPHYS_PAGES 86
|
||||||
|
#define _SC_ATEXIT_MAX 87
|
||||||
|
#define _SC_PASS_MAX 88
|
||||||
|
#define _SC_XOPEN_VERSION 89
|
||||||
|
#define _SC_XOPEN_XCU_VERSION 90
|
||||||
|
#define _SC_XOPEN_UNIX 91
|
||||||
|
#define _SC_XOPEN_CRYPT 92
|
||||||
|
#define _SC_XOPEN_ENH_I18N 93
|
||||||
|
#define _SC_XOPEN_SHM 94
|
||||||
|
#define _SC_2_CHAR_TERM 95
|
||||||
|
#define _SC_2_UPE 97
|
||||||
|
#define _SC_XOPEN_XPG2 98
|
||||||
|
#define _SC_XOPEN_XPG3 99
|
||||||
|
#define _SC_XOPEN_XPG4 100
|
||||||
|
#define _SC_NZERO 109
|
||||||
|
#define _SC_XBS5_ILP32_OFF32 125
|
||||||
|
#define _SC_XBS5_ILP32_OFFBIG 126
|
||||||
|
#define _SC_XBS5_LP64_OFF64 127
|
||||||
|
#define _SC_XBS5_LPBIG_OFFBIG 128
|
||||||
|
#define _SC_XOPEN_LEGACY 129
|
||||||
|
#define _SC_XOPEN_REALTIME 130
|
||||||
|
#define _SC_XOPEN_REALTIME_THREADS 131
|
||||||
|
#define _SC_ADVISORY_INFO 132
|
||||||
|
#define _SC_BARRIERS 133
|
||||||
|
#define _SC_CLOCK_SELECTION 137
|
||||||
|
#define _SC_CPUTIME 138
|
||||||
|
#define _SC_THREAD_CPUTIME 139
|
||||||
|
#define _SC_MONOTONIC_CLOCK 149
|
||||||
|
#define _SC_READER_WRITER_LOCKS 153
|
||||||
|
#define _SC_SPIN_LOCKS 154
|
||||||
|
#define _SC_REGEXP 155
|
||||||
|
#define _SC_SHELL 157
|
||||||
|
#define _SC_SPAWN 159
|
||||||
|
#define _SC_SPORADIC_SERVER 160
|
||||||
|
#define _SC_THREAD_SPORADIC_SERVER 161
|
||||||
|
#define _SC_TIMEOUTS 164
|
||||||
|
#define _SC_TYPED_MEMORY_OBJECTS 165
|
||||||
|
#define _SC_2_PBS 168
|
||||||
|
#define _SC_2_PBS_ACCOUNTING 169
|
||||||
|
#define _SC_2_PBS_LOCATE 170
|
||||||
|
#define _SC_2_PBS_MESSAGE 171
|
||||||
|
#define _SC_2_PBS_TRACK 172
|
||||||
|
#define _SC_SYMLOOP_MAX 173
|
||||||
|
#define _SC_STREAMS 174
|
||||||
|
#define _SC_2_PBS_CHECKPOINT 175
|
||||||
|
#define _SC_V6_ILP32_OFF32 176
|
||||||
|
#define _SC_V6_ILP32_OFFBIG 177
|
||||||
|
#define _SC_V6_LP64_OFF64 178
|
||||||
|
#define _SC_V6_LPBIG_OFFBIG 179
|
||||||
|
#define _SC_HOST_NAME_MAX 180
|
||||||
|
#define _SC_TRACE 181
|
||||||
|
#define _SC_TRACE_EVENT_FILTER 182
|
||||||
|
#define _SC_TRACE_INHERIT 183
|
||||||
|
#define _SC_TRACE_LOG 184
|
||||||
|
|
||||||
|
#define _SC_IPV6 235
|
||||||
|
#define _SC_RAW_SOCKETS 236
|
||||||
|
#define _SC_V7_ILP32_OFF32 237
|
||||||
|
#define _SC_V7_ILP32_OFFBIG 238
|
||||||
|
#define _SC_V7_LP64_OFF64 239
|
||||||
|
#define _SC_V7_LPBIG_OFFBIG 240
|
||||||
|
#define _SC_SS_REPL_MAX 241
|
||||||
|
#define _SC_TRACE_EVENT_NAME_MAX 242
|
||||||
|
#define _SC_TRACE_NAME_MAX 243
|
||||||
|
#define _SC_TRACE_SYS_MAX 244
|
||||||
|
#define _SC_TRACE_USER_EVENT_MAX 245
|
||||||
|
#define _SC_XOPEN_STREAMS 246
|
||||||
|
#define _SC_THREAD_ROBUST_PRIO_INHERIT 247
|
||||||
|
#define _SC_THREAD_ROBUST_PRIO_PROTECT 248
|
||||||
|
#define _SC_MINSIGSTKSZ 249
|
||||||
|
#define _SC_SIGSTKSZ 250
|
||||||
|
|
||||||
|
#define _CS_PATH 0
|
||||||
|
#define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 1
|
||||||
|
#define _CS_GNU_LIBC_VERSION 2
|
||||||
|
#define _CS_GNU_LIBPTHREAD_VERSION 3
|
||||||
|
#define _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS 4
|
||||||
|
#define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS 5
|
||||||
|
|
||||||
|
#define _CS_POSIX_V6_ILP32_OFF32_CFLAGS 1116
|
||||||
|
#define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS 1117
|
||||||
|
#define _CS_POSIX_V6_ILP32_OFF32_LIBS 1118
|
||||||
|
#define _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS 1119
|
||||||
|
#define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS 1120
|
||||||
|
#define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS 1121
|
||||||
|
#define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 1122
|
||||||
|
#define _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS 1123
|
||||||
|
#define _CS_POSIX_V6_LP64_OFF64_CFLAGS 1124
|
||||||
|
#define _CS_POSIX_V6_LP64_OFF64_LDFLAGS 1125
|
||||||
|
#define _CS_POSIX_V6_LP64_OFF64_LIBS 1126
|
||||||
|
#define _CS_POSIX_V6_LP64_OFF64_LINTFLAGS 1127
|
||||||
|
#define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS 1128
|
||||||
|
#define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS 1129
|
||||||
|
#define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS 1130
|
||||||
|
#define _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS 1131
|
||||||
|
#define _CS_POSIX_V7_ILP32_OFF32_CFLAGS 1132
|
||||||
|
#define _CS_POSIX_V7_ILP32_OFF32_LDFLAGS 1133
|
||||||
|
#define _CS_POSIX_V7_ILP32_OFF32_LIBS 1134
|
||||||
|
#define _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS 1135
|
||||||
|
#define _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS 1136
|
||||||
|
#define _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS 1137
|
||||||
|
#define _CS_POSIX_V7_ILP32_OFFBIG_LIBS 1138
|
||||||
|
#define _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS 1139
|
||||||
|
#define _CS_POSIX_V7_LP64_OFF64_CFLAGS 1140
|
||||||
|
#define _CS_POSIX_V7_LP64_OFF64_LDFLAGS 1141
|
||||||
|
#define _CS_POSIX_V7_LP64_OFF64_LIBS 1142
|
||||||
|
#define _CS_POSIX_V7_LP64_OFF64_LINTFLAGS 1143
|
||||||
|
#define _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS 1144
|
||||||
|
#define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS 1145
|
||||||
|
#define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS 1146
|
||||||
|
#define _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS 1147
|
||||||
|
#define _CS_V6_ENV 1148
|
||||||
|
#define _CS_V7_ENV 1149
|
||||||
|
#define _CS_POSIX_V7_THREADS_CFLAGS 1150
|
||||||
|
#define _CS_POSIX_V7_THREADS_LDFLAGS 1151
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
Loading…
Add table
Reference in a new issue