Daniel Hofstetter
6510115d9e
Merge pull request #5680 from tertsdiepraam/fsext-refactor
...
Fsext refactor
2023-12-21 15:55:30 +01:00
Terts Diepraam
f90713278f
uucore/fsext: do not use dangerous macro for nul terminated UTF16 strings
2023-12-20 15:27:51 +01:00
Terts Diepraam
cc15876bb7
uucore/fsext: merge some windows imports
2023-12-20 15:27:51 +01:00
Terts Diepraam
d4a9d63ea2
uucore/fsext: refactor MountInfo construction
2023-12-20 15:27:51 +01:00
Laurent Cheylus
b9d4f97e6d
uucore: remove useless conversion for features/fs on OpenBSD
...
- src/uucore/src/lib/features/fs.rs: in inode function, remove useless
conversion for target_OS = OpenBSD
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2023-12-19 12:13:20 +01:00
Laurent Cheylus
e6d12732f5
uucore: disable utmpx feature on OpenBSD
...
- See issue uutils/coreutils#5596 for details
2023-12-11 18:23:35 +01:00
Ian Douglas Scott
db91e12a1d
Fix build on Redox, and add stat
to Redox feature
2023-12-11 04:38:17 -08:00
Sylvestre Ledru
fe730f8a49
Merge pull request #5611 from sylvestre/dirdb
...
dircolors: Move the static long string into structures.
2023-12-07 09:58:55 +01:00
Sylvestre Ledru
1c9413e185
bring back the old format
2023-12-04 22:51:08 +01:00
Sylvestre Ledru
3e35410907
dircolors: fix comments
2023-12-04 22:47:42 +01:00
Sylvestre Ledru
f5776bc511
fix comment
...
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2023-12-04 22:40:18 +01:00
Sylvestre Ledru
1a4ca7e65d
fix clippy warnings
2023-12-02 15:19:37 +01:00
Sylvestre Ledru
5d19f79cd0
dircolors should use the datastructures when printing
2023-12-02 15:04:39 +01:00
Sylvestre Ledru
0e8c171c80
dircolors: move the FILE_ATTRIBUTE_CODES datastructures and use it
2023-12-02 11:03:51 +01:00
Sylvestre Ledru
13a4c9114c
create datastructures for colors
2023-12-02 10:29:02 +01:00
Laurent Cheylus
420df3db3d
Add support in uucore for OpenBSD
...
- uucore/src/lib/features/fs.rs: add target_os = OpenBSD when needed
- uucore/src/lib/features/fsext.rs: implement FsUsage::new for OpenBSD
- fixes uutils/coreutils#5448
- initial code by n1000 https://github.com/n1000/coreutils/tree/openbsd_compile_fixes
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2023-11-29 17:44:50 +01:00
Sylvestre Ledru
3cadeb734d
Merge pull request #5561 from tertsdiepraam/fixup-macros
...
all: reduce imports needed for `show` and `show_if_err` macros
2023-11-29 15:10:59 +01:00
Sylvestre Ledru
14a8e8a452
Merge pull request #5128 from tertsdiepraam/printf-rewrite
...
`printf` rewrite (with a lot of `seq` changes)
2023-11-28 07:52:58 +01:00
Terts Diepraam
8eb66ab7ea
printf: remove whitespace, remove redundant spelling ignore and revert matching on result
2023-11-27 11:53:26 +01:00
zoze0
550f3b0c48
uucore: add support for loongarch64 ( #5574 )
...
* uucore: add support for loongarch64
* add loongarch
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2023-11-23 17:41:11 +01:00
Terts Diepraam
e95add7940
uucore/format: fix license headers and improve docs
2023-11-22 14:06:03 +01:00
renovate[bot]
3425ee8d59
fix(deps): update rust crate data-encoding-macro to 0.1.14
2023-11-22 06:09:44 +00:00
renovate[bot]
18b5c22567
fix(deps): update rust crate data-encoding to 2.5
2023-11-21 22:24:11 +00:00
Terts Diepraam
da7c168f9d
all: reduce imports needed for show and show_if_err macros
2023-11-21 12:49:07 +01:00
Terts Diepraam
5c04283d6e
printf: address fmt, clippy, spelling and failing test
2023-11-21 00:42:02 +01:00
Terts Diepraam
6d2698b802
Merge branch 'main' into printf-rewrite
2023-11-20 13:53:11 +01:00
Terts Diepraam
68d036c9a2
printf: basic support for unicode escape sequences
2023-11-20 13:45:02 +01:00
Terts Diepraam
066d8ba73d
printf: coerce missing and invalid arguments to 0
2023-11-20 13:25:20 +01:00
Terts Diepraam
c43ee01d19
printf: allow precision in string
2023-11-20 12:38:26 +01:00
Terts Diepraam
5f2374b339
printf: fix negative hex argument parsing
2023-11-17 14:57:09 +01:00
Terts Diepraam
955640aac8
printf: fix and test float formatting
2023-11-17 14:46:38 +01:00
Terts Diepraam
76eca8d999
uucore/format: fix doctests
2023-11-17 14:43:25 +01:00
Terts Diepraam
f3da0817a5
printf: support precision for integers
2023-11-17 14:42:52 +01:00
Terts Diepraam
f83e0d1b04
printf: accept multiple length parameters
2023-11-17 14:41:42 +01:00
Terts Diepraam
cd0c24af07
printf: implement %b
2023-11-17 14:41:14 +01:00
Terts Diepraam
a45ff8ca73
printf: more flexible parsing of unparsed arguments
2023-11-17 14:39:39 +01:00
Terts Diepraam
eaf5006379
printf: parse arguments and handle escape codes
2023-11-16 17:00:41 +01:00
Terts Diepraam
e7d58f673f
seq: simplify and use new printf implementation
2023-11-16 14:29:49 +01:00
ALXD
b3eae16fad
printf: intf: change warning and exit code
2023-11-15 17:50:34 +01:00
Sylvestre Ledru
ff92bfb25b
Prepare version 0.0.23
2023-11-13 22:02:01 +01:00
Terts Diepraam
6481d63ea4
uucore/format: implement single specifier formats
2023-11-13 15:22:49 +01:00
Terts Diepraam
39c6758475
uucore/format: move types for num_format
2023-11-09 16:05:11 +01:00
Terts Diepraam
198f7c7f26
printf: move number formatting to separate module
2023-11-09 15:48:26 +01:00
Zhuoxun Yang
e3ec12233b
printf: support %q
2023-11-09 10:17:44 +08:00
Brandon Elam Barker
44d105d015
Add support in uucore for illumos and solaris ( #5489 )
...
* uucore support for illumos and solaris
* use macro to consolidate illumos and solaris signals
* fixing some CI issues
* replaced macro with better cfg usage
2023-11-04 12:31:11 +01:00
Terts Diepraam
f117fc1bab
printf rewrite: fix compilation
2023-10-28 17:36:43 +02:00
Terts Diepraam
28810906a3
Merge branch 'main' into printf-rewrite
2023-10-28 16:35:58 +02:00
Daniel Hofstetter
9f63ae6645
fsext: add getmntinfo to spell-checker:ignore
2023-10-27 14:25:41 +02:00
Konstantin Belousov
11f56a79af
freebsd: fix the 'df' command
...
df, and perhaps other commands, get the list of the mounted filesystems
with the call to getmntinfo(3). Since Rust still use FreeBSD 11.x ABI
for filesystem metadata call, it should use matching versioned symbol for
getmntinfo from libc.
2023-10-27 12:38:20 +03:00
Sylvestre Ledru
4573eb693f
Merge pull request #5357 from zhitkoff/issue5334-uucore-parse-r-q
...
Implement SI prefixes R and Q
2023-10-18 18:55:17 +02:00