mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 14:22:28 +00:00
This change integrates e58abc1110b335a3341e8ad5821ad8e3880d9bb2 from https://github.com/ahgamut/musl-cross-make/ which fixes the issues we were having with our C language extension for symbolic constants. This change also performs some code cleanup and bug fixes to getaddrinfo(). It's now possible to compile projects like ncurses, readline and python without needing to patch anything upstream, except maybe a line or two. Pretty soon it should be possible to build a Linux distro on Cosmo.
71 lines
2.7 KiB
C
71 lines
2.7 KiB
C
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_RLIMIT_H_
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_RLIMIT_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern const unsigned RLIMIT_AS;
|
|
extern const unsigned RLIMIT_CORE;
|
|
extern const unsigned RLIMIT_CPU;
|
|
extern const unsigned RLIMIT_DATA;
|
|
extern const unsigned RLIMIT_FSIZE;
|
|
extern const unsigned RLIMIT_LOCKS;
|
|
extern const unsigned RLIMIT_MEMLOCK;
|
|
extern const unsigned RLIMIT_MSGQUEUE;
|
|
extern const unsigned RLIMIT_NICE;
|
|
extern const unsigned RLIMIT_NOFILE;
|
|
extern const unsigned RLIMIT_NPROC;
|
|
extern const unsigned RLIMIT_NPTS;
|
|
extern const unsigned RLIMIT_RSS;
|
|
extern const unsigned RLIMIT_RTPRIO;
|
|
extern const unsigned RLIMIT_RTTIME;
|
|
extern const unsigned RLIMIT_SBSIZE;
|
|
extern const unsigned RLIMIT_SIGPENDING;
|
|
extern const unsigned RLIMIT_STACK;
|
|
extern const unsigned RLIMIT_SWAP;
|
|
extern const unsigned RLIMIT_VMEM;
|
|
|
|
#define RLIMIT_AS RLIMIT_AS
|
|
#define RLIMIT_CORE RLIMIT_CORE
|
|
#define RLIMIT_CPU RLIMIT_CPU
|
|
#define RLIMIT_DATA RLIMIT_DATA
|
|
#define RLIMIT_FSIZE RLIMIT_FSIZE
|
|
#define RLIMIT_LOCKS RLIMIT_LOCKS
|
|
#define RLIMIT_MEMLOCK RLIMIT_MEMLOCK
|
|
#define RLIMIT_MSGQUEUE RLIMIT_MSGQUEUE
|
|
#define RLIMIT_NICE RLIMIT_NICE
|
|
#define RLIMIT_NOFILE RLIMIT_NOFILE
|
|
#define RLIMIT_NPROC RLIMIT_NPROC
|
|
#define RLIMIT_NPTS RLIMIT_NPTS
|
|
#define RLIMIT_RSS RLIMIT_RSS
|
|
#define RLIMIT_RTPRIO RLIMIT_RTPRIO
|
|
#define RLIMIT_RTTIME RLIMIT_RTTIME
|
|
#define RLIMIT_SBSIZE RLIMIT_SBSIZE
|
|
#define RLIMIT_SIGPENDING RLIMIT_SIGPENDING
|
|
#define RLIMIT_STACK RLIMIT_STACK
|
|
#define RLIMIT_SWAP RLIMIT_SWAP
|
|
#define RLIMIT_VMEM RLIMIT_VMEM
|
|
|
|
#define __tmpcosmo_RLIMIT_AS 1377206941
|
|
#define __tmpcosmo_RLIMIT_CORE -671407877
|
|
#define __tmpcosmo_RLIMIT_CPU 628127131
|
|
#define __tmpcosmo_RLIMIT_DATA -808550207
|
|
#define __tmpcosmo_RLIMIT_FSIZE -961275389
|
|
#define __tmpcosmo_RLIMIT_LOCKS -606515345
|
|
#define __tmpcosmo_RLIMIT_MEMLOCK -638383635
|
|
#define __tmpcosmo_RLIMIT_MSGQUEUE -200712823
|
|
#define __tmpcosmo_RLIMIT_NICE -1263433607
|
|
#define __tmpcosmo_RLIMIT_NOFILE -974136242
|
|
#define __tmpcosmo_RLIMIT_NPROC 1234964928
|
|
#define __tmpcosmo_RLIMIT_NPTS 1890977319
|
|
#define __tmpcosmo_RLIMIT_RSS 1507822220
|
|
#define __tmpcosmo_RLIMIT_RTPRIO 343598136
|
|
#define __tmpcosmo_RLIMIT_RTTIME 1950976769
|
|
#define __tmpcosmo_RLIMIT_SBSIZE 914114957
|
|
#define __tmpcosmo_RLIMIT_SIGPENDING 1652182385
|
|
#define __tmpcosmo_RLIMIT_STACK 1324847124
|
|
#define __tmpcosmo_RLIMIT_SWAP 1231678046
|
|
#define __tmpcosmo_RLIMIT_VMEM 119083983
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_RLIMIT_H_ */
|