Commit Graph

2628 Commits

Author SHA1 Message Date
Peter Limkilde Svendsen 0f0bc8fc5e Formatting 2025-02-02 22:42:05 +01:00
Peter Limkilde Svendsen 3f88c9042d Add missing function stubs 2025-02-02 22:41:45 +01:00
Peter Limkilde Svendsen b0c6991f57 Reorder alphabetically 2025-02-02 22:28:32 +01:00
Peter Limkilde Svendsen ef6b64a7c2 Doc and pub use for strptime 2025-02-02 22:22:39 +01:00
Peter Limkilde Svendsen ee4f346ef0 Add docs and deprecations for time.h 2025-02-02 22:19:57 +01:00
Jeremy Soller 1972a5f44c Merge branch 'unistd-docs' into 'master'
Add docs for unistd.h

See merge request redox-os/relibc!608
2025-02-02 15:28:29 +00:00
Peter Limkilde Svendsen 85f01e8412 Add stubs for missing functions 2025-02-01 18:36:07 +01:00
Peter Limkilde Svendsen 26fdc200bf Add docs for unistd submodules 2025-02-01 18:07:51 +01:00
Peter Limkilde Svendsen 99e0948e0c Reexport ctermid, cuserid 2025-02-01 18:07:23 +01:00
Peter Limkilde Svendsen 5116c80d2f Reorder functions alphabetically 2025-02-01 17:34:20 +01:00
Peter Limkilde Svendsen bfde89c7cc Add docs and deprecations for unistd.h 2025-02-01 17:23:36 +01:00
Jeremy Soller e7a24b3f7f Merge branch 'sleep-intr' into 'master'
Make nanosleep and sleep handle interrupts correctly, plus fix alarm

See merge request redox-os/relibc!605
2025-01-31 21:10:15 +00:00
Ron Williams c528c0885f Make nanosleep and sleep handle interrupts correctly, plus fix alarm 2025-01-31 21:10:14 +00:00
Jeremy Soller 1871e8b08b Merge branch 'arpa-inet-docs' into 'master'
Add docs for arpa/inet.h, allow testing deprecated functions

See merge request redox-os/relibc!607
2025-01-31 21:09:42 +00:00
Jeremy Soller 4012354154 Merge branch 'dirent-docs' into 'master'
Add docs for dirent.h

See merge request redox-os/relibc!606
2025-01-31 21:09:21 +00:00
Peter Limkilde Svendsen b441916279 Add docs for dirent.h 2025-01-31 21:09:21 +00:00
Peter Limkilde Svendsen 38d22bd735 Suppress warnings about deprecated declarations in C 2025-01-30 21:41:52 +01:00
Peter Limkilde Svendsen a285728610 Formatting 2025-01-30 21:35:43 +01:00
Peter Limkilde Svendsen f4c75e99cd Align function parameter names and types with POSIX 2025-01-30 21:35:11 +01:00
Peter Limkilde Svendsen b36ae4cab5 Reorder functions alphabetically 2025-01-30 21:23:54 +01:00
Peter Limkilde Svendsen 5ec734a672 Add docstrings and deprecations for arpa/inet.h 2025-01-30 21:19:20 +01:00
Jeremy Soller 9c57e263c4 Merge branch 'fix-199-interpreter-args' into 'master'
Support arguments in shebang (#!)

Closes #199

See merge request redox-os/relibc!603
2025-01-25 00:08:21 +00:00
Josh Megnauth c458d3d7a2 Support arguments in shebang (#!) 2025-01-25 00:08:20 +00:00
Jeremy Soller aa7c438ebe Merge branch 'patch5' into 'master'
fix(ld.so): properly do copy relocations

See merge request redox-os/relibc!604
2025-01-18 13:17:38 +00:00
Anhad Singh d3073fdad4 feat(ld.so): more debug info for scopes
When scopes is set for `LD_DEBUG`, more debug information is displayed
now,

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-19 00:11:51 +11:00
Anhad Singh 99449094d4 chore: formatting
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-19 00:03:07 +11:00
Anhad Singh 4a08220664 fix(ld.so): copy relocations
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-18 23:51:53 +11:00
Anhad Singh e3dc5d0617 chore(dso): remove unused members
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-18 21:20:10 +11:00
Jeremy Soller 76014e8271 Merge branch 'patch5' into 'master'
feat(ld.so): add support for DT_RELR

See merge request redox-os/relibc!602
2025-01-15 13:52:06 +00:00
Anhad Singh 3440985729 fix(dso): 32-bit
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-15 21:32:40 +11:00
Anhad Singh a631703837 cleanup(makefile): unify rule for libc.so
Does the same thing.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-15 19:16:37 +11:00
Anhad Singh cf21cf24fc feat(libc.so): link flags
* -z pack-relative-relocs
* --sort-common
* --gc-sections

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-15 13:49:28 +11:00
Anhad Singh 07ff79069e feat(ld.so): add support for DT_RELR
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-15 13:49:27 +11:00
Jeremy Soller a3c12e27e4 Fix build for i686 2025-01-14 18:01:26 -07:00
Jeremy Soller b011dbe366 Merge branch 'master' of https://gitlab.redox-os.org/redox-os/relibc 2025-01-14 12:24:38 -07:00
Jeremy Soller 5a69226af6 Fix compilation with new nightly 2025-01-14 12:24:33 -07:00
Jeremy Soller f4fff7448e Merge branch 'patch5' into 'master'
fix(ld.so): less locks

See merge request redox-os/relibc!601
2025-01-13 22:23:41 +00:00
Jeremy Soller f9590c4b17 Update rust-toolchain 2025-01-13 14:33:43 -07:00
Anhad Singh b9e0505715 fix(ld.so): less locks
Acquire the global scope lock at the start of relocate.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-13 23:48:03 +11:00
Jeremy Soller 90f30c5f51 Make NulTerminated::new return option 2025-01-09 13:33:56 -07:00
Jeremy Soller af50d18d16 Return error instead of panic when load_library cannot find root DSO 2025-01-09 13:33:29 -07:00
Jeremy Soller 02520b194e Fix compilation with trace feature 2025-01-09 12:23:23 -07:00
Jeremy Soller 01d7f7b44a Fixup last commit 2025-01-09 10:22:28 -07:00
Jeremy Soller 431d55aa24 Add setlinebuf 2025-01-09 10:21:17 -07:00
Jeremy Soller 77d96541d9 Merge branch 'langinfo' into 'master'
Implement 'langinfo.h' and refactor strftime() to use langinfo constants

See merge request redox-os/relibc!599
2025-01-08 21:31:46 +00:00
Jeremy Soller a7b608260a Merge branch 'patch5' into 'master'
feat(ld.so): performance improvements

See merge request redox-os/relibc!600
2025-01-08 14:44:34 +00:00
Anhad Singh aae27c5e0c feat(ld.so): switch to object crate
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-08 16:50:47 +11:00
Anhad Singh e49072655c feat(ld.so): partially switch to object
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-08 16:50:10 +11:00
Anhad Singh e219f9768e feat(ld.so): GNU hash table
Note that the ELF specification mandates the presence of either the GNU
hash table or SysV hash table. See Figure 2-7. Dynamic Array Tags.

Also both can be present, though that is not currently handled.

BLAZINGLY FAST!

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-08 16:48:26 +11:00
Guillaume Gielly 420a902e2b Readd item constants... 2025-01-07 13:55:54 +01:00