- Jun 14, 2020
-
-
Ahmed Abd El Mawgood authored
This was triggered by gcc for some reason It included sys/types.h and assumed sys/select.h to be there. And that seams to be the case in musl. The problem with relibc here is that sys/types.h is are part of relibc "include/*.h" files, while sys/select.h is generated by cbindgen. That makes it impossible to #include select.h in types.h epsecially that there are files like fcntl.c that uses types.h. They would complain about missing headers. I fixed this by renaming sys/types.h to sys/types_internal.h and then generating types.h using cbindgen as well except for that. however fcntl and dlmalloc can include types_internal instead of types.h
-
Ahmed Abd El Mawgood authored
The problem here is that _Bool type is not defined in C++ yet this file is using it. That leads to issues when compiling gcc. I borrowed the same techniques used in other stdbool.h
-
- Jun 10, 2020
-
-
Jeremy Soller authored
-
- Jun 07, 2020
-
-
Jeremy Soller authored
-
Jeremy Soller authored
netdb: implement getnetbynane and getnetent See merge request redox-os/relibc!278
-
Giuseppe Longo authored
This patch implements getnetbyname and getnetent functions.
-
Jeremy Soller authored
- Jun 06, 2020
-
-
Jeremy Soller authored
Scanf See merge request redox-os/relibc!277
-
- Jun 03, 2020
-
-
Ahmed Abd El Mawgood authored
-
Ahmed Abd El Mawgood authored
This is the behavior of glibc which I assume to be right
-
Ahmed Abd El Mawgood authored
-
Ahmed Abd El Mawgood authored
-
Ahmed Abd El Mawgood authored
The LookAheadReader api works similar to read but it has 2 methods, lookahead: it will read 1 byte (with internal ftell) without modifying the file's own ftell() and commit() which saves the current file ftell LookAheadReader can wrap both buffers and files
-
Ahmed Abd El Mawgood authored
-
Ahmed Abd El Mawgood authored
-
- Jun 02, 2020
-
-
Jeremy Soller authored
FIX error: right operand of shift expression '(1 << BLA)' is greater than or... See merge request redox-os/relibc!276
-
FIX error: right operand of shift expression '(1 << BLA)' is greater than or equal to the precision BLA of the left operand [-fpermissive]
-
Jeremy Soller authored
-
Jeremy Soller authored
-
- Jun 01, 2020
-
-
Jeremy Soller authored
Ld library path See merge request redox-os/relibc!275
-
Ahmed Abd El Mawgood authored
During early parts of ld.so, errno and other thread local variables are not yet initialized so we cannot use function (such as unistd::access) that depends on such thread local variables (errno). For this reason this patch creates small wrapper around the syscall that doesn't not touch the errno
-
Ahmed Abd El Mawgood authored
Current LD_LIBRARY_PATH implementation overwrites the original search path, which is not the best idea, instead this patch would check LD_LIBRARY_PATH first and if it didn't find the libraries it is looking for, then it will search the original search path
-
- May 28, 2020
-
-
Jeremy Soller authored
-
Jeremy Soller authored
-
Jeremy Soller authored
-
- May 24, 2020
-
-
Jeremy Soller authored
Don't accept null pointer in tests when requesting aligned memory See merge request redox-os/relibc!272
-
Jeremy Soller authored
Minor fixes to posix_memalign() See merge request redox-os/relibc!271
-
Peter Limkilde Svendsen authored
-
Peter Limkilde Svendsen authored
-
Peter Limkilde Svendsen authored
-
- May 23, 2020
-
-
Jeremy Soller authored
Gcc regressions See merge request redox-os/relibc!270
-
Ahmed Abd El Mawgood authored
-
Ahmed Abd El Mawgood authored
as it seams you can do something like printf ("A%*s%s/\n", -5, "B", "CC"); and it will print the padding to the left
-
Ahmed Abd El Mawgood authored
-
Ahmed Abd El Mawgood authored
Scanf function requires look ahead to function properly, In case of scanning from a buffer that will not be an issue, but in our case we are reading from file, so lookaheads needs to be undone (via lseek) in our case. The only problem here is that if we opened a file that doesn't support lseek such as many of the file /dev/*
-
Ahmed Abd El Mawgood authored
-
Ahmed Abd El Mawgood authored
At least in relibc, each call to ungetc should decrement ftell() by one also allowing negative ftell() this is not possible on relibc thus gcc failing to compile (gcc compiles tools that is later used to compile gcc itself and these tools are the ones that fail)
-
Ahmed Abd El Mawgood authored
-