Files
xserver/os
b-aaz a5f87f20b2 os: Cleaned up the log functions and handled return values.
The old function used int for write() return values, that could overflow.
And the return values of the write calls were discarded and not checked.

Now if the write() to the log file fails, a warning will be logged to
stderr and the log message will be appended after the warning.

If writes to stderr fail, a warning will be logged to stdout and the log
message will be appended after the warning.

If writes to stdout fail, we can't really do anything else and will
continue on silently.

Also used the length returned by strftime for the next write call to
eliminate an extra use of strlen.

The -1 was also removed from the buflen argument of strftime because it
was unnecessary.

Did some small formatting changes too.

Signed-off-by: b-aaz <b-aazbsd@proton.me>
2025-12-19 12:21:44 +01:00
..
2025-12-13 15:59:07 +01:00
2025-09-29 10:53:15 +02:00
2025-09-22 12:00:14 +02:00
2024-10-10 13:38:31 +00:00
2025-07-18 22:24:55 +02:00
2025-12-13 15:59:07 +01:00
2025-06-12 17:21:44 +02:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2025-06-12 17:21:44 +02:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2025-06-12 16:49:45 +02:00
2025-12-13 15:59:07 +01:00
2025-12-13 15:59:07 +01:00
2025-12-13 15:59:07 +01:00
2025-12-13 15:59:07 +01:00
2025-12-13 15:59:07 +01:00