Skip to content

Commit 8dce85d

Browse files
Add missing functions from ISO C90 and C99, fix definition of clock_t
1 parent 6a5c07f commit 8dce85d

File tree

41 files changed

+213
-60
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+213
-60
lines changed

libc-test/semver/android.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2663,6 +2663,7 @@ W_STOPCODE
26632663
XFS_SUPER_MAGIC
26642664
XTABS
26652665
X_OK
2666+
_Exit
26662667
_IOFBF
26672668
_IOLBF
26682669
_IONBF
@@ -2839,6 +2840,7 @@ __system_property_get
28392840
__system_property_set
28402841
_exit
28412842
abort
2843+
abs
28422844
accept
28432845
accept4
28442846
access
@@ -2854,7 +2856,10 @@ arphdr
28542856
arpreq
28552857
arpreq_old
28562858
atexit
2859+
atof
28572860
atoi
2861+
atol
2862+
atoll
28582863
bind
28592864
blkcnt_t
28602865
blksize_t
@@ -2888,6 +2893,7 @@ chown
28882893
chroot
28892894
clearenv
28902895
clearerr
2896+
clock
28912897
clock_getcpuclockid
28922898
clock_getres
28932899
clock_gettime
@@ -2910,6 +2916,7 @@ difftime
29102916
dirent
29112917
dirent64
29122918
dirfd
2919+
div
29132920
dladdr
29142921
dlclose
29152922
dlerror
@@ -3010,6 +3017,7 @@ fwrite
30103017
gai_strerror
30113018
genlmsghdr
30123019
getaddrinfo
3020+
getc
30133021
getchar
30143022
getchar_unlocked
30153023
getcwd
@@ -3119,15 +3127,19 @@ itimerval
31193127
key_t
31203128
kill
31213129
killpg
3130+
labs
31223131
lastlog
31233132
lchown
31243133
lconv
3134+
ldiv
31253135
lgetxattr
31263136
linger
31273137
link
31283138
linkat
31293139
listen
31303140
listxattr
3141+
llabs
3142+
lldiv
31313143
llistxattr
31323144
locale_t
31333145
localeconv
@@ -3318,7 +3330,7 @@ ptrace_peeksiginfo_args
33183330
ptrdiff_t
33193331
ptsname
33203332
ptsname_r
3321-
3333+
putc
33223334
putchar
33233335
putchar_unlocked
33243336
putenv
@@ -3504,7 +3516,9 @@ strtod
35043516
strtof
35053517
strtok
35063518
strtol
3519+
strtoll
35073520
strtoul
3521+
strtoull
35083522
strxfrm
35093523
suseconds_t
35103524
swapoff

libc-test/semver/apple.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,6 @@ _dyld_get_image_header
18041804
_dyld_get_image_name
18051805
_dyld_get_image_vmaddr_slide
18061806
_dyld_image_count
1807-
abs
18081807
acct
18091808
aio_cancel
18101809
aio_error
@@ -1818,7 +1817,6 @@ arc4random
18181817
arc4random_buf
18191818
arc4random_uniform
18201819
arphdr
1821-
atof
18221820
attrgroup_t
18231821
attribute_set_t
18241822
attrlist
@@ -1938,7 +1936,6 @@ kevent64_s
19381936
key_t
19391937
killpg
19401938
kqueue
1941-
labs
19421939
lio_listio
19431940
listxattr
19441941
load_command

libc-test/semver/dragonfly.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,6 @@ _UTX_IDSIZE
12041204
_UTX_LINESIZE
12051205
_UTX_USERSIZE
12061206
__errno_location
1207-
abs
12081207
accept_filter_arg
12091208
accept4
12101209
acct
@@ -1221,7 +1220,6 @@ arc4random
12211220
arc4random_buf
12221221
arc4random_uniform
12231222
arphdr
1224-
atof
12251223
backtrace
12261224
backtrace_symbols
12271225
backtrace_symbols_fd
@@ -1346,7 +1344,6 @@ kvm_vm_map_entry_first
13461344
kvm_vm_map_entry_next
13471345
kvm_write
13481346
kqueue
1349-
labs
13501347
lastlog
13511348
lchflags
13521349
lcong48

libc-test/semver/freebsd.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,6 @@ __error
14761476
__xuname
14771477
_sem
14781478
_umtx_op
1479-
abs
14801479
accept4
14811480
accept_filter_arg
14821481
acct
@@ -1493,7 +1492,6 @@ arc4random
14931492
arc4random_buf
14941493
arc4random_uniform
14951494
arphdr
1496-
atof
14971495
au_asid_t
14981496
au_id_t
14991497
au_mask_t
@@ -1672,7 +1670,6 @@ kinfo_vmentry
16721670
kqueue
16731671
kld_isloaded
16741672
kld_load
1675-
labs
16761673
lchflags
16771674
lcong48
16781675
lio_listio

