Skip to content

Implement fexecve on NetBSD and Windows - #1531

Open
G4Vi wants to merge 1 commit into
jart:masterfrom
G4Vi:fexecve-netbsd
Open

G4Vi wants to merge 1 commit into
jart:masterfrom
G4Vi:fexecve-netbsd

Conversation

@G4Vi

@G4Vi G4Vi commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

NetBSD gained the syscall in 10.0. If the syscall does not work fallback to APE loader or /bin/sh if FD_CLOEXEC is not set and the fd has a path. Otherwise, copy the file to a tempfile and run with execve. The tempfile method is always used on Windows and may be enough for the rest of SysV. Zipos fexecve and the tempfile & execve method is disabled in MODE=tiny.

NetBSD gained the syscall in 10.0. If the syscall does not work fallback
to APE loader or /bin/sh if FD_CLOEXEC is not set and the fd has a path.
Otherwise, copy the file to a tempfile and run with execve. The tempfile
method is always used on Windows and may be enough for the rest of SysV.
Zipos fexecve and the tempfile & execve method is disabled in MODE=tiny.
@github-actions github-actions Bot added the libc label Oct 23, 2026
@G4Vi
G4Vi marked this pull request as ready for review October 23, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant