Skip to content

Commit

Permalink
Add missing functions from ISO C90 and C99, fix definition of clock_t
Browse files Browse the repository at this point in the history
  • Loading branch information
LegionMammal978 committed Dec 13, 2022
1 parent 6a5c07f commit 8dce85d
Show file tree
Hide file tree
Showing 41 changed files with 213 additions and 60 deletions.
16 changes: 15 additions & 1 deletion libc-test/semver/android.txt
Expand Up @@ -2663,6 +2663,7 @@ W_STOPCODE
XFS_SUPER_MAGIC
XTABS
X_OK
_Exit
_IOFBF
_IOLBF
_IONBF
Expand Down Expand Up @@ -2839,6 +2840,7 @@ __system_property_get
__system_property_set
_exit
abort
abs
accept
accept4
access
Expand All @@ -2854,7 +2856,10 @@ arphdr
arpreq
arpreq_old
atexit
atof
atoi
atol
atoll
bind
blkcnt_t
blksize_t
Expand Down Expand Up @@ -2888,6 +2893,7 @@ chown
chroot
clearenv
clearerr
clock
clock_getcpuclockid
clock_getres
clock_gettime
Expand All @@ -2910,6 +2916,7 @@ difftime
dirent
dirent64
dirfd
div
dladdr
dlclose
dlerror
Expand Down Expand Up @@ -3010,6 +3017,7 @@ fwrite
gai_strerror
genlmsghdr
getaddrinfo
getc
getchar
getchar_unlocked
getcwd
Expand Down Expand Up @@ -3119,15 +3127,19 @@ itimerval
key_t
kill
killpg
labs
lastlog
lchown
lconv
ldiv
lgetxattr
linger
link
linkat
listen
listxattr
llabs
lldiv
llistxattr
locale_t
localeconv
Expand Down Expand Up @@ -3318,7 +3330,7 @@ ptrace_peeksiginfo_args
ptrdiff_t
ptsname
ptsname_r

putc
putchar
putchar_unlocked
putenv
Expand Down Expand Up @@ -3504,7 +3516,9 @@ strtod
strtof
strtok
strtol
strtoll
strtoul
strtoull
strxfrm
suseconds_t
swapoff
Expand Down
3 changes: 0 additions & 3 deletions libc-test/semver/apple.txt
Expand Up @@ -1804,7 +1804,6 @@ _dyld_get_image_header
_dyld_get_image_name
_dyld_get_image_vmaddr_slide
_dyld_image_count
abs
acct
aio_cancel
aio_error
Expand All @@ -1818,7 +1817,6 @@ arc4random
arc4random_buf
arc4random_uniform
arphdr
atof
attrgroup_t
attribute_set_t
attrlist
Expand Down Expand Up @@ -1938,7 +1936,6 @@ kevent64_s
key_t
killpg
kqueue
labs
lio_listio
listxattr
load_command
Expand Down
3 changes: 0 additions & 3 deletions libc-test/semver/dragonfly.txt
Expand Up @@ -1204,7 +1204,6 @@ _UTX_IDSIZE
_UTX_LINESIZE
_UTX_USERSIZE
__errno_location
abs
accept_filter_arg
accept4
acct
Expand All @@ -1221,7 +1220,6 @@ arc4random
arc4random_buf
arc4random_uniform
arphdr
atof
backtrace
backtrace_symbols
backtrace_symbols_fd
Expand Down Expand Up @@ -1346,7 +1344,6 @@ kvm_vm_map_entry_first
kvm_vm_map_entry_next
kvm_write
kqueue
labs
lastlog
lchflags
lcong48
Expand Down
3 changes: 0 additions & 3 deletions libc-test/semver/freebsd.txt
Expand Up @@ -1476,7 +1476,6 @@ __error
__xuname
_sem
_umtx_op
abs
accept4
accept_filter_arg
acct
Expand All @@ -1493,7 +1492,6 @@ arc4random
arc4random_buf
arc4random_uniform
arphdr
atof
au_asid_t
au_id_t
au_mask_t
Expand Down Expand Up @@ -1672,7 +1670,6 @@ kinfo_vmentry
kqueue
kld_isloaded
kld_load
labs
lchflags
lcong48
lio_listio
Expand Down
12 changes: 12 additions & 0 deletions libc-test/semver/fuchsia.txt
Expand Up @@ -1003,6 +1003,7 @@ XATTR_REPLACE
XTABS
YESEXPR
YESSTR
_Exit
_IOFBF
_IOLBF
_IONBF
Expand Down Expand Up @@ -1168,18 +1169,24 @@ accept4
acct
aiocb
atof
atoi
atol
atoll
blkcnt64_t
brk
clearenv
clock
clock_getres
clock_nanosleep
clock_settime
clock_t
clone
cmsghdr
cpu_set_t
daemon
dirent64
dirfd
div
dl_iterate_phdr
dl_phdr_info
dqblk
Expand Down Expand Up @@ -1245,6 +1252,9 @@ ipc_perm
itimerspec
key_t
labs
ldiv
llabs
lldiv
loff_t
lutimes
madvise
Expand Down Expand Up @@ -1366,6 +1376,8 @@ stat64
statfs
statfs64
statvfs64
strtoll
strtoull
swapoff
swapon
sync
Expand Down
3 changes: 0 additions & 3 deletions libc-test/semver/linux.txt
Expand Up @@ -2859,7 +2859,6 @@ __u16
__u32
__u64
__u8
abs
accept4
acct
addmntent
Expand All @@ -2868,7 +2867,6 @@ arpd_request
arphdr
arpreq
arpreq_old
atof
blkcnt64_t
brk
bsearch
Expand Down Expand Up @@ -3022,7 +3020,6 @@ j1939_filter
jrand48
key_t
killpg
labs
lcong48
lgetxattr
listxattr
Expand Down
3 changes: 0 additions & 3 deletions libc-test/semver/netbsd.txt
Expand Up @@ -1150,7 +1150,6 @@ _cpuset_isset
_cpuset_set
_cpuset_zero
_lwp_self
abs
accept4
accept_filter_arg
acct
Expand All @@ -1166,7 +1165,6 @@ arc4random
arc4random_buf
arc4random_uniform
arphdr
atof
bsearch
chflags
chroot
Expand Down Expand Up @@ -1303,7 +1301,6 @@ kinfo_proc2
kinfo_vmentry
kqueue
kqueue1
labs
lastlog
lastlogx
lchflags
Expand Down
3 changes: 0 additions & 3 deletions libc-test/semver/openbsd.txt
Expand Up @@ -970,14 +970,12 @@ _SC_XOPEN_UNIX
_SC_XOPEN_UUCP
_SC_XOPEN_VERSION
__errno
abs
accept4
acct
arc4random
arc4random_buf
arc4random_uniform
arphdr
atof
backtrace
backtrace_symbols
backtrace_symbols_fd
Expand Down Expand Up @@ -1078,7 +1076,6 @@ killpg
kinfo_proc
kinfo_vmentry
kqueue
labs
lastlog
lcong48
lcong48_deterministic
Expand Down
13 changes: 13 additions & 0 deletions libc-test/semver/unix.txt
Expand Up @@ -422,6 +422,7 @@ WTERMSIG
WUNTRACED
W_OK
X_OK
_Exit
_PC_CHOWN_RESTRICTED
_PC_LINK_MAX
_PC_MAX_CANON
Expand Down Expand Up @@ -451,7 +452,10 @@ access
addrinfo
alarm
atexit
atof
atoi
atol
atoll
bind
blkcnt_t
blksize_t
Expand Down Expand Up @@ -480,6 +484,7 @@ cfsetspeed
chdir
chmod
chown
clock
clock_gettime
clock_t
clockid_t
Expand All @@ -490,6 +495,7 @@ connect
creat
dev_t
dirent
div
dladdr
dlclose
dlerror
Expand Down Expand Up @@ -548,6 +554,7 @@ futimens
fwrite
gai_strerror
getaddrinfo
getc
getchar
getchar_unlocked
getcwd
Expand Down Expand Up @@ -614,10 +621,13 @@ itimerval
kill
lchown
lconv
ldiv
linger
link
linkat
listen
llabs
lldiv
locale_t
localeconv
localtime
Expand Down Expand Up @@ -715,6 +725,7 @@ pthread_setspecific
pthread_t
ptrdiff_t
ptsname
putc
putchar
putchar_unlocked
putenv
Expand Down Expand Up @@ -818,7 +829,9 @@ strtod
strtof
strtok
strtol
strtoll
strtoul
strtoull
strxfrm
suseconds_t
symlink
Expand Down

0 comments on commit 8dce85d

Please sign in to comment.