Skip to content

Commit 07636f6

Browse files
committed
Auto merge of #3036 - LegionMammal978:iso-c-funcs, r=JohnTitor
Add missing string-to-number functions from ISO C These should be the observable API changes: - ISO C90 function `atol()` is added to all `fuchsia`, `unix`, `vxworks`, `wasi`, and `windows` targets. - ISO C90 function `atof()` is added to `android`, `redox`, and `vxworks`. - ISO C99 functions `atoll()`, `strtoll()`, and `strtoull()` are added to all `fuchsia`, `unix`, `vxworks`, `wasi`, and `windows` targets. Also, I wasn't exactly sure where to insert the new functions, so I just tried to place them near related functions.
2 parents 6a5c07f + 6a58758 commit 07636f6

File tree

22 files changed

+44
-16
lines changed

22 files changed

+44
-16
lines changed

libc-test/semver/android.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2854,7 +2854,10 @@ arphdr
28542854
arpreq
28552855
arpreq_old
28562856
atexit
2857+
atof
28572858
atoi
2859+
atol
2860+
atoll
28582861
bind
28592862
blkcnt_t
28602863
blksize_t
@@ -3504,7 +3507,9 @@ strtod
35043507
strtof
35053508
strtok
35063509
strtol
3510+
strtoll
35073511
strtoul
3512+
strtoull
35083513
strxfrm
35093514
suseconds_t
35103515
swapoff

libc-test/semver/apple.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,6 @@ arc4random
18181818
arc4random_buf
18191819
arc4random_uniform
18201820
arphdr
1821-
atof
18221821
attrgroup_t
18231822
attribute_set_t
18241823
attrlist

libc-test/semver/dragonfly.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,6 @@ arc4random
12211221
arc4random_buf
12221222
arc4random_uniform
12231223
arphdr
1224-
atof
12251224
backtrace
12261225
backtrace_symbols
12271226
backtrace_symbols_fd

libc-test/semver/freebsd.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,6 @@ arc4random
14931493
arc4random_buf
14941494
arc4random_uniform
14951495
arphdr
1496-
atof
14971496
au_asid_t
14981497
au_id_t
14991498
au_mask_t

libc-test/semver/fuchsia.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,9 @@ accept4
11681168
acct
11691169
aiocb
11701170
atof
1171+
atoi
1172+
atol
1173+
atoll
11711174
blkcnt64_t
11721175
brk
11731176
clearenv
@@ -1366,6 +1369,8 @@ stat64
13661369
statfs
13671370
statfs64
13681371
statvfs64
1372+
strtoll
1373+
strtoull
13691374
swapoff
13701375
swapon
13711376
sync

libc-test/semver/linux.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2868,7 +2868,6 @@ arpd_request
28682868
arphdr
28692869
arpreq
28702870
arpreq_old
2871-
atof
28722871
blkcnt64_t
28732872
brk
28742873
bsearch

libc-test/semver/netbsd.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,6 @@ arc4random
11661166
arc4random_buf
11671167
arc4random_uniform
11681168
arphdr
1169-
atof
11701169
bsearch
11711170
chflags
11721171
chroot

libc-test/semver/openbsd.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,6 @@ arc4random
977977
arc4random_buf
978978
arc4random_uniform
979979
arphdr
980-
atof
981980
backtrace
982981
backtrace_symbols
983982
backtrace_symbols_fd

libc-test/semver/unix.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,10 @@ access
451451
addrinfo
452452
alarm
453453
atexit
454+
atof
454455
atoi
456+
atol
457+
atoll
455458
bind
456459
blkcnt_t
457460
blksize_t
@@ -818,7 +821,9 @@ strtod
818821
strtof
819822
strtok
820823
strtol
824+
strtoll
821825
strtoul
826+
strtoull
822827
strxfrm
823828
suseconds_t
824829
symlink

libc-test/semver/windows.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ aligned_free
152152
atexit
153153
atof
154154
atoi
155+
atol
156+
atoll
155157
bind
156158
c_char
157159
c_double
@@ -307,7 +309,9 @@ strtod
307309
strtof
308310
strtok
309311
strtol
312+
strtoll
310313
strtoul
314+
strtoull
311315
strxfrm
312316
system
313317
time

0 commit comments

Comments
 (0)