nicoan
495779a21b
format
2026-04-15 15:40:45 -03:00
nicoan
da3ff538d6
WIP: fixing regressions
2026-04-15 14:18:20 -03:00
Nicolás Antinori
89f53e7640
Using Reader (formerly LookAheadReader) in scanf/wscanf format string
2026-04-14 14:11:57 -06:00
Jeremy Soller
a820dd4d25
Merge branch 'printf-float-alternate-fix' into 'master'
...
printf: fix '%#.0e' to always print the radix character
See merge request redox-os/relibc!1177
2026-04-10 18:53:22 -06:00
Connor-GH
4a497bb263
printf: fix '%#.0e' to always print the radix character
...
Before, we were printing `'-4e+01'` from `printf("'%#.0e'\n", -42.0);`
Now we print `'-4.e+01'` as POSIX requires, and to pass a test in
os-test: https://doc.redox-os.org/test-results/os-test/os-test-20260410/html/stdio/printf-e-alt.c
2026-04-10 13:53:31 -05:00
Connor-GH
7ec3e239b5
printf: ignore zero flag on some conversions if precision is specified.
2026-04-10 11:19:55 -05:00
auronandace
b4009544a8
minor code cleanups
2026-04-03 14:39:56 +01:00
Peter Limkilde Svendsen
55f9c611b2
Fix most rustdoc warnings
2026-04-02 00:43:20 +02:00
auronandace
1764004b80
move stdio bits to cbindgen
2026-03-31 08:53:10 +01:00
auronandace
904604020b
eliminate more range loops
2026-03-16 08:26:05 +00:00
auronandace
bd4fb1f660
fix a rust lint and a clippy lint
2026-03-10 12:11:03 +00:00
Wildan M
b93e24b1d6
Implement long double in printf
2026-03-04 22:03:31 +07:00
auronandace
b44bf78793
stdlib and stdio header cleanup
2026-02-28 19:01:06 +00:00
auronandace
cefb9cccb9
stdio header cleanup
2026-02-24 19:45:09 +00:00
auronandace
768e28cb4e
stdio and c_vec cleanup
2026-02-20 14:10:34 +00:00
auronandace
a3c67e898d
add unused_must_use lint
2026-02-11 09:48:47 +00:00
auronandace
7d1582a555
add unused_imports lint
2026-02-10 15:55:32 +00:00
auronandace
9b39861779
add mismatched_lifetime_syntaxes lint
2026-02-08 21:45:15 +00:00
auronandace
c3f3e051e1
add unused-unsafe lint
2026-02-08 15:39:48 +00:00
auronandace
64f18ca89a
add unused_mut lint
2026-02-08 09:00:14 +00:00
auronandace
f8d9ef6e43
stdio header cleanup
2026-02-03 21:11:47 +00:00
Wildan M
f15322453b
Convert all println to log or todo
2026-01-25 05:27:38 +07:00
sourceturner
defd2ce7c3
Deny deny-unsafe_op_in_unsafe_fn on the crate level
2026-01-21 00:41:57 +01:00
Anhad Singh
c05e2da5b3
misc(all): formatting
...
Signed-off-by: Anhad Singh andypython@protonmail.com
2026-01-19 09:03:44 +00:00
Akshit Gaur
1273868a3c
stdio: Fix printf-g-hash test
2026-01-17 12:18:22 +05:30
sourceturner
b3f7db83cf
Use unsafe blocks in stdio.h implementation
2026-01-16 21:49:01 +00:00
Wildan M
6ef56f5bc9
Use pthread recursive mutex for flockfile
2026-01-07 00:54:20 +07:00
Jeremy Soller
fbf280c3d7
Fix padding of infinite float
2025-12-24 20:32:54 -07:00
Jeremy Soller
f3afff08de
Adjust ftell for write buffer
2025-12-24 20:13:13 -07:00
auronandace
95f7a12b8b
only import needed types
2025-12-16 16:46:05 +00:00
auronandace
887a53c1b2
update and add spec links
2025-12-16 16:42:08 +00:00
Connor-GH
1b86d87475
printf: use None if precision given in the next argument is negative
2025-12-07 10:16:33 -06:00
Josh Megnauth
f5d432644f
Implement renameat, renameat2
...
Like the other "at" functions, renameat renames files with respect with
a directory descriptor. "renameat2" is Linux specific but really nice -
it adds a flag which supports atomically swapping two files or failing
if the target already exists. The latter is easily supported in relibc.
The former requires redoxfs support.
Besides the impl itself, I refactored "cap_path_at" into what it really
is: a mini openat2-like function.
2025-10-21 14:47:39 -04:00
4lDO2
1c5732ba36
Share almost all code between printf and wprintf.
2025-10-07 15:58:34 +02:00
4lDO2
96917f519e
Reuse PrintfIter for both printf and wprintf.
2025-10-06 16:16:48 +02:00
4lDO2
6dc2606886
Expand CStr to make PrintfIter fully safe.
2025-10-06 16:16:48 +02:00
Jeremy Soller
82084440ad
Support nightly-2025-10-03
2025-10-03 21:51:10 -06:00
Jeremy Soller
6110a77044
Merge branch 'cstr_strchr' into 'master'
...
Add safe strchr method for CStr.
See merge request redox-os/relibc!723
2025-09-21 10:35:10 -06:00
4lDO2
9aeb9abd97
Add safe strchr method for CStr.
2025-09-21 17:00:45 +02:00
Jeremy Soller
38d667a58e
Merge branch 'printf-use-float-abs' into 'master'
...
printf: Use f64::abs
See merge request redox-os/relibc!639
2025-09-21 08:17:46 -06:00
Jacob Lorentzon
9c5f11fbc8
Add Out<T> wrapper
2025-09-21 14:36:12 +02:00
Josh Megnauth
1a2c8175d4
printf: Use f64::abs
2025-09-21 06:52:59 +00:00
Josh Megnauth
728fb55203
Add %m to printf & fix CI
...
%m is a format specifier that prints an error string for errno. The
specifier is technically only for syslog, but musl and glibc implement
it for printf itself. Parsing for a single specifier in a single
function is error prone, especially when syslog itself is variadic.
2025-08-06 02:38:47 -04:00
Bendeguz Pisch
4fc80ea7b0
Implement syslog functionality
2025-07-17 22:49:51 -06:00
Jeremy Soller
bb105d41ad
scanf: fix parsing 0 when using %i
2025-05-03 21:15:58 -06:00
Jeremy Soller
121e733990
Merge branch 'fix_arm64' into 'master'
...
Fix building for arm64
See merge request redox-os/relibc!636
2025-03-30 16:26:41 +00:00
bjorn3
8650ac293e
Fix building on targets with unsigned c_char
2025-03-30 16:35:29 +02:00
GrayJack
c7d94ae4d7
feat(c23): Implement %b and %B format
2025-03-22 20:15:56 -03:00
GrayJack
0a1ea4d57e
docs: Add documentation of the printf format
2025-03-20 19:46:46 -03:00
Josh Megnauth
51c04d2470
Use C string literals & deprecate c_str!
2025-03-14 21:17:53 -04:00