cosmopolitan/libc/sysv/consts/rlimit.h
Justine Tunney 6843150e0c
Mint APE Loader v1.4
This change also incorporates more bug fixes and improvements to a wide
variety of small things. For example this fixes  so Windows console
doesn't get corrupted after exit. An system stack memory map issue with
aarch64 has been fixed. We no longer use O_NONBLOCK on AF_UNIX sockets.
Crash reports on Arm64 will now demangle C++ symbols, even when c++filt
isn't available. Most importantly the Apple M1 version of APE Loader is
brought up to date by this change. A prebuilt unsigned binary for it is
being included in build/bootstrap/. One more thing: retrieving the term
dimensions under --strace was causing the stack to become corrupted and
now that's been solved too. PSS: We're now including an ELF PT_NOTE for
APE in the binaries we build, that has the APE Loader version.
2023-07-25 05:48:08 -07:00

50 lines
1.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
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_RLIMIT_H_ */