mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 19:58:30 +00:00
Improve signals and memory protection
- Document sigaction() - Simplify New Technology fork() code - Testing and many bug fixes for mprotect() - Distribute Intel Xed ILD in the amalgamation - Turn Xed enums into defines to avoid DWARF bloat - Improve polyfilling of SA_SIGINFO on BSDs and fix bugs - setpgid(getpid(), getpid()) on Windows will ignore CTRL-C - Work around issues relating to NT mappings being executable - Permit automatic executable stack override via `ape_stack_pf`
This commit is contained in:
parent
c95c9d9508
commit
f684e348d4
76 changed files with 1844 additions and 1121 deletions
2
libc/sysv/consts/BUS_OOMERR.S
Normal file
2
libc/sysv/consts/BUS_OOMERR.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon sicode,BUS_OOMERR,-1,-1,100,-1,-1,-1
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mmap,MAP_CONCEAL,0,0,0,0x8000,0,0
|
||||
.syscon mmap,MAP_CONCEAL,0,0,0x0020000,0x8000,0x8000,0
|
||||
|
|
2
libc/sysv/consts/SEGV_PKUERR.S
Normal file
2
libc/sysv/consts/SEGV_PKUERR.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon sicode,SEGV_PKUERR,-1,-1,100,-1,-1,-1
|
|
@ -23,6 +23,7 @@ extern const long TRAP_BRKPT;
|
|||
extern const long TRAP_TRACE;
|
||||
extern const long SEGV_MAPERR;
|
||||
extern const long SEGV_ACCERR;
|
||||
extern const long SEGV_PKUERR;
|
||||
extern const long FPE_INTDIV;
|
||||
extern const long FPE_INTOVF;
|
||||
extern const long FPE_FLTDIV;
|
||||
|
@ -44,6 +45,7 @@ extern const long BUS_ADRERR;
|
|||
extern const long BUS_OBJERR;
|
||||
extern const long BUS_MCEERR_AR;
|
||||
extern const long BUS_MCEERR_AO;
|
||||
extern const long BUS_OOMERR;
|
||||
extern const long POLL_IN;
|
||||
extern const long POLL_OUT;
|
||||
extern const long POLL_MSG;
|
||||
|
@ -87,6 +89,7 @@ COSMOPOLITAN_C_END_
|
|||
#define SI_ASYNCNL SYMBOLIC(SI_ASYNCNL)
|
||||
#define SI_KERNEL SYMBOLIC(SI_KERNEL)
|
||||
#define SI_NOINFO SYMBOLIC(SI_NOINFO)
|
||||
#define SEGV_PKUERR SYMBOLIC(SEGV_PKUERR)
|
||||
#define FPE_INTDIV SYMBOLIC(FPE_INTDIV)
|
||||
#define FPE_INTOVF SYMBOLIC(FPE_INTOVF)
|
||||
#define FPE_FLTDIV SYMBOLIC(FPE_FLTDIV)
|
||||
|
@ -99,6 +102,7 @@ COSMOPOLITAN_C_END_
|
|||
#define ILL_ILLADR SYMBOLIC(ILL_ILLADR)
|
||||
#define ILL_ILLTRP SYMBOLIC(ILL_ILLTRP)
|
||||
#define ILL_PRVOPC SYMBOLIC(ILL_PRVOPC)
|
||||
#define BUS_OOMERR SYMBOLIC(BUS_OOMERR)
|
||||
#define BUS_MCEERR_AR SYMBOLIC(BUS_MCEERR_AR)
|
||||
#define BUS_MCEERR_AO SYMBOLIC(BUS_MCEERR_AO)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue