mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
these badly pollute the namespace with macros whenever _GNU_SOURCE is defined, which is always the case with g++, and especially tends to interfere with C++ constructs. as our implementation of these was macro-only, their removal cannot affect any existing binaries. at the source level, portable software should be prepared for them not to exist. for now, they are left in place with explicit _LARGEFILE64_SOURCE. this provides an easy temporary path for integrators/distributions to get packages building again right away if they break while working on a proper, upstreamable fix. the intent is that this be a very short-term measure and that the macros be removed entirely in the next release cycle.
85 lines
1.8 KiB
C
85 lines
1.8 KiB
C
#ifndef _SYS_TYPES_H
|
|
#define _SYS_TYPES_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <features.h>
|
|
|
|
#define __NEED_ino_t
|
|
#define __NEED_dev_t
|
|
#define __NEED_uid_t
|
|
#define __NEED_gid_t
|
|
#define __NEED_mode_t
|
|
#define __NEED_nlink_t
|
|
#define __NEED_off_t
|
|
#define __NEED_pid_t
|
|
#define __NEED_size_t
|
|
#define __NEED_ssize_t
|
|
#define __NEED_time_t
|
|
#define __NEED_timer_t
|
|
#define __NEED_clockid_t
|
|
|
|
#define __NEED_blkcnt_t
|
|
#define __NEED_fsblkcnt_t
|
|
#define __NEED_fsfilcnt_t
|
|
|
|
#define __NEED_id_t
|
|
#define __NEED_key_t
|
|
#define __NEED_clock_t
|
|
#define __NEED_suseconds_t
|
|
#define __NEED_blksize_t
|
|
|
|
#define __NEED_pthread_t
|
|
#define __NEED_pthread_attr_t
|
|
#define __NEED_pthread_mutexattr_t
|
|
#define __NEED_pthread_condattr_t
|
|
#define __NEED_pthread_rwlockattr_t
|
|
#define __NEED_pthread_barrierattr_t
|
|
#define __NEED_pthread_mutex_t
|
|
#define __NEED_pthread_cond_t
|
|
#define __NEED_pthread_rwlock_t
|
|
#define __NEED_pthread_barrier_t
|
|
#define __NEED_pthread_spinlock_t
|
|
#define __NEED_pthread_key_t
|
|
#define __NEED_pthread_once_t
|
|
#define __NEED_useconds_t
|
|
|
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
#define __NEED_int8_t
|
|
#define __NEED_int16_t
|
|
#define __NEED_int32_t
|
|
#define __NEED_int64_t
|
|
#define __NEED_u_int64_t
|
|
#define __NEED_register_t
|
|
#endif
|
|
|
|
#include <bits/alltypes.h>
|
|
|
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
typedef unsigned char u_int8_t;
|
|
typedef unsigned short u_int16_t;
|
|
typedef unsigned u_int32_t;
|
|
typedef char *caddr_t;
|
|
typedef unsigned char u_char;
|
|
typedef unsigned short u_short, ushort;
|
|
typedef unsigned u_int, uint;
|
|
typedef unsigned long u_long, ulong;
|
|
typedef long long quad_t;
|
|
typedef unsigned long long u_quad_t;
|
|
#include <endian.h>
|
|
#include <sys/select.h>
|
|
#endif
|
|
|
|
#if defined(_LARGEFILE64_SOURCE)
|
|
#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
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|