diff options
Diffstat (limited to 'src/runtime/sys_netbsd_386.s')
-rw-r--r-- | src/runtime/sys_netbsd_386.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/sys_netbsd_386.s b/src/runtime/sys_netbsd_386.s index 7be18c61d8..a05e1d4478 100644 --- a/src/runtime/sys_netbsd_386.s +++ b/src/runtime/sys_netbsd_386.s @@ -457,6 +457,15 @@ TEXT runtime·kevent(SB),NOSPLIT,$0 MOVL AX, ret+24(FP) RET +// func fcntl(fd, cmd, arg int32) int32 +TEXT runtime·fcntl(SB),NOSPLIT,$-4 + MOVL $SYS_fcntl, AX + INT $0x80 + JAE 2(PC) + NEGL AX // caller expects negative errno + MOVL AX, ret+12(FP) + RET + // int32 runtime·closeonexec(int32 fd) TEXT runtime·closeonexec(SB),NOSPLIT,$32 MOVL $SYS_fcntl, AX |