Commit Graph

21 Commits

Author SHA1 Message Date
Speedy_Lex 2d4ab41de5 Cargo fmt 2026-05-07 00:05:13 +02:00
Speedy_Lex eff610eac6 Fix many clippy lints 2026-05-07 00:05:07 +02:00
auronandace 1421463dac assorted cleanups and add some lints 2026-03-02 10:01:05 +00:00
auronandace 697bbc659e syslog and sys_select header cleanup 2026-03-01 16:30:29 +00:00
auronandace ff392a029a remove pthread_atfork from unistd and tackle some lints 2026-02-13 12:14:04 +00:00
auronandace a3c67e898d add unused_must_use lint 2026-02-11 09:48:47 +00:00
auronandace 11f28342f9 unused_imports redox follow-up 2026-02-10 16:29:37 +00:00
Jeremy Soller 89ab7a8fa2 Merge branch 'mismatched-lifetime-syntaxes' into 'master'
add mismatched_lifetime_syntaxes lint

See merge request redox-os/relibc!979
2026-02-10 06:02:01 -07:00
auronandace e951f0de76 verify syslog header includes 2026-02-09 19:09:24 +00:00
auronandace 9b39861779 add mismatched_lifetime_syntaxes lint 2026-02-08 21:45:15 +00:00
auronandace 64f18ca89a add unused_mut lint 2026-02-08 09:00:14 +00:00
auronandace 4927301713 fcntl and sys_syslog header cleanup 2026-02-02 08:53:28 +00:00
sourceturner defd2ce7c3 Deny deny-unsafe_op_in_unsafe_fn on the crate level 2026-01-21 00:41:57 +01:00
sourceturner 093b830148 Use unsafe blocks in syslog.h implementation 2026-01-18 21:18:45 +01:00
auronandace 4786080073 only import needed types in syslog 2025-12-23 09:23:46 +00:00
auronandace 321b65d7e1 Update and add spec links, correct typo 2025-12-23 09:21:28 +00:00
4lDO2 4855cf3875 Fix compilation on Linux. 2025-11-08 17:31:57 +01: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
Josh Megnauth e677ad55d5 Better priorities & LOG_UPTO for syslog.h
* Fix PERROR to match musl/glibc better
* More unit tests + enabled on Linux
* Pack priority and facility into one i32 and check the bits with
  bitflags
* Add LOG_UPTO (logic is straight from musl)

Not done:
* "%m" - this could just be added to printf
* LOG_CONS
2025-08-01 23:45:26 -04:00
Josh Megnauth 64d9847e37 Linux support for syslog.h
Linux's syslog is a local socket, so this uses the recent UDS work.

* Most of redox.rs is refactored into mod.rs now which has all of the C
  facing functions and consts.
* I wrapped the global logger in a Mutex instead of a RwLock. The logger
  is almost always locked for writing so a Mutex is simpler as RwLock
  provides no benefits.
* I implemented LOG_PERROR which also prints errors to stderr as well as
  the log.
* Syslog should be sys/syslog.h with syslog.h as an alias (the
  original code only had syslog.h).
2025-07-24 21:46:49 -04:00