Commit Graph

723 Commits

Author SHA1 Message Date
Jeremy Soller ba50c94c3f Improve TLS support 2019-04-13 21:15:01 -06:00
Jeremy Soller 63cb2f3454 ld.so: Add auxv support, get ld_library_path from env 2019-04-13 21:14:52 -06:00
Jeremy Soller 084b69b361 Add ld_so executable 2019-04-13 12:17:38 -06:00
Jeremy Soller d5eb1e2732 Add dl-tls.h, required for shared libraries 2019-04-12 09:30:02 -06: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
Jeremy Soller 73dda0f32c Add missing cast 2019-04-06 21:38:59 -06:00
Jeremy Soller f2b86e985c Ensure that getpeername and getsockname return a sockaddr of family AF_INET 2019-04-06 21:34:56 -06:00
Jeremy Soller 588f032f75 Rename can be done with O_PATH 2019-04-06 20:47:20 -06:00
Jeremy Soller 862c76b25f Correct error for unknown protocol type in socket 2019-04-01 20:35:15 -06:00
Jeremy Soller f4c036c3aa Fix returning incorrect ai_socktype from getaddrinfo 2019-04-01 20:34:53 -06:00
Jeremy Soller 42d40da973 Map stacks based on provided size. 2019-03-31 15:04:37 -06:00
Jeremy Soller 17372b4f69 Fix thread starting before pte_osThreadStart 2019-03-30 16:18:07 -06:00
jD91mZM2 3f98962054 Fix bug in scanf where EOF would be ignored 2019-03-28 17:57:13 +01:00
Jeremy Soller 6548aad36d Use next_byte function in all places in scanf 2019-03-27 21:32:02 -06:00
Jeremy Soller d13fb3f42b Fix panic in sigaction 2019-03-27 21:31:18 -06:00
Jeremy Soller bee72373be Fix panic not producing output 2019-03-27 21:28:39 -06:00
Jeremy Soller 5dca9843dc Fix use of trace macro when errno is imported 2019-03-27 20:57:12 -06:00
Jeremy Soller a88ec09131 Prevent override of panic from relibc 2019-03-27 20:56:23 -06:00
Mateusz Mikuła e01d1ce11b Fix usleep 2019-03-25 13:36:48 +01:00
Jeremy Soller cdbeda1ca0 Merge branch 'patch-2' into 'master'
Fix conditional compilation of sys/mman.h

See merge request redox-os/relibc!201
2019-03-05 02:08:01 +00:00
Robin Randhawa f9f752d74c aarch64-prep: Dummy auxv.h
For AArch64, the ring crate depends on the presence of this header and a definition
of getauxval.
2019-03-03 21:49:52 +00:00
Robin Randhawa 17bed54103 aarch64: Fix incorrect init/fini stack manipulation
The pre-index operator ('!') was missing at the end of the stp
instruction.

As a result, the stack pointer wasn't updated after the
store of the 64-bit pair and the stored values were basically lost when
follow on code used the stack for later store ops.
2019-03-03 21:49:46 +00:00
Angelo Bulfone 31fc29e70c Fix conditional compilation of sys/mman.h 2019-03-03 21:14:45 +00:00
lmiskiew 5eb2a8f7bd Implement swab 2019-02-28 08:23:11 +00:00
jD91mZM2 30a0f70d73 Merge branch 'wcsrchr' into 'master'
implements wcsrchr from wchar.h

See merge request redox-os/relibc!197
2019-02-28 08:21:55 +00:00
jD91mZM2 fe905ed13c Merge branch 'calloc_overflow_check' into 'master'
add calloc integer overflow check

See merge request redox-os/relibc!188
2019-02-28 08:20:11 +00:00
emturner 4ed6dca61d implements wcsrchr from wchar.h 2019-02-25 22:53:11 +00:00
Jeremy Soller f3ba7e8d8e Merge branch 'wcscspn' into 'master'
Implements wcscspn function from wchar.h

See merge request redox-os/relibc!196
2019-02-23 00:33:11 +00:00
emturner ec3488c7b0 implements wcscspn from wchar.h 2019-02-22 23:18:21 +00:00
Jeremy Soller 74d0b24939 Merge branch 'master' of https://gitlab.redox-os.org/redox-os/relibc 2019-02-21 19:43:07 -07:00
Jeremy Soller 5690c6dcdf Add trace for select and poll 2019-02-21 19:42:58 -07:00
Tibor Nagy 27a3f2ab77 unistd: Generate correct C defines for PATH_SEPARATOR 2019-02-20 22:11:25 +01:00
Tibor Nagy d38a1d0da3 ctype: Implement _tolower, _toupper 2019-02-20 11:49:06 +01:00
Jeremy Soller 73c368ddab Use correct open flags 2019-02-19 19:29:19 -07:00
Tibor Nagy 5fac72298f ctype: Fix iscntrl, isgraph, ispunct, make tests exhaustive
iscntrl: Didn't handle the EOF macro correctly
isgraph: Didn't handle '~' (tilde) correctly
ispunct: Several issues
2019-02-19 19:53:54 +01:00
Jeremy Soller 38da5552e8 getaddrinfo: support for setting port from service argument (numeric only) 2019-02-02 14:20:26 -07:00
Peter Limkilde Svendsen c54db6f008 Add integer overflow check to calloc 2019-02-02 15:52:39 +01:00
Jeremy Soller d2502056a8 Cleanup termios and ioctls and add tcflush 2019-01-27 19:19:50 -07:00
Jeremy Soller 602f015e93 Implement fpathconf and pathconf 2019-01-27 18:53:57 -07:00
Jeremy Soller 0dd801da03 Implement ttyname by adding fpath function to Sys. Remove realpath function and use fpath internally 2019-01-27 17:10:55 -07:00
Jeremy Soller 42f212e678 Verify current system before continuing. 2019-01-27 15:53:09 -07:00
Jeremy Soller 47235d44e7 Fix change of sockaddr member sa_data on Redox 2019-01-21 20:38:31 -07:00
Jeremy Soller c59f268fcd Implement getaddrinfo (somewhat) 2019-01-21 20:36:56 -07:00
Jeremy Soller f25c494a73 Show hint information 2019-01-20 20:12:58 -07:00
Jeremy Soller eaa031c21c Fix ioctl on redox 2019-01-18 15:39:49 -07:00
Jeremy Soller a88933386b Implement termios functions using ioctl 2019-01-17 20:46:12 -07:00
Jeremy Soller 047deceed0 Move hostent functions to separate file 2019-01-17 20:45:25 -07:00
Jeremy Soller d0261ebb35 Move db to crate root 2019-01-17 19:56:51 -07:00
Jeremy Soller 09340bd0f2 Add setpgrp 2019-01-15 21:14:55 -07:00
Jeremy Soller 22ca2e5f7b Export group struct 2019-01-15 21:08:08 -07:00