mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Add more missing libc functionality
This commit is contained in:
parent
cf93ecbbb2
commit
a8cf0f7e89
74 changed files with 6981 additions and 105 deletions
|
@ -1,5 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_SYS_DIR_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_SYS_DIR_H_
|
||||
#include "libc/isystem/dirent.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/sysv/consts/dt.h"
|
||||
#define direct dirent
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_SYS_DIR_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_SYS_ERRNO_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_SYS_ERRNO_H_
|
||||
#include "libc/isystem/errno.h"
|
||||
#include "libc/errno.h"
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_SYS_ERRNO_H_ */
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_SYS_FCNTL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_SYS_FCNTL_H_
|
||||
#include "libc/isystem/fcntl.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/sysv/consts/at.h"
|
||||
#include "libc/sysv/consts/f.h"
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_SYS_FCNTL_H_ */
|
||||
|
|
|
@ -3,9 +3,10 @@
|
|||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/ioctl.h"
|
||||
#include "libc/calls/struct/winsize.h"
|
||||
#include "libc/sysv/consts/blk.h"
|
||||
#include "libc/sysv/consts/fd.h"
|
||||
#include "libc/sysv/consts/n.h"
|
||||
#include "libc/sysv/consts/fio.h"
|
||||
#include "libc/sysv/consts/modem.h"
|
||||
#include "libc/sysv/consts/pty.h"
|
||||
#include "libc/sysv/consts/sio.h"
|
||||
#include "libc/sysv/consts/termios.h"
|
||||
#endif
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "libc/sysv/consts/mlock.h"
|
||||
#include "libc/sysv/consts/msync.h"
|
||||
#include "libc/sysv/consts/posix.h"
|
||||
#include "libc/sysv/consts/prot.h"
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
#include "libc/sysv/consts/madv.h"
|
||||
#endif
|
||||
|
|
15
libc/isystem/sys/param.h
Normal file
15
libc/isystem/sys/param.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_SYS_PARAM_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_SYS_PARAM_H_
|
||||
#include "libc/bits/newbie.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/struct/rlimit.h"
|
||||
#include "libc/calls/struct/rusage.h"
|
||||
#include "libc/calls/sysparam.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/limits.h"
|
||||
#include "libc/sysv/consts/endian.h"
|
||||
#include "libc/sysv/consts/prio.h"
|
||||
#include "libc/sysv/consts/rlim.h"
|
||||
#include "libc/sysv/consts/rlimit.h"
|
||||
#include "libc/sysv/consts/rusage.h"
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_SYS_PARAM_H_ */
|
|
@ -1,4 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_SYS_POLL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_SYS_POLL_H_
|
||||
#include "libc/isystem/poll.h"
|
||||
#include "libc/sock/sock.h"
|
||||
#include "libc/sysv/consts/poll.h"
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_SYS_POLL_H_ */
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_SYS_SIGNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_SYS_SIGNAL_H_
|
||||
#include "libc/isystem/signal.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/struct/sigaction.h"
|
||||
#include "libc/calls/struct/siginfo.h"
|
||||
#include "libc/sysv/consts/sicode.h"
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_SYS_SIGNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,15 @@
|
|||
#ifndef LIBC_ISYSTEM_SYS_SOCKET_H_
|
||||
#define LIBC_ISYSTEM_SYS_SOCKET_H_
|
||||
#include "libc/sock/sock.h"
|
||||
#include "libc/sock/struct/linger.h"
|
||||
#include "libc/sock/struct/msghdr.h"
|
||||
#include "libc/sock/struct/sockaddr.h"
|
||||
#include "libc/sysv/consts/af.h"
|
||||
#include "libc/sysv/consts/msg.h"
|
||||
#include "libc/sysv/consts/pf.h"
|
||||
#include "libc/sysv/consts/scm.h"
|
||||
#include "libc/sysv/consts/shut.h"
|
||||
#include "libc/sysv/consts/so.h"
|
||||
#include "libc/sysv/consts/sock.h"
|
||||
#include "libc/sysv/consts/sol.h"
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_SYS_TERMIOS_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_SYS_TERMIOS_H_
|
||||
#include "libc/isystem/termios.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/sysv/consts/termios.h"
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_SYS_TERMIOS_H_ */
|
||||
|
|
|
@ -4,18 +4,11 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
typedef unsigned char u_int8_t;
|
||||
typedef unsigned short u_int16_t;
|
||||
typedef unsigned u_int32_t;
|
||||
typedef char *caddr_t;
|
||||
typedef unsigned char u_char;
|
||||
typedef unsigned short u_short, ushort;
|
||||
typedef unsigned u_int, uint;
|
||||
typedef unsigned long u_long, ulong;
|
||||
typedef long long quad_t;
|
||||
typedef unsigned long long u_quad_t;
|
||||
#include "libc/isystem/endian.h"
|
||||
#include "libc/isystem/sys/select.h"
|
||||
#include "libc/bits/newbie.h"
|
||||
#include "libc/calls/typedef/u.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/sock/select.h"
|
||||
#include "libc/sysv/consts/endian.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue