Fix some more issues

- ARM Neon headers are now exported in libc/isystem/

- stat() and access() now do a better job reporting which files are
  executable which ones aren't. They do this by reading the first two
  bytes in a file to see if it's `MZ` or `#!`.
This commit is contained in:
Justine Tunney 2023-09-21 11:41:42 -07:00
parent 22cf6e11eb
commit 4f5d5a6813
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
17 changed files with 144 additions and 49 deletions

View file

@ -47,7 +47,7 @@ dos kNtErrorGenFailure EACCES
dos kNtErrorGracefulDisconnect EPIPE
dos kNtErrorHostDown EHOSTUNREACH
dos kNtErrorHostUnreachable EHOSTUNREACH
dos kNtErrorInsufficientBuffer EFAULT
dos kNtErrorInsufficientBuffer ENOBUFS
dos kNtErrorNoaccess EFAULT
dos kNtErrorInvalidAddress EADDRNOTAVAIL
dos kNtErrorNotAReparsePoint EINVAL

View file

@ -11,6 +11,5 @@
.globl kDos2Errno.EFAULT
.type kDos2Errno.EFAULT,@object
kDos2Errno.EFAULT:
.e kNtErrorInsufficientBuffer,EFAULT
.e kNtErrorNoaccess,EFAULT
.e WSAEFAULT,EFAULT

View file

@ -0,0 +1,14 @@
// generated by libc/sysv/dos2errno.sh
#include "libc/nt/errors.h"
#ifndef __x86_64__
.end
#endif
.macro .e doscode systemv
.short \doscode
.long \systemv
.endm
.section .sort.rodata.dos2errno.2,"a",@progbits
.globl kDos2Errno.ENOBUFS
.type kDos2Errno.ENOBUFS,@object
kDos2Errno.ENOBUFS:
.e kNtErrorInsufficientBuffer,ENOBUFS