feat(libc): implement gethostname #1594
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1594"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T14:00:19Z.
What
Implement
gethostnameusing the host DNS hostname on Windows and the POSIX host call elsewhere. Stage the value before copying so a short guest buffer receivesENAMETOOLONGwithout partial output. Add success and error-path coverage.Tested
Linux, GCC 12.2.0:
guest_environmentpassed; conventions check andgit diff --checkpassed. Windows behavior was reviewed against the platform API but was not run locally.Checklist
main; no open PR implementsgethostnameImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T19:20:15Z.
No title reaches
gethostnameon main yet, and this would hand the host's machine name to the guest. Closing for now; reopen when a title stops on it, with the log line.Pull request closed