mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Remove sys_getrandom() on NetBSD
This fixes an apparent regression caused by
3f0bcdc3ef
where getrandom() on NetBSD 9.2
doesn't appear to work; ktrace oddly reports:
1446 1 .ape CALL #91 (unimplemented getdopt)
1446 1 .ape RET #91 (unimplemented getdopt) -1 errno 78
Function not implemented
1446 1 .ape PSIG SIGSYS SIG_DFL: code=SI_NOINFO
This commit is contained in:
parent
a0237a017c
commit
86d9323a43
3 changed files with 3 additions and 3 deletions
|
@ -1,2 +1,2 @@
|
|||
#include "libc/sysv/macros.internal.h"
|
||||
.scall sys_getrandom,0x85b007a3321f493e,0x116,globl,hidden
|
||||
.scall sys_getrandom,0xfff007a3321f493e,0x116,globl,hidden
|
||||
|
|
|
@ -351,7 +351,7 @@ scall sys_sched_setattr 0xfffffffffffff13a 0x112 globl # ├─ desktop replace
|
|||
scall sys_sched_getattr 0xfffffffffffff13b 0x113 globl # ├─ karen sandler requires systemd init and boot for tablet gui
|
||||
scall sys_renameat2 0xfffffffffffff13c 0x114 globl # └─ debian founder ian murdock found strangled with vacuum cord
|
||||
#scall seccomp 0xfffffffffffff13d 0x115 globl # wrapped manually
|
||||
scall sys_getrandom 0x85b007a3321f493e 0x116 globl hidden # Linux 3.17+; FreeBSD 12+; NetBSD v9.2+; getentropy() on XNU/OpenBSD
|
||||
scall sys_getrandom 0xfff007a3321f493e 0x116 globl hidden # Linux 3.17+; FreeBSD 12+; NetBSD wut; getentropy() on XNU/OpenBSD
|
||||
scall sys_memfd_create 0xfffffffffffff13f 0x117 globl hidden
|
||||
scall sys_kexec_file_load 0xfffffffffffff140 0xfff globl # no wrapper
|
||||
scall sys_bpf 0xfffffffffffff141 0x118 globl # no wrapper
|
||||
|
|
2
third_party/nsync/futex.c
vendored
2
third_party/nsync/futex.c
vendored
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/sysv/consts/futex.h"
|
||||
#include "libc/assert.h"
|
||||
#include "libc/atomic.h"
|
||||
#include "libc/calls/calls.h"
|
||||
|
@ -36,7 +37,6 @@
|
|||
#include "libc/nt/runtime.h"
|
||||
#include "libc/nt/synchronization.h"
|
||||
#include "libc/sysv/consts/clock.h"
|
||||
#include "libc/sysv/consts/futex.h"
|
||||
#include "libc/sysv/consts/timer.h"
|
||||
#include "libc/sysv/errfuns.h"
|
||||
#include "libc/thread/freebsd.internal.h"
|
||||
|
|
Loading…
Reference in a new issue