mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 17:58:30 +00:00
Make ZipOS and Qemu work better
This change improves the dirstream library in a lot of respects, especially for /zip/... files. Also turn off MAP_STACK on Aarch64 because Qemu seems to implement it differently than Linux and it's probably responsible for a lot of mysterious crashes.
This commit is contained in:
parent
4658ae539f
commit
110559ce6a
48 changed files with 748 additions and 500 deletions
|
@ -957,18 +957,6 @@ syscon pf PF_VSOCK 40 40 0 0 0 0 0 0
|
|||
syscon pf PF_WANPIPE 25 25 0 0 0 0 0 0
|
||||
syscon pf PF_X25 9 9 0 0 0 0 0 0
|
||||
|
||||
# getdents() constants
|
||||
#
|
||||
# group name GNU/Systemd GNU/Systemd (Aarch64) XNU's Not UNIX! MacOS (Arm64) FreeBSD OpenBSD NetBSD The New Technology Commentary
|
||||
syscon dt DT_UNKNOWN 0 0 0 0 0 0 0 0 # consensus
|
||||
syscon dt DT_FIFO 1 1 1 1 1 1 1 1 # unix consensus & faked nt
|
||||
syscon dt DT_CHR 2 2 2 2 2 2 2 2 # unix consensus & faked nt
|
||||
syscon dt DT_DIR 4 4 4 4 4 4 4 4 # unix consensus & faked nt
|
||||
syscon dt DT_BLK 6 6 6 6 6 6 6 6 # unix consensus & faked nt
|
||||
syscon dt DT_REG 8 8 8 8 8 8 8 8 # unix consensus & faked nt
|
||||
syscon dt DT_LNK 10 10 10 10 10 10 10 10 # unix consensus & faked nt
|
||||
syscon dt DT_SOCK 12 12 12 12 12 12 12 12 # unix consensus & faked nt
|
||||
|
||||
# msync() flags
|
||||
#
|
||||
# group name GNU/Systemd GNU/Systemd (Aarch64) XNU's Not UNIX! MacOS (Arm64) FreeBSD OpenBSD NetBSD The New Technology Commentary
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon dt,DT_BLK,6,6,6,6,6,6,6,6
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon dt,DT_CHR,2,2,2,2,2,2,2,2
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon dt,DT_DIR,4,4,4,4,4,4,4,4
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon dt,DT_FIFO,1,1,1,1,1,1,1,1
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon dt,DT_LNK,10,10,10,10,10,10,10,10
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon dt,DT_REG,8,8,8,8,8,8,8,8
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon dt,DT_SOCK,12,12,12,12,12,12,12,12
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon dt,DT_UNKNOWN,0,0,0,0,0,0,0,0
|
|
@ -1,19 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_DT_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_DT_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const uint8_t DT_UNKNOWN;
|
||||
extern const uint8_t DT_FIFO;
|
||||
extern const uint8_t DT_CHR;
|
||||
extern const uint8_t DT_DIR;
|
||||
extern const uint8_t DT_BLK;
|
||||
extern const uint8_t DT_REG;
|
||||
extern const uint8_t DT_LNK;
|
||||
extern const uint8_t DT_SOCK;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define DT_UNKNOWN 0
|
||||
#define DT_FIFO 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue