mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
ccbae7799e
This change also found a few POSIX compliance bugs with errnos. Another bug was discovered where, on Windows, pread() and pwrite() could modify the file position in cases where ReadFile() returned an error e.g. when seeking past the end of file. We also have more tests!
14 lines
385 B
ArmAsm
14 lines
385 B
ArmAsm
// generated by libc/sysv/dos2errno.sh
|
|
#include "libc/nt/errors.h"
|
|
.macro .e doscode systemv
|
|
.short \doscode
|
|
.long \systemv
|
|
.endm
|
|
.section .sort.rodata.dos2errno.2,"a",@progbits
|
|
.globl kDos2Errno.EINVAL
|
|
.type kDos2Errno.EINVAL,@object
|
|
kDos2Errno.EINVAL:
|
|
.e kNtErrorNotAReparsePoint,EINVAL
|
|
.e kNtErrorInvalidFunction,EINVAL
|
|
.e WSAEINVAL,EINVAL
|
|
.e kNtErrorNegativeSeek,EINVAL
|