Adrià
b00235dda0
Merge pull request #8439 from xXPBSXx/fix/mmap-anonymous-flags
...
fix(libkernel): accept MAP_ANON without MAP_PRIVATE and refuse MAP_SHARED with MAP_PRIVATE
2026-10-21 20:16:10 +02:00
Adrià
b4d10586ef
Merge pull request #8411 from xXPBSXx/fix/sigaction-reject-undefined-flags
...
fix(libkernel): reject undefined sa_flags in sigaction with EINVAL
2026-10-21 20:10:35 +02:00
Adrià
8e72738df6
Merge pull request #8437 from xXPBSXx/fix/mprotect-ignore-undefined-bits
...
fix(libkernel): drop undefined protection bits in mprotect
2026-10-21 20:08:57 +02:00
Adrià
e09b022ea9
Merge pull request #8407 from xXPBSXx/fix/sigprocmask-never-block-kill-stop
...
fix(libkernel): never block SIGKILL and SIGSTOP in sigprocmask and sigsuspend
2026-10-21 20:08:51 +02:00
Adrià
0b117a8bfc
Merge pull request #8392 from xXPBSXx/fix/socket-argument-order-fb
...
fix(libkernel): check socket address arguments before the descriptor
2026-10-21 20:05:37 +02:00
Adrià
606297f34f
Merge pull request #8474 from xXPBSXx/fix/recv-msg-waitall
...
feat(libkernel): accept MSG_WAITALL in recv, recvfrom and recvmsg on a stream socket
2026-10-21 20:00:45 +02:00
Dean
cecb540a63
Merge pull request #2528 from FitzVB/fix/libkernel-sync-on-address-buckets
...
perf(libkernel): shard SyncOnAddress waiters across hashed buckets
2026-10-22 03:39:41 +13:00
Adrià
f90a3f7297
Merge pull request #8523 from MarrasFederico/feat/kqueue-read-on-kqueue
...
feat(libkernel): watch a kqueue with EVFILT_READ
2026-10-21 16:03:30 +02:00
Adrià
5faed506a5
Merge pull request #8428 from hypermoist/feat/libkernel-pthread-cleanup-push
...
feat(libkernel): implement pthread_cleanup_push and pthread_cleanup_pop
2026-10-21 15:32:45 +02:00
Adrià
1ae3f38d9e
Merge pull request #8400 from slider/feat/libkernel-mutex-np
...
feat(libkernel): add mutex ownership, relative lock and spin/yield accessors
2026-10-21 15:32:34 +02:00
Dean
1d2f8cfe0e
Merge pull request #8859 from hypermoist/feat/libc-c11-thread-forwards
...
feat(libc): forward the C11 thread and TSS calls to libkernel
2026-10-22 01:54:23 +13:00
Adrià
e335d5b5ba
Merge pull request #7974 from DavidSamir/feat/libkernel-file-mmap-macos
...
feat(libkernel): map files through the guest's mmap on macOS hosts
2026-10-21 13:46:41 +02:00
Adrià
de4ef842b5
Merge pull request #7850 from mugurc/feat/libkernel-sockets-macos
...
feat(libkernel): UDP sockets and name resolution on macOS hosts
2026-10-21 13:36:21 +02:00
Federico Marras
cc7b9a7652
Merge remote-tracking branch 'upstream/main' into feat/kqueue-read-on-kqueue
...
# Conflicts:
# docs/dev/debt/libkernel.md
2026-10-21 13:17:12 +02:00
Dean
3e91c8edf5
Merge pull request #8850 from UnhealthyKraken/feat/libkernel-cfsetspeed
...
feat(libkernel): implement cfsetspeed
2026-10-22 00:13:16 +13:00
Dean Galvin and Aryan Sharma
c54d294a05
Merge origin/main into PR 2528
...
Co-authored-by: Aryan Sharma <aryan152015@gmail.com >
2026-10-21 23:12:54 +13:00
Dean
ee676246cf
Merge pull request #6519 from Get-fix/ps4/kernel-system-module-path
...
feat(libkernel): load system libraries from their console paths
2026-10-21 23:07:21 +13:00
Dean
e6ebe8a8b7
Merge pull request #8857 from Dripl1x/perf/direct-memory-section-pool
...
perf(libkernel): reuse released direct-memory sections that never held data
2026-10-21 22:20:39 +13:00
Dean Galvin
0f7241f3a7
Merge origin/main into PR 6519
2026-10-21 21:35:27 +13:00
Sebastian and Claude Opus 5.5
74bd5d9fa5
feat(libkernel): add mutex ownership, relative lock and spin/yield accessors
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01QnkpF2oEMofseVz9Z7WEAC
2026-10-21 08:00:19 +00:00
Dean
ef1f41c4c9
Merge pull request #8061 from Dragost/fix/libkernel-pthread-yield-busy-spin
...
fix(libkernel): prevent 100% CPU busy-spinning on pthread yield on Windows
2026-10-21 20:57:20 +13:00
Dean
8425543705
Merge pull request #8655 from cadenasynyster/fix/win-open-loop-inside
...
fix(libkernel): report ELOOP for a path below a Windows symlink loop
2026-10-21 20:57:12 +13:00
Dragost
2716dee730
fix(libkernel): prevent 100% CPU busy-spinning on pthread yield on Windows
2026-10-21 09:30:27 +02:00
Dean
9be6ccf60c
Merge pull request #8255 from Nixitov/feat/process-abi-type
...
feat(libkernel): declare sceKernelGetProcessAbiType
2026-10-21 20:20:37 +13:00
Nixitov
4d83fece6d
feat(libkernel): declare sceKernelGetProcessAbiType
...
AI-assisted: yes
2026-10-21 09:01:22 +02:00
Dean
5b5d2a8636
Merge pull request #8626 from xXPBSXx/carry/6226-relinker-stem
...
fix(libc): find a relinked module by stem when the exact name misses (carries #6226 )
2026-10-21 19:52:46 +13:00
Dean
65c393a684
Merge pull request #8714 from mehmetbayoglu/fix/libkernel-process-time-tsc
...
fix(libkernel): tick the process time counter at the TSC frequency
2026-10-21 19:36:01 +13:00
hypermist and Claude Opus 5.5
8bddc39245
feat(libc): forward the C11 thread and TSS calls to libkernel
...
_Call_once, _Tss_create, _Tss_delete, _Tss_get, _Tss_set, _Thrd_equal,
_Thrd_current and _Thrd_exit call scePthreadOnce, scePthreadKeyCreate,
scePthreadKeyDelete, scePthreadGetspecific, scePthreadSetspecific,
scePthreadEqual, scePthreadSelf and scePthreadExit and return their
results unchanged, as the console's libSceLibcInternal does.
_Mtx_current_owns returns 1 there. libkernel registers the calls with
libc at load, next to the pthread_create registration.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
2026-10-21 16:31:00 +13:00
Kraken
aae12fa111
feat(libkernel): implement cfsetspeed
2026-10-21 04:00:42 +01:00
Evgeniy Kazarin and Claude Opus 5.5
69f843c910
perf(libkernel): reuse released direct-memory sections that never held data
...
The title allocates, maps and releases about 48 direct-memory blocks per frame.
Each allocation created a pagefile-backed section and each release closed it.
A released section whose pages were never stored to (resident pages keep their
data in private memory and saved buffers, not in the section) is still blank,
so up to 256 such sections of at most 16 MiB, 256 MiB in total, are kept by
size and handed to the next allocation of that size instead of a new
CreateFileMappingW. APS5_NO_DIRECT_MEMORY_SECTION_POOL keeps the old behaviour.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-21 10:32:44 +08:00
Dean
cd700fe9ec
Merge pull request #8793 from xXPBSXx/fix/pthread-kill-ended-thread-esrch
...
fix(libkernel): let pthread_kill with signal 0 report ESRCH for a thread that has ended
2026-10-21 15:27:29 +13:00
Dean Galvin and xXPBSXx
8cb7251b2e
Merge origin/main into PR 8626
...
Co-authored-by: xXPBSXx <20614131+xXPBSXx@users.noreply.github.com >
2026-10-21 14:56:22 +13:00
Dean
557682ca44
Merge pull request #8798 from JJenkx/windows/open-keep-native-error
...
fix(libkernel): keep the native open error when the Windows directory probe finds no directory
2026-10-21 14:38:41 +13:00
Dean
a806c69bfe
Merge pull request #8758 from p3n1cillin/codex/pthread-getprio-20261021
...
feat(libkernel): implement pthread_getprio
2026-10-21 14:27:54 +13:00
Dean
c5d841ed94
Merge pull request #8732 from DoubleAAGuy/feat/libkernel-osreldate-sysctl
...
feat(libkernel): expose kern.osreldate sysctl
2026-10-21 14:27:39 +13:00
Dean
8a803d3e6d
Merge pull request #8743 from valenciana-nc/fix/kernel-iovec-table-copy
...
fix(libkernel): return EFAULT for unreadable iovec tables
2026-10-21 14:24:39 +13:00
Dean
7697443281
Merge pull request #8653 from Ondra97/codex/fix-net-dontwait
...
fix(net): keep MSG_DONTWAIT transfers nonblocking on Windows
2026-10-21 14:19:19 +13:00
Dean
e7ce7102ab
Merge pull request #7468 from Dripl1x/codex/direct-memory-alias-index
...
perf(libkernel): find direct-memory aliases through the physical index
2026-10-21 13:57:13 +13:00
JJenkx and Claude Opus 5.5
af086114c7
fix(libkernel): keep the native open error when the Windows directory probe finds no directory
...
When the native open failed with an error other than ENOENT, OpenNative
probed whether the path is a directory with std::filesystem::is_directory.
With the MinGW runtime that probe can set errno to ENOENT, and OpenNative
then reported the probe's ENOENT instead of the open error. On Windows 11
22621 a symbolic link loop failed with ELOOP from the native open and
sceKernelOpen returned 0x80020002, so guest_filesystem aborted at the
ELOOP check added by #8640 .
Keep the open error and restore it when the path is not a directory.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-20 20:54:15 -04:00
xXPBSXx and Claude Sonnet 5.5
79569a7a3d
fix(libkernel): let pthread_kill with signal 0 report ESRCH for a thread that has ended
...
pthread_kill(thread, 0) returned 0 for every handle other than the caller's before it asked whether the thread was still alive. FreeBSD's _pthread_kill looks the thread up with _thr_find_thread before it checks for signal 0, so the call answers ESRCH for a thread that has ended or was never a thread. The liveness check now runs before the signal 0 shortcut; the calling thread still answers 0.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-21 02:29:54 +02:00
Dean
70c497739e
Merge pull request #8636 from cadenasynyster/fix/libc-thrd-detach
...
feat(libc): implement _Thrd_detach
2026-10-21 13:11:55 +13:00
Dean
da5ea87cd6
Merge pull request #8455 from hypermoist/feat/libkernel-create-uuid-v4
...
feat(libkernel): implement sceKernelCreateUuidV4
2026-10-21 13:11:28 +13:00
Dean
f41c5bef2b
Merge pull request #8637 from billythemenace2/fix/kernel-raise-system-call-wait
...
fix(libkernel): keep waiting while a raise target is inside a system call
2026-10-21 13:11:08 +13:00
Dean
261497b450
Merge pull request #8676 from MarcZX10/codex/module-info-elf-phdr-match
...
fix(libkernel): match module info segment records
2026-10-21 13:10:46 +13:00
Ondra97
c415375041
fix(net): finish blocking stream sends after short writes
2026-10-21 01:53:43 +02:00
Dean
b753508271
Merge pull request #8454 from hypermoist/feat/libkernel-byte-order
...
feat(libkernel): export htonl, ntohl, htons and ntohs
2026-10-21 12:40:32 +13:00
Dean
6c30d8d804
Merge pull request #8394 from Sam-mon7/fix/apr-staging-off-stack
...
fix(libkernel): keep the Windows APR read staging buffer off the stack
2026-10-21 12:14:31 +13:00
p3nicillin
5a79dda21d
feat(libkernel): implement pthread_getprio
2026-10-21 00:08:30 +01:00
Dean
eea640a5bf
Merge pull request #8386 from xXPBSXx/fix/lseek-descriptor-first-fb
...
fix(libkernel): look up the descriptor of lseek before the whence value
2026-10-21 12:06:53 +13:00
valenciana-nc
23c43725f6
fix(libkernel): copy guest iovec tables before vector transfers
2026-10-20 17:04:30 -06:00