Repository navigation
feat(libc): implement syslog and vsyslog - #1729
Merged
Merged
Conversation
This was referenced Oct 8, 2026
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
|
This was referenced Oct 8, 2026
9 tasks done
9 tasks done
johnmaia
force-pushed
the
feat/libc-syslog
branch
from
October 8, 2026 19:26
39b8221 to
bbdae33
Compare
This was referenced Oct 8, 2026
This was referenced Oct 8, 2026
This was referenced Oct 9, 2026
8 of 9 tasks
johnmaia
force-pushed
the
feat/libc-syslog
branch
from
October 9, 2026 08:35
bbdae33 to
aac2ca1
Compare
This was referenced Oct 9, 2026
johnmaia
force-pushed
the
feat/libc-syslog
branch
from
October 9, 2026 09:55
aac2ca1 to
2449220
Compare
ps5-opengl (PPSA99005) and ProsperoRadio (PPSA99001) import syslog from libSceLibcInternal. Messages go to stderr with the priority, and the format follows FreeBSD's vsyslog: %m expansion, masking of unknown priority bits, LOG_USER as the default facility, errno preserved. Assisted by Claude Code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FreeBSD vsyslog logs the complaint with LOG_ERR|LOG_CONS|LOG_PERROR|LOG_PID passed as the priority (0x23), not LOG_ERR. Co-Authored-By: Claude <noreply@anthropic.com>
adriadam10
force-pushed
the
feat/libc-syslog
branch
from
October 9, 2026 21:28
2449220 to
9d1ac90
Compare
Collaborator
|
Checked build + full ctest on Linux ( One fix added as a separate commit on your branch:
Not verified here: Windows runtime of the formatting path and any title. Merging once CI is green. |
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Implements
syslog(NIDs-e0hFe21FA) andvsyslog(NIDrzvf5zicF88) in libc. Two of the homebrew titles in #1578 importsyslogfrom libSceLibcInternal, which resolves through libc: ps5-opengl (PPSA99005) and ProsperoRadio (PPSA99001).stderras[syslog:<priority>] <message>, under a lock and flushed, with a newline added when the message has none. This is the same conventionsceKernelDebugOutTextuses ([debug:<channel>]).vsyslog:%mexpands to the guest errno's message (FreeBSD numbering viastrerror_r), with any%in it doubled, and%%mstays a literal%m.LOG_PRIMASK | LOG_FACMASKproducesyslog: unknown facility/priority: <hex>and are then masked off.LOG_USER.vfprintf: SysVva_liston Linux andLibcDetail::FormatWindowson Windows.stderrinstead of the console's system log, andopenlog,setlogmaskandcloselogare not implemented, so identity, options and mask are not applied. Neither title imports them.Tested
New
guest_syslogtest, registered in ctest. It capturesstderrand checks the exact output for:%mwith errno 2, a literal%%mand%%;0x10004, the warning line followed by the masked message);It also checks that errno is unchanged.
Linux (Ubuntu 24.04.5, GCC 13.3) and Windows 11 (WinLibs GCC 15.2.0 r7):
guest_syslog,guest_errors,guest_formattingandguest_filesystempass.No title was run: both titles still have other missing imports listed in Four open-source homebrew titles stop at start-up on unresolved imports (sysctl, pthread_set_name_np, isatty, mkstemp, signal sets, Opus decoders) #1578.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code