libc-test/semver/fuchsia.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,7 @@ XATTR_REPLACE
10031003
XTABS
10041004
YESEXPR
10051005
YESSTR
1006+
_Exit
10061007
_IOFBF
10071008
_IOLBF
10081009
_IONBF
@@ -1168,18 +1169,24 @@ accept4
11681169
acct
11691170
aiocb
11701171
atof
1172+
atoi
1173+
atol
1174+
atoll
11711175
blkcnt64_t
11721176
brk
11731177
clearenv
1178+
clock
11741179
clock_getres
11751180
clock_nanosleep
11761181
clock_settime
1182+
clock_t
11771183
clone
11781184
cmsghdr
11791185
cpu_set_t
11801186
daemon
11811187
dirent64
11821188
dirfd
1189+
div
11831190
dl_iterate_phdr
11841191
dl_phdr_info
11851192
dqblk
@@ -1245,6 +1252,9 @@ ipc_perm
12451252
itimerspec
12461253
key_t
12471254
labs
1255+
ldiv
1256+
llabs
1257+
lldiv
12481258
loff_t
12491259
lutimes
12501260
madvise
@@ -1366,6 +1376,8 @@ stat64
13661376
statfs
13671377
statfs64
13681378
statvfs64
1379+
strtoll
1380+
strtoull
13691381
swapoff
13701382
swapon
13711383
sync

libc-test/semver/linux.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2859,7 +2859,6 @@ __u16
28592859
__u32
28602860
__u64
28612861
__u8
2862-
abs
28632862
accept4
28642863
acct
28652864
addmntent
@@ -2868,7 +2867,6 @@ arpd_request
28682867
arphdr
28692868
arpreq
28702869
arpreq_old
2871-
atof
28722870
blkcnt64_t
28732871
brk
28742872
bsearch
@@ -3022,7 +3020,6 @@ j1939_filter
30223020
jrand48
30233021
key_t
30243022
killpg
3025-
labs
30263023
lcong48
30273024
lgetxattr
30283025
listxattr

libc-test/semver/netbsd.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,6 @@ _cpuset_isset
11501150
_cpuset_set
11511151
_cpuset_zero
11521152
_lwp_self
1153-
abs
11541153
accept4
11551154
accept_filter_arg
11561155
acct
@@ -1166,7 +1165,6 @@ arc4random
11661165
arc4random_buf
11671166
arc4random_uniform
11681167
arphdr
1169-
atof
11701168
bsearch
11711169
chflags
11721170
chroot
@@ -1303,7 +1301,6 @@ kinfo_proc2
13031301
kinfo_vmentry
13041302
kqueue
13051303
kqueue1
1306-
labs
13071304
lastlog
13081305
lastlogx
13091306
lchflags

libc-test/semver/openbsd.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -970,14 +970,12 @@ _SC_XOPEN_UNIX
970970
_SC_XOPEN_UUCP
971971
_SC_XOPEN_VERSION
972972
__errno
973-
abs
974973
accept4
975974
acct
976975
arc4random
977976
arc4random_buf
978977
arc4random_uniform
979978
arphdr
980-
atof
981979
backtrace
982980
backtrace_symbols
983981
backtrace_symbols_fd
@@ -1078,7 +1076,6 @@ killpg
10781076
kinfo_proc
10791077
kinfo_vmentry
10801078
kqueue
1081-
labs
10821079
lastlog
10831080
lcong48
10841081
lcong48_deterministic

libc-test/semver/unix.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ WTERMSIG
422422
WUNTRACED
423423
W_OK
424424
X_OK
425+
_Exit
425426
_PC_CHOWN_RESTRICTED
426427
_PC_LINK_MAX
427428
_PC_MAX_CANON
@@ -451,7 +452,10 @@ access
451452
addrinfo
452453
alarm
453454
atexit
455+
atof
454456
atoi
457+
atol
458+
atoll
455459
bind
456460
blkcnt_t
457461
blksize_t
@@ -480,6 +484,7 @@ cfsetspeed
480484
chdir
481485
chmod
482486
chown
487+
clock
483488
clock_gettime
484489
clock_t
485490
clockid_t
@@ -490,6 +495,7 @@ connect
490495
creat
491496
dev_t
492497
dirent
498+
div
493499
dladdr
494500
dlclose
495501
dlerror
@@ -548,6 +554,7 @@ futimens
548554
fwrite
549555
gai_strerror
550556
getaddrinfo
557+
getc
551558
getchar
552559
getchar_unlocked
553560
getcwd
@@ -614,10 +621,13 @@ itimerval
614621
kill
615622
lchown
616623
lconv
624+
ldiv
617625
linger
618626
link
619627
linkat
620628
listen
629+
llabs
630+
lldiv
621631
locale_t
622632
localeconv
623633
localtime
@@ -715,6 +725,7 @@ pthread_setspecific
715725
pthread_t
716726
ptrdiff_t
717727
ptsname
728+
putc
718729
putchar
719730
putchar_unlocked
720731
putenv
@@ -818,7 +829,9 @@ strtod
818829
strtof
819830
strtok
820831
strtol
832+
strtoll
821833
strtoul
834+
strtoull
822835
strxfrm
823836
suseconds_t
824837
symlink

0 commit comments

Comments
 (0)