Fix msync() flags on FreeBSD

This commit is contained in:
Justine Tunney 2023-08-21 04:15:05 -07:00
parent ebf784d4f5
commit fffcd98b0e
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
7 changed files with 95 additions and 15 deletions

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon ms,MS_ASYNC,1,1,1,1,1,1,1,1
.syscon ms,MS_ASYNC,1,1,1,1,2,1,1,1

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon ms,MS_INVALIDATE,2,2,2,2,2,4,2,0
.syscon ms,MS_INVALIDATE,2,2,2,2,4,4,2,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon ms,MS_SYNC,4,4,16,16,0,2,4,4
.syscon ms,MS_SYNC,4,4,16,16,1,2,4,4

View file

@ -7,11 +7,10 @@ extern const int MS_SYNC;
extern const int MS_ASYNC;
extern const int MS_INVALIDATE;
#define MS_ASYNC 1
#define MS_SYNC MS_SYNC
#define MS_ASYNC MS_ASYNC
#define MS_INVALIDATE MS_INVALIDATE
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_MSYNC_H_ */