Make improvements

- Add rusage to redbean Lua API
- Add more redbean documentation
- Add pledge() to redbean Lua API
- Polyfill OpenBSD pledge() for Linux
- Increase PATH_MAX limit to 1024 characters
- Untrack sibling processes after fork() on Windows
This commit is contained in:
Justine Tunney 2022-04-28 09:42:36 -07:00
parent 9a6bd304a5
commit 47b3274665
212 changed files with 2251 additions and 834 deletions

View file

@ -4,11 +4,19 @@
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const long PIPE_BUF;
extern const int PIPE_BUF;
extern const int _ARG_MAX;
extern const int _NAME_MAX;
extern const int _PATH_MAX;
extern const int _NSIG;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#define PIPE_BUF SYMBOLIC(PIPE_BUF)
#define PIPE_BUF SYMBOLIC(PIPE_BUF)
#define _ARG_MAX SYMBOLIC(_ARG_MAX)
#define _NAME_MAX SYMBOLIC(_NAME_MAX)
#define _PATH_MAX SYMBOLIC(_PATH_MAX)
#define _NSIG SYMBOLIC(_NSIG)
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_LIMITS_H_ */