Elliott Hughes
793d272b43
Merge "Slightly simplify perror()."
2023-03-06 17:03:39 +00:00
caowencheng
ab457f9022
memset_chk into assembly file
...
Writing an assembly file can reduce several
assembly instructions, and compare it through
the disassembly of this file
Test: make libc
Change-Id: Ifdcc9c76742cc95b2ad9e3c14fac4796c36e12e6
Signed-off-by: caowencheng <caowencheng@eswincomputing.com>
2023-03-06 07:23:10 +00:00
Elliott Hughes
ae1c64ac92
Slightly simplify perror().
...
Using %m is slightly less code, and means that perror() wouldn't touch
the strerror buffer in TLS. Doesn't matter, but noticed while I was
looking at this for another reason, and since it's _less_ code...
Test: treehugger
Change-Id: I99d31a5c326962958ad843ec4da2c3cc3b93b048
2023-03-03 23:46:34 +00:00
Christopher Ferris
595e54fc2b
Merge "Don't run GWP ASan integration tests under HWASan." am: 90dd5f0fd1
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2466946
Change-Id: If51907014308e9948a8d2e2a50ce8fd313459184
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-03 01:57:52 +00:00
Christopher Ferris
90dd5f0fd1
Merge "Don't run GWP ASan integration tests under HWASan."
2023-03-03 01:48:58 +00:00
Elliott Hughes
09102ac775
Merge "Remove #if cruft." am: 8dd531cef9
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2464672
Change-Id: I8ec663c66d14d9e80f9e9a8e3ab5065f048a41fa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-03 01:41:59 +00:00
Elliott Hughes
27c8d2b9c6
Merge "Pull flockfile/funlockfile/ftrylockfile into stdio.cpp." am: dc3ed4f164
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2465331
Change-Id: I9643efad9ba8522210206e008860443acedb1caa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-03 01:32:15 +00:00
Elliott Hughes
8dd531cef9
Merge "Remove #if cruft."
2023-03-02 23:55:45 +00:00
Florian Mayer
f966620ca0
add test for using malloced stack for pthread_create
...
Bug: 148982147
Change-Id: I65e284a083236f1a552fb1e2fefe1c268ed2ecc3
2023-03-02 15:34:10 -08:00
Christopher Ferris
92a4d2bcee
Don't run GWP ASan integration tests under HWASan.
...
Bug: 267386540
Test: All unit tests pass on normal build.
Test: All GWP ASan tests are skipped under hwasan.
Change-Id: I6d6860090b62e7187cf947de0a9bc30d00330554
2023-03-02 21:57:12 +00:00
Elliott Hughes
dc3ed4f164
Merge "Pull flockfile/funlockfile/ftrylockfile into stdio.cpp."
2023-03-02 21:24:19 +00:00
Elliott Hughes
20dd3fed7a
Pull flockfile/funlockfile/ftrylockfile into stdio.cpp.
...
These are just one-liners, and the _FLOCK() macro seemed to me more
obscure than just inlining it (especially because there are only four
call sites total, so it's not like anyone's going to see that macro very
often).
Also add the missing CHECK_FP() calls. I don't expect this to break
anything, but if it does we can add a target API level check.
Test: treehugger
Change-Id: Ifa1a39d5d9eee46cca783acbe9ec3b3a1e6283d9
2023-03-02 01:44:54 +00:00
Zijun Zhao
3c3223c6fd
Merge "Nullability check for dlfcn module" am: 6bda367899
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2461795
Change-Id: I08acaa17ea04c236b1a1bf06daeaf101bc487dbe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 01:07:19 +00:00
Treehugger Robot
da7de84d31
Merge "Disable elftls_dl#dtv_resize on HWASan" am: f7c2b8c2a6
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2464911
Change-Id: Id7df66bbd278ce194a773b8104c5d8a4d23c18da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 01:06:53 +00:00
Zijun Zhao
6bda367899
Merge "Nullability check for dlfcn module"
2023-03-02 00:32:47 +00:00
Treehugger Robot
f7c2b8c2a6
Merge "Disable elftls_dl#dtv_resize on HWASan"
2023-03-02 00:05:30 +00:00
Florian Mayer
2b67014e11
Disable elftls_dl#dtv_resize on HWASan
...
A new TLS variable was added to HWASan RT in the new toolchain and
this tests needs to be adjusted. Skipping for now.
Bug: 271243811
Change-Id: Ie6664a9ac350624e8e963a36e4248d0d051bc8c1
2023-03-01 21:40:17 +00:00
zijunzhao
447c346475
Nullability check for dlfcn module
...
Bugs: b/245972273
Test: adb shell
Change-Id: I0ecde8a0f1f71b6ec2262ff637d33c518578d54d
2023-03-01 21:29:41 +00:00
Elliott Hughes
5ee6292872
Remove #if cruft.
...
There's negative value to explicitly calling out Linux and ELF here,
when Android -- and especially this project -- is always both anyway.
No functional change.
Test: treehugger
Change-Id: Ic7514d74a5b5f6f06e64c46486c12773995076cd
2023-03-01 20:26:41 +00:00
Treehugger Robot
1937a6168e
Merge "Nullability check for ifaddrs module" am: c920ac5695
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2461796
Change-Id: If5ec76fc25d3e216a54623ddaf58b362a7cd38a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-01 11:11:21 +00:00
Treehugger Robot
c920ac5695
Merge "Nullability check for ifaddrs module"
2023-03-01 10:28:33 +00:00
zijunzhao
e7d41ab7c0
Nullability check for ifaddrs module
...
Bugs: b/245972273
Test: adb shell
Change-Id: Iccb419667282922d31e2c81b3d9dbac8b6009a76
2023-03-01 01:36:30 +00:00
Elliott Hughes
f983d6aa36
Merge "Remove <pthread.h> cruft." am: 93398b1b14
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2455759
Change-Id: I6113301714fdffb4ceefd3d4eb2b14221885e675
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-28 19:35:19 +00:00
Elliott Hughes
93398b1b14
Merge "Remove <pthread.h> cruft."
2023-02-28 16:27:57 +00:00
Treehugger Robot
9bb2f998ff
Merge "Nullability check for stdio_ext module" am: 62e24fd016
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2459053
Change-Id: Iecaf23c601d0b68bfeab4f53950cd7da9c34f77f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-28 02:21:02 +00:00
Treehugger Robot
62e24fd016
Merge "Nullability check for stdio_ext module"
2023-02-28 01:48:21 +00:00
zijunzhao
6b6d51e9ea
Nullability check for stdio_ext module
...
Bugs: b/245972273
Test: adb shell
Change-Id: I4175218f6fa7f4581a739bb0f12cf10b6bdb529e
2023-02-27 23:34:25 +00:00
Elliott Hughes
9108f258ad
Remove <pthread.h> cruft.
...
The next NDK to take these headers only supports API 21 and later.
Note that this change leaves the _implementation_ of these functions
behind, so that any old apps calling these APIs should continue to work,
you just can't (without declaring the functions yourself) write new ones
that do (and declaring the functions yourself would only work on LP32
anyway, so that's not going to get you very far in 2023).
Test: treehugger
Change-Id: Ie03514e4215b40f6e9feaa6e4bf5df5b16dc8d59
2023-02-27 21:31:11 +00:00
Elliott Hughes
caa6754817
Merge "Remove libandroidsupport cruft." am: 957d34a85c
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2455754
Change-Id: Ie09f533f5fad1c0b3a6b7475fa27d4fc7b524d59
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-25 05:06:20 +00:00
Elliott Hughes
957d34a85c
Merge "Remove libandroidsupport cruft."
2023-02-25 02:28:38 +00:00
Elliott Hughes
3a5441c347
Merge "Remove <stdlib.h> cruft." am: 20cd43a66d
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2455755
Change-Id: Ie74f25cff6cc780dfc0ea2d82c481070a573b97a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-25 02:07:51 +00:00
Zijun Zhao
bd10beb58d
Merge "Nullability check for iconv module" am: 41a4aa3174
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2454915
Change-Id: Ia17a40adcc1893c36688d94397719bc1a76c789b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-25 02:04:03 +00:00
Elliott Hughes
20cd43a66d
Merge "Remove <stdlib.h> cruft."
2023-02-24 23:35:29 +00:00
Zijun Zhao
41a4aa3174
Merge "Nullability check for iconv module"
2023-02-24 23:14:16 +00:00
Zijun Zhao
96a6eff403
Merge "Nullability check for error module" am: 67737cdf9f
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2442220
Change-Id: I1295207bd6c65c7cda906e286314484c214d86d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 23:12:19 +00:00
Zijun Zhao
9ad3447d0f
Merge "Nullability check for ftw module" am: 2b26a1e22c
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2454913
Change-Id: I2ab1239dda2a1899a08cf1d09bb9ea55125cb3b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 23:11:10 +00:00
Pierre-Clément Tosi
10c5592231
Merge "librust_baremetal: Add libc_netbsd" am: 39aed9c58a
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2428877
Change-Id: Id93cee4feb8d94618afa6314e079d165670f3f15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 23:09:55 +00:00
Zijun Zhao
67737cdf9f
Merge "Nullability check for error module"
2023-02-24 23:08:57 +00:00
Elliott Hughes
33a2aba344
Merge "Remove <sys/socket.h> inlines for obsolete API levels." am: f2ca0bc13d
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2454908
Change-Id: I4ab6fa832c81a139ba3e5d2128a211468b9612ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 23:05:57 +00:00
Elliott Hughes
431f943bd1
Merge "Remove <fenv.h> inlines for obsolete API levels." am: 59d90262ed
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2454906
Change-Id: Ia7530cc7dbcbbb2cb8728ff8cf082ac539c409ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 23:05:44 +00:00
Elliott Hughes
3cb0abf1ac
Merge "Remove <sys/stat.h> inlines for obsolete API levels." am: f5e899d84d
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2454905
Change-Id: I60f7d0036a50ac95fdfae9276240fe737d9ac830
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 23:05:31 +00:00
Elliott Hughes
6ceeb3d18c
Merge "Remove <time.h> cruft." am: af17562d0e
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2454909
Change-Id: I1dc98c3bebb2cd9c9d927481dfb997cdf63a769f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 23:05:18 +00:00
Elliott Hughes
b5841b54fd
Merge "Remove <signal.h> inlines for obsolete API levels." am: 7dfa18a49f
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2454907
Change-Id: Ic913ddda23096b3fb13048e7502e68b8b897d085
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 23:05:05 +00:00
Elliott Hughes
4fe6b76e44
Merge "Remove <sys/mman.h> inlines for obsolete API levels." am: 66734f0c35
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2455206
Change-Id: I052d4c8f7df64a7fd9553d2e40e2cb995a31e9a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 23:04:52 +00:00
Elliott Hughes
0c3b3df06d
Merge "Remove <errno.h> inlines for obsolete API levels." am: d54d92c4fd
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2455305
Change-Id: I5075f472edb8b489da0428fcbfe66393509fc748
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 23:04:39 +00:00
Elliott Hughes
d876e380a4
Merge "Remove a tautology from <bits/threads_inlines.h>." am: 511ad0f5db
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2454910
Change-Id: Ibdaf44cb1d81966d018bbac141523234d46733c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 23:00:51 +00:00
Zijun Zhao
2b26a1e22c
Merge "Nullability check for ftw module"
2023-02-24 20:33:47 +00:00
Elliott Hughes
fbd79707c3
Remove <stdlib.h> cruft.
...
The next NDK to take these headers only supports API 21 and later.
Test: treehugger
Change-Id: Ib5962989c5c978996b04789c21c0822dd8792303
2023-02-24 19:48:50 +00:00
zijunzhao
377954fdc6
Nullability check for error module
...
Bugs: b/245972273
Test: adb shell
Change-Id: I9d1c20cf2a7e1e4201c3c54a321c9d9f896c92e2
2023-02-24 19:44:21 +00:00
Pierre-Clément Tosi
39aed9c58a
Merge "librust_baremetal: Add libc_netbsd"
2023-02-24 19:42:45 +00:00