Treehugger Robot
fe4ab7dc30
Merge "Add missing <sys/stat.h> macros."
2016-08-16 21:59:16 +00:00
Treehugger Robot
c8476bb7ad
Merge "Fix various <sys/socket.h> prototypes."
2016-08-16 21:57:31 +00:00
Treehugger Robot
1df81cd177
Merge "mprotect and msync take void*, not const void*."
2016-08-16 21:39:21 +00:00
Treehugger Robot
ce8a5b4b9d
Merge "Fix memmem behavior with empty needles."
2016-08-16 20:56:54 +00:00
Elliott Hughes
2b9605fec4
Fix various <sys/socket.h> prototypes.
...
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html
Interestingly, recvmmsg/sendmmsg do actually return int, unlike their
recv/recvmsg/sendv/sendvmsg siblings.
The generated assembler stubs don't actually change.
Change-Id: If71cd02431903774de9bbce77fbedf6b03f90c0f
2016-08-16 13:37:24 -07:00
Elliott Hughes
9288761a26
Add missing <sys/stat.h> macros.
...
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html
Change-Id: I8c31f3a6fae2c4955c5fba3d880a416d03dfafb7
2016-08-16 13:26:35 -07:00
Elliott Hughes
9dff0d05b5
mprotect and msync take void*, not const void*.
...
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mprotect.html
http://pubs.opengroup.org/onlinepubs/9699919799/functions/msync.html
Change-Id: Ie26195e2e382c1387037c7ee5cd90b3963220328
2016-08-16 13:25:13 -07:00
Elliott Hughes
cae33ade6c
Fix memmem behavior with empty needles.
...
Change-Id: I8b893d80c27b548652d843af9520d7adc8ba8902
2016-08-16 12:28:58 -07:00
Treehugger Robot
061446c2df
Merge "Add a script to update the bionic headers."
2016-08-16 17:08:46 +00:00
Treehugger Robot
8ca3f3116d
Merge "versioner: handle _FILE_OFFSET_BITS=64."
2016-08-16 01:00:14 +00:00
Josh Gao
a77b3a9464
versioner: handle _FILE_OFFSET_BITS=64.
...
Compile headers with both -D_FILE_OFFSET_BITS=32 and -D_FILE_OFFSET_BITS=64.
Bug: http://b/30170081
Change-Id: I92651e075cc69bdc1a2581f99892c9a7fdcdb35b
Test: python run_tests.py
2016-08-15 16:43:13 -07:00
Treehugger Robot
3b2d331e77
Merge "linker: add test for zeroed out shdr_table_"
2016-08-15 23:23:26 +00:00
Treehugger Robot
52848b02b3
Merge changes Iaf798077,I9080838f,Ia13a8ae2,If0d81b0a,Ie493d8c3
...
* changes:
versioner: add idempotence test that uses the bionic headers.
versioner: fix off-by-one error in header guard calculation.
versioner: improve preprocessor tests.
versioner: always copy over source headers when preprocessing.
versioner: add test output directories to gitignore.
2016-08-15 22:45:08 +00:00
Treehugger Robot
4154b77285
Merge "linker: add test for zero shdr offset"
2016-08-15 22:01:30 +00:00
Josh Gao
9ab148c450
versioner: add idempotence test that uses the bionic headers.
...
Bug: http://b/30170081
Change-Id: Iaf798077518a1a82c626c3b1524633c6df578409
Test: python run_tests.py
2016-08-15 14:28:25 -07:00
Josh Gao
9f7ce3d27f
versioner: fix off-by-one error in header guard calculation.
...
This was causing redundant guards to be emitted in cases where
declarations were already guarded by another macro.
Bug: http://b/30170081
Change-Id: I9080838fbea5a56225df4b26d0918657fb6c4f21
Test: python run_tests.py
2016-08-15 14:09:53 -07:00
Dimitry Ivanov
559583469c
linker: add test for zeroed out shdr_table_
...
Bug: http://b/30795430
Change-Id: I86b658d01b64670d3e702ddb1d3f9db4f75d784f
Test: bionic-unit-tests --gtest_filter=dlfcn.dlopen_invalid*
2016-08-15 14:06:04 -07:00
Treehugger Robot
63ccb1bdac
Merge "[MIPS] Fix bionic test build"
2016-08-15 21:00:47 +00:00
Dan Albert
8420be9bcc
Add a script to update the bionic headers.
...
Test: ./update_headers.sh
Bug: http://b/30465923
Change-Id: I888a1ec0c4f26134845583a03bbaad88fa17afa0
2016-08-15 13:55:22 -07:00
Dimitry Ivanov
4623044517
linker: add test for zero shdr offset
...
Bug: http://b/30795430
Change-Id: I03853257c4b632ad9daaf1e90f9620678397cff0
Test: bionic-unit-tests --gtest_filter=dlfcn.dlopen_invalid*
2016-08-15 13:42:47 -07:00
Josh Gao
1b4b3d7a3c
versioner: improve preprocessor tests.
...
Make sure everything works with relative/absolute paths, and with and
without trailing slashes.
Bug: http://b/30170081
Change-Id: Ia13a8ae2fa44590e835d0f4b006d4c31e9eaea83
Test: python run_tests.py
2016-08-15 13:42:36 -07:00
Josh Gao
a6b8c4e163
versioner: always copy over source headers when preprocessing.
...
Also, be less noisy when preprocessing.
Bug: http://b/30170081
Change-Id: If0d81b0a3a49756164e4945a20703afeb302fd4d
Test: python run_tests.py
2016-08-15 13:41:57 -07:00
Josh Gao
b0af100297
versioner: add test output directories to gitignore.
...
Bug: http://b/30170081
Change-Id: Ie493d8c321bb0e8d308234dec2d42ac8306c21c6
Test: python run_tests.py
2016-08-15 13:41:47 -07:00
Treehugger Robot
228e747b6c
Merge "Fix mktime's errno behavior."
2016-08-15 20:06:57 +00:00
Treehugger Robot
ac69db1f85
Merge "linker: add test for empty shdr table"
2016-08-15 20:02:09 +00:00
Lazar Trsic
293d5132d0
[MIPS] Fix bionic test build
...
Group of libtest_invalid* libraries does not exists for mips architecture,
so disable relevant tests.
Change-Id: I3a4fef94933eb33654c4274aa249ea5d61d6cf9b
2016-08-15 12:48:20 -07:00
Treehugger Robot
21482db6e1
Merge "linker: add test for zero shstrndx"
2016-08-15 18:48:02 +00:00
Dimitry Ivanov
8bdf70e6e4
linker: add test for empty shdr table
...
Bug: http://b/30795430
Change-Id: Id839c22f88276f31e0615bc2a67d75e27a9aa7c6
Test: run bionic-unit-tests --gtest_filter=dlfcn.dlopen_invalid*
2016-08-15 11:30:45 -07:00
Dimitry Ivanov
c9a95613a9
linker: add test for zero shstrndx
...
Bug: http://b/30166532
Bug: http://b/30795430
Test: bionic-unit-tests --gtest_filter=dlfcn.dlopen_invalid*
Change-Id: I4cec73635cf403df9dd60b9a294d2298bb0abe3d
2016-08-15 10:29:50 -07:00
Dimitry Ivanov
0deb70cd04
Merge changes Ibcefd6d9,I249c0815,If59cb6da
...
* changes:
Remove some duplication in the makefile
linker: add test for zero e_shentsize
Add test for misaligned section header
2016-08-13 03:42:15 +00:00
Treehugger Robot
3e3364a89d
Merge "versioner: Ignore if Clang is missing"
2016-08-13 03:27:11 +00:00
Andreas Gampe
64da006063
versioner: Ignore if Clang is missing
...
This happens in some branches. Work around for now.
Change-Id: I75c01a3ae52ce89f6c56a19728903bf86db0a309
2016-08-12 19:10:21 -07:00
Treehugger Robot
e73fc63f96
Merge "Move some POSIX math functions out of _USE_GNU/_USE_BSD."
2016-08-13 00:43:54 +00:00
Josh Gao
0538dcfd4c
Merge "versioner: copy unmodified headers when preprocessing."
2016-08-13 00:28:34 +00:00
Dimitry Ivanov
ff25581083
Remove some duplication in the makefile
...
Bug: http://b/30795430
Test: bionic-unit-tests --gtest_filter=dlfcn.dlopen_invalid*
Change-Id: Ibcefd6d913abafe0b202a83399db72050510cd5d
2016-08-12 16:55:17 -07:00
Elliott Hughes
f8ebaa4985
Fix mktime's errno behavior.
...
Don't touch errno on success, do set it to EOVERFLOW (the only allowed errno
value according to POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/mktime.html )
on failure.
Bug: http://b/30477946
Change-Id: Ia915c7b9c3bfcd2f9025530cf5b068fe4dd4fd9e
2016-08-12 16:28:36 -07:00
Elliott Hughes
c1929e4452
Move some POSIX math functions out of _USE_GNU/_USE_BSD.
...
The signgam global and the j0/j1/jn and y0/y1/yn functions are POSIX.
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/math.h.html
Change-Id: I802997a2060a011a777c2b641f28c1d58dfe49ed
2016-08-12 16:25:40 -07:00
Josh Gao
79786347db
versioner: copy unmodified headers when preprocessing.
...
Change-Id: I2517f560fd44fb519d6ee7e8d0a485036d3ecd87
2016-08-12 16:24:04 -07:00
Treehugger Robot
9519fc08b7
Merge changes I9b662ca9,Iad7f3fc9,I1b16a4b5,I47b07755,I6496a8c4, ...
...
* changes:
versioner: add support for preprocessing headers.
versioner: fix makefiles.
versioner: purge iostreams.
versioner: assorted fixes.
versioner: replace availability attributes with annotate.
versioner: improve the test script.
2016-08-12 23:14:19 +00:00
Dimitry Ivanov
cb86c3128f
linker: add test for zero e_shentsize
...
Bug: http://b/30166532
Bug: http://b/30795430
Change-Id: I249c081563f0ca7bcc799d8445a53683616eaa4e
Test: run bionic-unit-tests --gtest_filter=dlfcn.dlopen_invalid*
2016-08-12 15:28:42 -07:00
Dimitry Ivanov
972e3d0787
Add test for misaligned section header
...
Make sure linker does not crash when dlopening
elf-file with odd section header offset.
Bug: http://b/30795430
Bug: http://b/30687964
Test: bionic-unit-tests --gtest_filter=dlfcn.dlopen_invalid*
Change-Id: If59cb6da85b8752a69dc5687de85f9a9b74c92b4
2016-08-12 14:48:15 -07:00
Treehugger Robot
6f89d02f55
Merge "POSIX says <sys/types.h> should make all the pthread_* types available."
2016-08-12 21:32:21 +00:00
Elliott Hughes
280236537e
POSIX says <sys/types.h> should make all the pthread_* types available.
...
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
Change-Id: I606194e15ceaa3129f266a9a460c358eaa8bf686
2016-08-12 13:18:32 -07:00
Treehugger Robot
cea5c8a609
Merge "POSIX says <locale.h> makes NULL visible."
2016-08-12 19:56:46 +00:00
Elliott Hughes
51b3b44585
Merge "Fix sysconf(_SC_ARG_MAX)."
2016-08-12 19:53:46 +00:00
Treehugger Robot
4a77fa3dcd
Merge "Fix recvfrom prototype."
2016-08-12 19:48:38 +00:00
Treehugger Robot
f8f2949744
Merge "Fix pthread_barrierattr_getpshared prototype."
2016-08-12 19:13:37 +00:00
Treehugger Robot
a1858a7f59
Merge "POSIX says IPPORT_RESERVED is in <netdb.h>."
2016-08-12 18:52:58 +00:00
Treehugger Robot
5b45d2fec8
Merge "POSIX says SEM_FAILED shall have type sem_t*."
2016-08-12 18:42:44 +00:00
Treehugger Robot
f135e4e56b
Merge "POSIX says <fcntl.h> makes SEEK_* visible."
2016-08-12 18:35:17 +00:00