mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-25 20:10:29 +00:00
Replace COSMO define with _COSMO_SOURCE
This change might cause ABI breakages for /opt/cosmos. It's needed to help us better conform to header declaration practices.
This commit is contained in:
parent
a033b65a33
commit
c776a32f75
238 changed files with 858 additions and 1069 deletions
|
@ -1,6 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_CLONE_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_CLONE_H_
|
||||
#ifdef COSMO
|
||||
#ifdef _COSMO_SOURCE
|
||||
|
||||
#define CSIGNAL 0x000000ff
|
||||
#define CLONE_VM 0x00000100
|
||||
|
@ -28,5 +28,5 @@
|
|||
#define CLONE_NEWNET 0x40000000
|
||||
#define CLONE_IO 0x80000000
|
||||
|
||||
#endif /* COSMO */
|
||||
#endif /* _COSMO_SOURCE */
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_CLONE_H_ */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_FUTEX_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_FUTEX_H_
|
||||
#ifdef COSMO
|
||||
#ifdef _COSMO_SOURCE
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
|
@ -23,5 +23,5 @@ extern const int FUTEX_REQUEUE;
|
|||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMO */
|
||||
#endif /* _COSMO_SOURCE */
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_FUTEX_H_ */
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_IOPRIO_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_IOPRIO_H_
|
||||
#ifdef _COSMO_SOURCE
|
||||
|
||||
#define IOPRIO_WHO_PROCESS 1
|
||||
#define IOPRIO_WHO_PGRP 2
|
||||
|
@ -27,4 +28,5 @@
|
|||
#define IOPRIO_NORM 4
|
||||
#define IOPRIO_BE_NORM IOPRIO_NORM
|
||||
|
||||
#endif /* _COSMO_SOURCE */
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_IOPRIO_H_ */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_NR_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_NR_H_
|
||||
#ifdef COSMO
|
||||
#ifdef _COSMO_SOURCE
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
|
@ -339,5 +339,5 @@ extern const int __NR_ktrace;
|
|||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMO */
|
||||
#endif /* _COSMO_SOURCE */
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_NR_H_ */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_NRLINUX_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_NRLINUX_H_
|
||||
#ifdef COSMO
|
||||
#ifdef _COSMO_SOURCE
|
||||
|
||||
#ifdef __x86_64__
|
||||
|
||||
|
@ -657,5 +657,5 @@
|
|||
|
||||
#endif /* __x86_64__ */
|
||||
|
||||
#endif /* COSMO */
|
||||
#endif /* _COSMO_SOURCE */
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_NRLINUX_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue