mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-27 13:00:28 +00:00
Improve isystem includes and magic numbers
This commit is contained in:
parent
1e5bd4d23e
commit
228fb7428b
143 changed files with 1183 additions and 266 deletions
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon termios,CSUSP,26,26,26,26,26,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon termios,CWERASE,23,23,23,23,23,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,IPC_CREAT,0x0200,0x0200,0x0200,0x0200,0x0200,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,IPC_EXCL,0x0400,0x0400,0x0400,0x0400,0x0400,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,IPC_INFO,3,0,3,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,IPC_NOWAIT,0x0800,0x0800,0x0800,0x0800,0x0800,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,IPC_PRIVATE,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,IPC_RMID,0,0,0,0,0,0
|
|
@ -1,2 +0,0 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,IPC_SET,1,1,1,1,1,0
|
2
libc/sysv/consts/MNT_ASYNC.S
Normal file
2
libc/sysv/consts/MNT_ASYNC.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_ASYNC,0,0x00000040,0x00000040,0x00000040,0x00000040,0
|
2
libc/sysv/consts/MNT_BYFSID.S
Normal file
2
libc/sysv/consts/MNT_BYFSID.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon unmount,MNT_BYFSID,0,0,0x08000000,0,0,0
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,MNT_DETACH,2,0,0,0,0,0
|
||||
.syscon unmount,MNT_DETACH,2,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,MNT_EXPIRE,4,0,0,0,0,0
|
||||
.syscon unmount,MNT_EXPIRE,4,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,MNT_FORCE,1,0x080000,0,0x080000,0x080000,0
|
||||
.syscon unmount,MNT_FORCE,1,0x00080000,0x00080000,0x00080000,0x00080000,2
|
||||
|
|
2
libc/sysv/consts/MNT_NOATIME.S
Normal file
2
libc/sysv/consts/MNT_NOATIME.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_NOATIME,0x00000400,0x10000000,0x10000000,0x00008000,0x04000000,0x00000400
|
2
libc/sysv/consts/MNT_NOCLUSTERR.S
Normal file
2
libc/sysv/consts/MNT_NOCLUSTERR.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_NOCLUSTERR,0,0,0x40000000,0,0,0
|
2
libc/sysv/consts/MNT_NOCLUSTERW.S
Normal file
2
libc/sysv/consts/MNT_NOCLUSTERW.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_NOCLUSTERW,0,0,0x80000000,0,0,0
|
2
libc/sysv/consts/MNT_NODEV.S
Normal file
2
libc/sysv/consts/MNT_NODEV.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_NODEV,0x00000004,0x00000010,0x00000010,0x00000010,0x00000010,0x00000004
|
2
libc/sysv/consts/MNT_NOEXEC.S
Normal file
2
libc/sysv/consts/MNT_NOEXEC.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_NOEXEC,0x00000008,0x00000004,0x00000004,0x00000004,0x00000004,0x00000008
|
2
libc/sysv/consts/MNT_NOSUID.S
Normal file
2
libc/sysv/consts/MNT_NOSUID.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_NOSUID,0,0x00000008,0x00000008,0x00000008,0x00000008,0x00000001
|
2
libc/sysv/consts/MNT_RDONLY.S
Normal file
2
libc/sysv/consts/MNT_RDONLY.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_RDONLY,0x00000001,0x00000001,0x00000001,0x00000001,0x00000001,0x00000001
|
2
libc/sysv/consts/MNT_RELATIME.S
Normal file
2
libc/sysv/consts/MNT_RELATIME.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_RELATIME,0x00200000,0,0,0,0x00020000,0
|
2
libc/sysv/consts/MNT_RELOAD.S
Normal file
2
libc/sysv/consts/MNT_RELOAD.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_RELOAD,0,0x00040000,0x00040000,0x00040000,0x00040000,0
|
2
libc/sysv/consts/MNT_SNAPSHOT.S
Normal file
2
libc/sysv/consts/MNT_SNAPSHOT.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_SNAPSHOT,0,0x40000000,0x01000000,0,0,0
|
2
libc/sysv/consts/MNT_STRICTATIME.S
Normal file
2
libc/sysv/consts/MNT_STRICTATIME.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_STRICTATIME,0x01000000,0x80000000,0,0,0,0
|
2
libc/sysv/consts/MNT_SUIDDIR.S
Normal file
2
libc/sysv/consts/MNT_SUIDDIR.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_SUIDDIR,0,0,0x00100000,0,0,0
|
2
libc/sysv/consts/MNT_SYNCHRONOUS.S
Normal file
2
libc/sysv/consts/MNT_SYNCHRONOUS.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_SYNCHRONOUS,0x00000010,0x00000002,0x00000002,0x00000002,0x00000002,0x00000010
|
2
libc/sysv/consts/MNT_UPDATE.S
Normal file
2
libc/sysv/consts/MNT_UPDATE.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MNT_UPDATE,0x00000020,0x00010000,0x00010000,0x00010000,0x00010000,0x00000020
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_BIND,0x1000,0,0,0,0,0
|
||||
.syscon mount,MS_BIND,0x00001000,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_DIRSYNC,0x80,0,0,0,0,0
|
||||
.syscon mount,MS_DIRSYNC,0x00000080,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_I_VERSION,0x800000,0,0,0,0,0
|
||||
.syscon mount,MS_I_VERSION,0x00800000,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_KERNMOUNT,0x400000,0,0,0,0,0
|
||||
.syscon mount,MS_KERNMOUNT,0x00400000,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_MANDLOCK,0x40,0,0,0,0,0
|
||||
.syscon mount,MS_MANDLOCK,0x00000040,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_MOVE,0x2000,0,0,0,0,0
|
||||
.syscon mount,MS_MOVE,0x00002000,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_NOATIME,0x0400,0,0,0,0,0
|
||||
.syscon mount,MS_NOATIME,0x00000400,0x10000000,0x10000000,0x00008000,0x04000000,0x00000400
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_NODEV,4,0,0,0,0,0
|
||||
.syscon mount,MS_NODEV,0x00000004,0x00000010,0x00000010,0x00000010,0x00000010,0x00000004
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_NODIRATIME,0x0800,0,0,0,0,0
|
||||
.syscon mount,MS_NODIRATIME,0x00000800,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_NOEXEC,8,0,0,0,0,0
|
||||
.syscon mount,MS_NOEXEC,0x00000008,0x00000004,0x00000004,0x00000004,0x00000004,0x00000008
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_NOSUID,2,0,0,0,0,0
|
||||
.syscon mount,MS_NOSUID,0x00000002,0x00000008,0x00000008,0x00000008,0x00000008,0x00000001
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_NOUSER,-2147483648,0,0,0,0,0
|
||||
.syscon mount,MS_NOUSER,0x80000000,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_POSIXACL,0x010000,0,0,0,0,0
|
||||
.syscon mount,MS_POSIXACL,0x00010000,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_PRIVATE,0x040000,0,0,0,0,0
|
||||
.syscon mount,MS_PRIVATE,0x00040000,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_RDONLY,1,0,0,0,0,0
|
||||
.syscon mount,MS_RDONLY,0x00000001,0x00000001,0x00000001,0x00000001,0x00000001,0x00000001
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_REC,0x4000,0,0,0,0,0
|
||||
.syscon mount,MS_REC,0x00004000,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_RELATIME,0x200000,0,0,0,0,0
|
||||
.syscon mount,MS_RELATIME,0x00200000,0,0,0,0x00020000,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_REMOUNT,0x20,0,0,0,0,0
|
||||
.syscon mount,MS_REMOUNT,0x00000020,0x00010000,0x00010000,0x00010000,0x00010000,0x00000020
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_SHARED,0x100000,0,0,0,0,0
|
||||
.syscon mount,MS_SHARED,0x00100000,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_SILENT,0x8000,0,0,0,0,0
|
||||
.syscon mount,MS_SILENT,0x00008000,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_SLAVE,0x080000,0,0,0,0,0
|
||||
.syscon mount,MS_SLAVE,0x00080000,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_STRICTATIME,0x01000000,0,0,0,0,0
|
||||
.syscon mount,MS_STRICTATIME,0x01000000,0x80000000,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_SYNCHRONOUS,0x10,0,0,0,0,0
|
||||
.syscon mount,MS_SYNCHRONOUS,0x00000010,0x00000002,0x00000002,0x00000002,0x00000002,0x00000010
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon mount,MS_UNBINDABLE,0x020000,0,0,0,0,0
|
||||
.syscon mount,MS_UNBINDABLE,0x00020000,0,0,0,0,0
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,RB_AUTOBOOT,0x01234567,0,0,0,0,0
|
||||
.syscon reboot,RB_AUTOBOOT,0x01234567,0,0,0,0,4
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,RB_DISABLE_CAD,0,0,0,0,0,0
|
||||
.syscon reboot,RB_DISABLE_CAD,0,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,RB_ENABLE_CAD,0x89abcdef,0,0,0,0,0
|
||||
.syscon reboot,RB_ENABLE_CAD,0x89abcdef,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon termios,CBRK,0,255,255,255,255,0
|
||||
.syscon reboot,RB_HALT,0xcdef0123,8,8,8,8,16
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,RB_HALT_SYSTEM,0xcdef0123,0,0,0,0,0
|
||||
.syscon reboot,RB_HALT_SYSTEM,0xcdef0123,8,8,8,8,16
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,RB_KEXEC,0x45584543,0,0,0,0,0
|
||||
.syscon reboot,RB_KEXEC,0x45584543,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff
|
||||
|
|
2
libc/sysv/consts/RB_NOSYNC.S
Normal file
2
libc/sysv/consts/RB_NOSYNC.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon reboot,RB_NOSYNC,0x20000000,4,4,4,4,0x20000000
|
2
libc/sysv/consts/RB_POWERDOWN.S
Normal file
2
libc/sysv/consts/RB_POWERDOWN.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon reboot,RB_POWERDOWN,0x4321fedc,0xffffffff,0x4000,0x1000,0x808,8
|
2
libc/sysv/consts/RB_POWEROFF.S
Normal file
2
libc/sysv/consts/RB_POWEROFF.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon reboot,RB_POWEROFF,0x4321fedc,0xffffffff,0x4000,0x1000,0x808,8
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,RB_POWER_OFF,0x4321fedc,0,0,0,0,0
|
||||
.syscon reboot,RB_POWER_OFF,0x4321fedc,0xffffffff,0x4000,0x1000,0x808,8
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,RB_SW_SUSPEND,0xd000fce2,0,0,0,0,0
|
||||
.syscon reboot,RB_SW_SUSPEND,0xd000fce2,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xd000fce2
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,IPC_STAT,2,2,2,2,2,0
|
||||
.syscon sig,SIGSTKFLT,16,0,0,0,0,0
|
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon misc,UMOUNT_NOFOLLOW,8,0,0,0,0,0
|
||||
.syscon unmount,UMOUNT_NOFOLLOW,8,0,0,0,0,0
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_IPC_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_IPC_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
|
||||
#define IPC_CREAT SYMBOLIC(IPC_CREAT)
|
||||
#define IPC_EXCL SYMBOLIC(IPC_EXCL)
|
||||
#define IPC_INFO SYMBOLIC(IPC_INFO)
|
||||
#define IPC_NOWAIT SYMBOLIC(IPC_NOWAIT)
|
||||
#define IPC_PRIVATE SYMBOLIC(IPC_PRIVATE)
|
||||
#define IPC_RMID SYMBOLIC(IPC_RMID)
|
||||
#define IPC_SET SYMBOLIC(IPC_SET)
|
||||
#define IPC_STAT SYMBOLIC(IPC_STAT)
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const long IPC_CREAT;
|
||||
extern const long IPC_EXCL;
|
||||
extern const long IPC_INFO;
|
||||
extern const long IPC_NOWAIT;
|
||||
extern const long IPC_PRIVATE;
|
||||
extern const long IPC_RMID;
|
||||
extern const long IPC_SET;
|
||||
extern const long IPC_STAT;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_IPC_H_ */
|
|
@ -1,18 +0,0 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_MNT_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_MNT_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
|
||||
#define MNT_DETACH SYMBOLIC(MNT_DETACH)
|
||||
#define MNT_EXPIRE SYMBOLIC(MNT_EXPIRE)
|
||||
#define MNT_FORCE SYMBOLIC(MNT_FORCE)
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const long MNT_DETACH;
|
||||
extern const long MNT_EXPIRE;
|
||||
extern const long MNT_FORCE;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_MNT_H_ */
|
|
@ -4,67 +4,97 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const long MS_ACTIVE;
|
||||
extern const long MS_BIND;
|
||||
extern const long MS_DIRSYNC;
|
||||
extern const long MS_I_VERSION;
|
||||
extern const long MS_KERNMOUNT;
|
||||
extern const long MS_LAZYTIME;
|
||||
extern const long MS_MANDLOCK;
|
||||
extern const long MS_MGC_MSK;
|
||||
extern const long MS_MGC_VAL;
|
||||
extern const long MS_MOVE;
|
||||
extern const long MS_NOATIME;
|
||||
extern const long MS_NODEV;
|
||||
extern const long MS_NODIRATIME;
|
||||
extern const long MS_NOEXEC;
|
||||
extern const long MS_NOSUID;
|
||||
extern const long MS_NOUSER;
|
||||
extern const long MS_POSIXACL;
|
||||
extern const long MS_PRIVATE;
|
||||
extern const long MS_RDONLY;
|
||||
extern const long MS_REC;
|
||||
extern const long MS_RELATIME;
|
||||
extern const long MS_REMOUNT;
|
||||
extern const long MS_RMT_MASK;
|
||||
extern const long MS_SHARED;
|
||||
extern const long MS_SILENT;
|
||||
extern const long MS_SLAVE;
|
||||
extern const long MS_STRICTATIME;
|
||||
extern const long MNT_RDONLY;
|
||||
extern const long MS_NOSUID;
|
||||
extern const long MNT_NOSUID;
|
||||
extern const long MS_NODEV;
|
||||
extern const long MNT_NODEV;
|
||||
extern const long MS_NOEXEC;
|
||||
extern const long MNT_NOEXEC;
|
||||
extern const long MS_SYNCHRONOUS;
|
||||
extern const long MNT_SYNCHRONOUS;
|
||||
extern const long MS_REMOUNT;
|
||||
extern const long MNT_UPDATE;
|
||||
extern const long MS_MANDLOCK;
|
||||
extern const long MS_DIRSYNC;
|
||||
extern const long MS_NOATIME;
|
||||
extern const long MNT_NOATIME;
|
||||
extern const long MS_NODIRATIME;
|
||||
extern const long MS_BIND;
|
||||
extern const long MS_MOVE;
|
||||
extern const long MS_REC;
|
||||
extern const long MS_SILENT;
|
||||
extern const long MS_POSIXACL;
|
||||
extern const long MS_UNBINDABLE;
|
||||
extern const long MS_PRIVATE;
|
||||
extern const long MS_SLAVE;
|
||||
extern const long MS_SHARED;
|
||||
extern const long MS_RELATIME;
|
||||
extern const long MNT_RELATIME;
|
||||
extern const long MS_KERNMOUNT;
|
||||
extern const long MS_I_VERSION;
|
||||
extern const long MS_STRICTATIME;
|
||||
extern const long MNT_STRICTATIME;
|
||||
extern const long MS_LAZYTIME;
|
||||
extern const long MS_ACTIVE;
|
||||
extern const long MS_NOUSER;
|
||||
extern const long MS_RMT_MASK;
|
||||
extern const long MS_MGC_VAL;
|
||||
extern const long MS_MGC_MSK;
|
||||
extern const long MNT_ASYNC;
|
||||
extern const long MNT_RELOAD;
|
||||
extern const long MNT_SUIDDIR;
|
||||
extern const long MNT_NOCLUSTERR;
|
||||
extern const long MNT_NOCLUSTERW;
|
||||
extern const long MNT_SNAPSHOT;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define MS_ACTIVE SYMBOLIC(MS_ACTIVE)
|
||||
#define MS_BIND SYMBOLIC(MS_BIND)
|
||||
#define MS_DIRSYNC SYMBOLIC(MS_DIRSYNC)
|
||||
#define MS_I_VERSION SYMBOLIC(MS_I_VERSION)
|
||||
#define MS_KERNMOUNT SYMBOLIC(MS_KERNMOUNT)
|
||||
#define MS_LAZYTIME SYMBOLIC(MS_LAZYTIME)
|
||||
#define MS_MANDLOCK SYMBOLIC(MS_MANDLOCK)
|
||||
#define MS_MGC_MSK SYMBOLIC(MS_MGC_MSK)
|
||||
#define MS_MGC_VAL SYMBOLIC(MS_MGC_VAL)
|
||||
#define MS_MOVE SYMBOLIC(MS_MOVE)
|
||||
#define MS_NOATIME SYMBOLIC(MS_NOATIME)
|
||||
#define MS_NODEV SYMBOLIC(MS_NODEV)
|
||||
#define MS_NODIRATIME SYMBOLIC(MS_NODIRATIME)
|
||||
#define MS_NOEXEC SYMBOLIC(MS_NOEXEC)
|
||||
#define MS_NOSUID SYMBOLIC(MS_NOSUID)
|
||||
#define MS_NOUSER SYMBOLIC(MS_NOUSER)
|
||||
#define MS_POSIXACL SYMBOLIC(MS_POSIXACL)
|
||||
#define MS_PRIVATE SYMBOLIC(MS_PRIVATE)
|
||||
#define MS_RDONLY SYMBOLIC(MS_RDONLY)
|
||||
#define MS_REC SYMBOLIC(MS_REC)
|
||||
#define MS_RELATIME SYMBOLIC(MS_RELATIME)
|
||||
#define MS_REMOUNT SYMBOLIC(MS_REMOUNT)
|
||||
#define MS_RMT_MASK SYMBOLIC(MS_RMT_MASK)
|
||||
#define MS_SHARED SYMBOLIC(MS_SHARED)
|
||||
#define MS_SILENT SYMBOLIC(MS_SILENT)
|
||||
#define MS_SLAVE SYMBOLIC(MS_SLAVE)
|
||||
#define MS_STRICTATIME SYMBOLIC(MS_STRICTATIME)
|
||||
#define MS_SYNCHRONOUS SYMBOLIC(MS_SYNCHRONOUS)
|
||||
#define MS_UNBINDABLE SYMBOLIC(MS_UNBINDABLE)
|
||||
#define MS_RDONLY LITERALLY(0x00000001)
|
||||
#define MNT_RDONLY LITERALLY(0x00000001)
|
||||
#define MS_NOSUID SYMBOLIC(MS_NOSUID)
|
||||
#define MNT_NOSUID SYMBOLIC(MNT_NOSUID)
|
||||
#define MS_NODEV SYMBOLIC(MS_NODEV)
|
||||
#define MNT_NODEV SYMBOLIC(MNT_NODEV)
|
||||
#define MS_NOEXEC SYMBOLIC(MS_NOEXEC)
|
||||
#define MNT_NOEXEC SYMBOLIC(MNT_NOEXEC)
|
||||
#define MS_SYNCHRONOUS SYMBOLIC(MS_SYNCHRONOUS)
|
||||
#define MNT_SYNCHRONOUS SYMBOLIC(MNT_SYNCHRONOUS)
|
||||
#define MS_REMOUNT SYMBOLIC(MS_REMOUNT)
|
||||
#define MNT_UPDATE SYMBOLIC(MNT_UPDATE)
|
||||
#define MS_MANDLOCK SYMBOLIC(MS_MANDLOCK)
|
||||
#define MS_DIRSYNC SYMBOLIC(MS_DIRSYNC)
|
||||
#define MS_NOATIME SYMBOLIC(MS_NOATIME)
|
||||
#define MNT_NOATIME SYMBOLIC(MNT_NOATIME)
|
||||
#define MS_NODIRATIME SYMBOLIC(MS_NODIRATIME)
|
||||
#define MS_BIND SYMBOLIC(MS_BIND)
|
||||
#define MS_MOVE SYMBOLIC(MS_MOVE)
|
||||
#define MS_REC SYMBOLIC(MS_REC)
|
||||
#define MS_SILENT SYMBOLIC(MS_SILENT)
|
||||
#define MS_POSIXACL SYMBOLIC(MS_POSIXACL)
|
||||
#define MS_UNBINDABLE SYMBOLIC(MS_UNBINDABLE)
|
||||
#define MS_PRIVATE SYMBOLIC(MS_PRIVATE)
|
||||
#define MS_SLAVE SYMBOLIC(MS_SLAVE)
|
||||
#define MS_SHARED SYMBOLIC(MS_SHARED)
|
||||
#define MS_RELATIME SYMBOLIC(MS_RELATIME)
|
||||
#define MNT_RELATIME SYMBOLIC(MNT_RELATIME)
|
||||
#define MS_KERNMOUNT SYMBOLIC(MS_KERNMOUNT)
|
||||
#define MS_I_VERSION SYMBOLIC(MS_I_VERSION)
|
||||
#define MS_STRICTATIME SYMBOLIC(MS_STRICTATIME)
|
||||
#define MNT_STRICTATIME SYMBOLIC(MNT_STRICTATIME)
|
||||
#define MS_LAZYTIME SYMBOLIC(MS_LAZYTIME)
|
||||
#define MS_ACTIVE SYMBOLIC(MS_ACTIVE)
|
||||
#define MS_NOUSER SYMBOLIC(MS_NOUSER)
|
||||
#define MS_RMT_MASK SYMBOLIC(MS_RMT_MASK)
|
||||
#define MS_MGC_VAL SYMBOLIC(MS_MGC_VAL)
|
||||
#define MS_MGC_MSK SYMBOLIC(MS_MGC_MSK)
|
||||
#define MNT_ASYNC SYMBOLIC(MNT_ASYNC)
|
||||
#define MNT_RELOAD SYMBOLIC(MNT_RELOAD)
|
||||
#define MNT_SUIDDIR SYMBOLIC(MNT_SUIDDIR)
|
||||
#define MNT_NOCLUSTERR SYMBOLIC(MNT_NOCLUSTERR)
|
||||
#define MNT_NOCLUSTERW SYMBOLIC(MNT_NOCLUSTERW)
|
||||
#define MNT_SNAPSHOT SYMBOLIC(MNT_SNAPSHOT)
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_MOUNT_H_ */
|
||||
|
|
34
libc/sysv/consts/reboot.h
Normal file
34
libc/sysv/consts/reboot.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_REBOOT_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_REBOOT_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const uint32_t RB_AUTOBOOT;
|
||||
extern const uint32_t RB_POWER_OFF;
|
||||
extern const uint32_t RB_POWERDOWN;
|
||||
extern const uint32_t RB_POWEROFF;
|
||||
extern const uint32_t RB_HALT_SYSTEM;
|
||||
extern const uint32_t RB_HALT;
|
||||
extern const uint32_t RB_SW_SUSPEND;
|
||||
extern const uint32_t RB_KEXEC;
|
||||
extern const uint32_t RB_ENABLE_CAD;
|
||||
extern const uint32_t RB_DISABLE_CAD;
|
||||
extern const uint32_t RB_NOSYNC;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define RB_AUTOBOOT SYMBOLIC(RB_AUTOBOOT)
|
||||
#define RB_POWER_OFF SYMBOLIC(RB_POWER_OFF)
|
||||
#define RB_POWERDOWN SYMBOLIC(RB_POWERDOWN)
|
||||
#define RB_POWEROFF SYMBOLIC(RB_POWEROFF)
|
||||
#define RB_HALT_SYSTEM SYMBOLIC(RB_HALT_SYSTEM)
|
||||
#define RB_HALT SYMBOLIC(RB_HALT)
|
||||
#define RB_SW_SUSPEND SYMBOLIC(RB_SW_SUSPEND)
|
||||
#define RB_KEXEC SYMBOLIC(RB_KEXEC)
|
||||
#define RB_ENABLE_CAD SYMBOLIC(RB_ENABLE_CAD)
|
||||
#define RB_DISABLE_CAD SYMBOLIC(RB_DISABLE_CAD)
|
||||
#define RB_NOSYNC SYMBOLIC(RB_NOSYNC)
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_REBOOT_H_ */
|
|
@ -12,7 +12,6 @@ extern const long BUSY;
|
|||
extern const long CANBSIZ;
|
||||
extern const long CBAUD;
|
||||
extern const long CBAUDEX;
|
||||
extern const long CBRK;
|
||||
extern const long CEOL;
|
||||
extern const long CIBAUD;
|
||||
extern const long CLOCAL;
|
||||
|
@ -28,8 +27,6 @@ extern const long CS7;
|
|||
extern const long CS8;
|
||||
extern const long CSIZE;
|
||||
extern const long CSTOPB;
|
||||
extern const long CSUSP;
|
||||
extern const long CWERASE;
|
||||
extern const long ECHO;
|
||||
extern const long ECHOCTL;
|
||||
extern const long ECHOE;
|
||||
|
@ -225,7 +222,6 @@ COSMOPOLITAN_C_END_
|
|||
#define CANBSIZ SYMBOLIC(CANBSIZ)
|
||||
#define CBAUD SYMBOLIC(CBAUD)
|
||||
#define CBAUDEX SYMBOLIC(CBAUDEX)
|
||||
#define CBRK SYMBOLIC(CBRK)
|
||||
#define CEOL SYMBOLIC(CEOL)
|
||||
#define CIBAUD SYMBOLIC(CIBAUD)
|
||||
#define CLOCAL SYMBOLIC(CLOCAL)
|
||||
|
@ -237,8 +233,6 @@ COSMOPOLITAN_C_END_
|
|||
#define CS8 SYMBOLIC(CS8)
|
||||
#define CSIZE SYMBOLIC(CSIZE)
|
||||
#define CSTOPB SYMBOLIC(CSTOPB)
|
||||
#define CSUSP SYMBOLIC(CSUSP)
|
||||
#define CWERASE SYMBOLIC(CWERASE)
|
||||
#define ECHO LITERALLY(8)
|
||||
#define ECHOCTL SYMBOLIC(ECHOCTL)
|
||||
#define ECHOE SYMBOLIC(ECHOE)
|
||||
|
|
22
libc/sysv/consts/unmount.h
Normal file
22
libc/sysv/consts/unmount.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_MOUNT_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_MOUNT_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const long MNT_FORCE;
|
||||
extern const long MNT_DETACH;
|
||||
extern const long MNT_EXPIRE;
|
||||
extern const long UMOUNT_NOFOLLOW;
|
||||
extern const long MNT_BYFSID;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define MNT_FORCE SYMBOLIC(MNT_FORCE)
|
||||
#define MNT_DETACH SYMBOLIC(MNT_DETACH)
|
||||
#define MNT_EXPIRE SYMBOLIC(MNT_EXPIRE)
|
||||
#define UMOUNT_NOFOLLOW SYMBOLIC(UMOUNT_NOFOLLOW)
|
||||
#define MNT_BYFSID SYMBOLIC(MNT_BYFSID)
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_MOUNT_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue