mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 12:30:30 +00:00
Fix bugs in cosmocc toolchain
This change integrates e58abc1110b335a3341e8ad5821ad8e3880d9bb2 from https://github.com/ahgamut/musl-cross-make/ which fixes the issues we were having with our C language extension for symbolic constants. This change also performs some code cleanup and bug fixes to getaddrinfo(). It's now possible to compile projects like ncurses, readline and python without needing to patch anything upstream, except maybe a line or two. Pretty soon it should be possible to build a Linux distro on Cosmo.
This commit is contained in:
parent
22f81a8d50
commit
23e235b7a5
272 changed files with 3491 additions and 4350 deletions
|
@ -1,20 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_POLL_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_POLL_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
|
||||
#define INFTIM (-1)
|
||||
#define POLLERR SYMBOLIC(POLLERR)
|
||||
#define POLLHUP SYMBOLIC(POLLHUP)
|
||||
#define POLLIN SYMBOLIC(POLLIN)
|
||||
#define POLLNVAL SYMBOLIC(POLLNVAL)
|
||||
#define POLLOUT SYMBOLIC(POLLOUT)
|
||||
#define POLLPRI SYMBOLIC(POLLPRI)
|
||||
#define POLLRDBAND SYMBOLIC(POLLRDBAND)
|
||||
#define POLLRDHUP SYMBOLIC(POLLRDHUP)
|
||||
#define POLLRDNORM SYMBOLIC(POLLRDNORM)
|
||||
#define POLLWRBAND SYMBOLIC(POLLWRBAND)
|
||||
#define POLLWRNORM SYMBOLIC(POLLWRNORM)
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
|
@ -30,6 +15,31 @@ extern const int16_t POLLRDNORM;
|
|||
extern const int16_t POLLWRBAND;
|
||||
extern const int16_t POLLWRNORM;
|
||||
|
||||
#define INFTIM (-1)
|
||||
#define POLLERR POLLERR
|
||||
#define POLLHUP POLLHUP
|
||||
#define POLLIN POLLIN
|
||||
#define POLLNVAL POLLNVAL
|
||||
#define POLLOUT POLLOUT
|
||||
#define POLLPRI POLLPRI
|
||||
#define POLLRDBAND POLLRDBAND
|
||||
#define POLLRDHUP POLLRDHUP
|
||||
#define POLLRDNORM POLLRDNORM
|
||||
#define POLLWRBAND POLLWRBAND
|
||||
#define POLLWRNORM POLLWRNORM
|
||||
|
||||
#define __tmpcosmo_POLLERR 1388165514
|
||||
#define __tmpcosmo_POLLHUP -1081758058
|
||||
#define __tmpcosmo_POLLIN -1297303806
|
||||
#define __tmpcosmo_POLLNVAL 907399263
|
||||
#define __tmpcosmo_POLLOUT -1712263905
|
||||
#define __tmpcosmo_POLLPRI 1106108134
|
||||
#define __tmpcosmo_POLLRDBAND -140530500
|
||||
#define __tmpcosmo_POLLRDHUP -1946253190
|
||||
#define __tmpcosmo_POLLRDNORM -1950521858
|
||||
#define __tmpcosmo_POLLWRBAND 2089556804
|
||||
#define __tmpcosmo_POLLWRNORM -128148805
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_POLL_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue