Mateusz Mikuła
b599c453a0
Remove defines that are generated by new cbindgen from bits
2019-07-18 13:18:00 +02:00
Jeremy Soller
38099fe3d9
Fix definition of errno to match what is used by musl
2019-07-03 19:47:55 -06:00
Mateusz Mikuła
ff94798253
Make errno thread local
2019-07-01 16:51:19 +02:00
Mateusz Mikuła
21a6701528
Rename __assert to __assert_fail
...
This makes relibc more compatible with other libc implementations
2019-05-11 13:50:36 +02:00
Alex Lyon
3584edf199
stdio: implement tempnam() and tmpnam()
2019-04-26 20:39:03 -07:00
Jeremy Soller
2fdca9bd0a
Work around definition of O_NOFOLLOW, and add target for only building and installing headers
2019-04-07 10:11:05 -06:00
Robin Randhawa
9443eef518
Add wint_t definition to stddef.h
...
Without this the relibc tests would break. With this the relibc tests
pass and formerly breaking builds (such as uutils -> onig_sys) pass.
2019-03-03 21:50:13 +00:00
Robin Randhawa
23de2ca7ca
Remove redundant wchar_t and win_t definitions
...
Typically with libc implementations, wchar_t and co are either defined
entirely by the libc or, under libc's arrangement, by headers supplied
by the compiler.
Things like dlmalloc in relibc need these definitions from relibc itself
and that's already already furnished by relibc's stddef.h.
These additional definitions here are redundant and collide with
compiler headers - for example: onig_sys (something that uutils depends
on) breaks. Instead, this patch makes the compiler headers define
things appropriately.
2019-03-03 21:50:04 +00:00
Paul Sajna
e93129b165
Change LONG_BIT definition, fixes #148
2019-02-28 07:42:19 +00:00
Tibor Nagy
7ee59d2fdb
tests: set C11, enable pedantic warnings, fix GCC and Clang warnings
2019-02-20 15:04:47 +01:00
Tibor Nagy
d38a1d0da3
ctype: Implement _tolower, _toupper
2019-02-20 11:49:06 +01:00
Jeremy Soller
b35a4f6372
Add in_systm.h
2019-01-15 20:49:15 -07:00
Jeremy Soller
434cad49ce
Add sysconf
2019-01-13 14:16:51 -07:00
Jeremy Soller
6c0c6dd71b
Fix missing negative flags in netdb.h, add NI_MAXHOST and NI_MAXSERV
2019-01-13 10:34:17 -07:00
Jeremy Soller
7ac3dfaa49
Implement sys_uio, define sockaddr_storage
2019-01-05 13:10:20 -07:00
Jeremy Soller
eef2f4d1f8
Add more netinet/in.h definitions
2019-01-05 12:01:24 -07:00
Jeremy Soller
bd956e5fe4
Force little endian for reals
2019-01-01 07:35:13 -07:00
Robin Randhawa
0842d6504b
aarch64: Fix typo in a jmp_buf preprocessor conditional
2018-12-23 16:04:35 +05:30
Jeremy Soller
e6c866a92d
Undefine complex in fenv.h
2018-12-14 12:50:23 -07:00
Jeremy Soller
74af56d71b
Add statvfs and strtold
2018-12-14 12:00:21 -07:00
Jeremy Soller
0d2332d368
Add more special redox functions
2018-12-13 15:26:03 -07:00
Jeremy Soller
c6d42dd9e3
Use openlibm's fenv.h
2018-12-13 15:25:47 -07:00
Jeremy Soller
4e741f5583
Add redox_fpath function
2018-12-13 14:46:27 -07:00
Jeremy Soller
f7b3abc1b6
Add more wchar definitions
2018-12-13 08:11:49 -07:00
Jeremy Soller
90bf583d28
Better patch for missing M_PI constants
2018-12-09 14:43:23 -07:00
Jeremy Soller
ee40035c4b
Add asprintf
2018-12-09 12:45:04 -07:00
Jeremy Soller
8aae8e1564
Add PTE
...
Add sys_timeb header
2018-12-09 11:27:44 -07:00
Jeremy Soller
950b4526c7
- Disable output of empty header files
...
- Remove incorrect header styles
- Use export.replace where header style was previously needed
- Check compilation of tests using system gcc
2018-11-26 21:35:02 -07:00
Tibor Nagy
55eb8f2779
Implement alloca.h
2018-11-23 21:31:09 +01:00
Jeremy Soller
9790289aec
Add execlp
2018-11-22 20:43:04 -07:00
Jeremy Soller
3cc215caeb
Add freading, fwriting, and stdio_ext.h header
2018-11-22 19:24:48 -07:00
Jeremy Soller
44f84f406f
Force byte order to little endian, for gcc
2018-11-17 09:19:35 -07:00
Jeremy Soller
c6f2b30738
Add netdb bits to include hostent.h_addr
2018-11-17 08:16:37 -07:00
Jeremy Soller
740f57738c
Merge branch 'cpp-extern' into 'master'
...
Disable symbol mangling for C++
See merge request redox-os/relibc!173
2018-10-28 13:13:51 +00:00
Tibor Nagy
d4308c8a9b
Disable symbol mangling for C++
2018-10-28 13:24:34 +01:00
Tibor Nagy
e7f251fdb0
Fix assert when used as an expression
...
Based on what musl does.
2018-10-27 17:40:24 +02:00
jD91mZM2
b517629371
Fix timeradd
...
wow i am stupid for writing this code
2018-10-11 19:52:54 +02:00
Tibor Nagy
0f5fa8c9d4
Move regoff_t to regex.h
2018-10-09 16:43:34 +02:00
jD91mZM2
fba3bf5161
Merge branch 'assert' into 'master'
...
Make assert more hygienic
See merge request redox-os/relibc!166
2018-10-07 12:50:56 +00:00
jD91mZM2
0de7d30656
Fix S_IS*
...
For some reason, C handles `==` before `&`.
So `a & b == c` is the same thing as `a & (b == c)`.
2018-10-07 13:01:59 +02:00
jD91mZM2
418a960f3b
Implement realpath
2018-10-07 10:32:51 +02:00
jD91mZM2
9d56ce42c6
Implement timer* macros, and GNU's getopt_long
2018-10-06 16:46:35 +02:00
Tibor Nagy
614b2f5103
Make assert more hygienic
2018-10-06 14:55:06 +02:00
jD91mZM2
1acc2a1a32
Initial regex.h implementation
2018-10-05 18:07:43 +02:00
jD91mZM2
b22d386177
Re-add EOF to bits header
...
cbindgen can't handle negative numbers, see https://github.com/eqrion/cbindgen/issues/205
2018-09-29 20:02:37 +02:00
jD91mZM2
afc1ff134a
Rewrite IO to use core-io library
2018-09-26 16:13:09 +02:00
Jeremy Soller
b309cd832d
Add getopt and machine/endian.h
2018-09-24 14:45:36 -07:00
jD91mZM2
30d6f079c5
Add missing dirent macros ( fixes #129 )
2018-09-05 17:39:40 +02:00
Jeremy Soller
c25ce6a5f3
Include stddef.h in sys/types.h
2018-08-18 08:27:40 -06:00
Jeremy Soller
f1df1f9f0b
Fix issue with stdio.h bits file not having FILE defined
2018-08-18 08:22:16 -06:00