read, write, lseek, fsync and flock on a kqueue descriptor answer like a null device, FreeBSD refuses them #10013
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 xXPBSXx on 2026-10-23T04:03:25Z.
FreeBSD 11.4
kqueueops(sys/kern/kern_event.c:122):fo_read/fo_writeareinvfo_rdwr(sys/kern/kern_descrip.c:4029, returnsEOPNOTSUPP); a kqueue is notDFLAG_SEEKABLE(lseekESPIPE);kern_fsync(vfs_syscalls.c:3098) takes the descriptor throughgetvnode(EINVAL);sys_flock(kern_descrip.c:2889) returnsEOPNOTSUPPfor a non-vnode. The host placeholder behind a kqueue descriptor is a null device (NULon Windows), so on Windows 10:read(kq)-> 0,write(kq)-> EBADF,lseek(kq,0,0)-> 0,fsync(kq)-> EBADF,flock(kq)-> 0 (probe ProbeH16).AI-assisted (Claude Code).