aboutsummaryrefslogtreecommitdiff
path: root/libc/kernel/uapi/asm-generic
Commit message (Collapse)AuthorAgeFilesLines
* Update to v5.17 kernel headers.Christopher Ferris2022-03-221-1/+2
| | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.17 Test: Boots on a flame and all bionic unit tests pass. Change-Id: I7057d7308241f3acfa600597d287994c39ababbc
* Update to v5.16 kernel headers.Christopher Ferris2022-01-102-1/+3
| | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.16 Test: Builds and bionic unit tests pass. Change-Id: I2522c4f2a0efb9f8a193e1f2d65868e478217502
* Update to v5.15 kernel headers.Christopher Ferris2021-11-022-1/+3
| | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.15 Test: Builds, and ran bionic unit tests on flame. Change-Id: I86901ea6d89fb0f7384b90a47bef35d194083c24
* Update to v5.14 kernel headers.Christopher Ferris2021-09-023-1/+8
| | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.14 Test: Builds, bionic unit tests. Change-Id: Iff3424da9fbf7ae89ebeb6daabb34c4aa650901f
* Update to v5.13 kernel headers.Christopher Ferris2021-07-012-7/+13
| | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.13 Test: Builds, bionic unit tests. Change-Id: Ia4360ca4a2808206f64187dcb234d73c5752624b
* Update to v5.12 kernel headers.Christopher Ferris2021-05-031-1/+2
| | | | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.12 Test: Boots flame device and runs bionic unit tests. Test: Boots acloud device and runs bionic unit tests. Change-Id: I8ac107ce9d4978be3ef9517b90ad6ecafd06785a
* Update to v5.11 kernel headers.Christopher Ferris2021-02-165-11/+31
| | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.11 Test: Built cuttlefish and flame images. Ran bionic unit tests on both. Change-Id: Ie60337aafad4bda55af99b6c8fe9f56bf2fa787f
* Update to v5.10 kernel headers.Christopher Ferris2020-12-143-2/+6
| | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.10 Test: Built cuttlefish and flame images. Ran bionic unit tests on both. Change-Id: I37ffc850970adcce1febbe2269c202632fce763a
* Update to v5.9 kernel headers.Christopher Ferris2020-10-191-0/+1
| | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.9 Test: Boots cuttlefish 64bit, passes 32 bit and 64 bit bionic unit tests. Change-Id: Ib5503355b238ea75595538e63eb000c867d06ef7
* Update to v5.8 kernel headers.Christopher Ferris2020-08-041-1/+2
| | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.8 Test: NA Change-Id: I2231c877589820fc09800a200cf4ac62ba74b04c
* Update to v5.6 kernel headers.Christopher Ferris2020-04-101-1/+3
| | | | | | | | | | | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.6 Add a new method for removing structures. This is to deal with the kernel headers changing some definitions of timeval to __kernel_old_timeval and itimerval to __kernel_old_itimerval. Remove the __kernel_old_XX strutures and change the other structures to the previous definitions. This only works so long as these structures stay the same, if they diverge, then a different strategy will need to be implemented. Test: Booted cuttlefish/walleye. Test: Ran bionic-unit-tests on cuttlefish/walleye. Change-Id: I0a61f4fa6e4155c602e0414d9b38c2e1637829af
* Update to v5.5 kernel headers.Christopher Ferris2020-02-075-8/+12
| | | | | | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.5 Test: Boots on walleye. Test: Ran bionic-unit-tests on walleye. Test: Boots on cuttlefish. Test: Ran bionic-unit-tests on cuttlefish. Change-Id: I57387d3c31e0ba5ad125ffe291cecf365c7b374e Merged-In: I57387d3c31e0ba5ad125ffe291cecf365c7b374e
* _FILE_OFFSET_BITS=64 support for fcntl.Elliott Hughes2020-01-291-16/+2
| | | | | | | | | | | | | | | | | | | On Android, fcntl is always implemented by fcntl64(2). This means that an LP32 binary can `fcntl(F_SETLK, struct flock)` (because fcntl64(2) passes through to the 32-bit fcntl(2) to handle F_SETLK), and it can also `fcntl(F_SETLK64, struct flock64)`. What it can't do before this patch is set _FILE_OFFSET_BITS=64 and then `fcntl(F_SETLK, struct flock)` where that `struct flock` is actually implicitly `struct flock64`. Move the kernel uapi structs out of the way, define them ourselves based on __LP64__ and _FILE_OFFSET_BITS, and fix up the relevant F_ constants. (Also add a .clang-format to turn off clang-format in libc/include/.) Bug: N/A Test: treehugger (and strace!) Change-Id: Iccd6c83d9133e1efcf93a7b49a6ae0f1bbd3d58b
* Update to android-mainline kernel headers v5.4.Christopher Ferris2019-12-121-0/+2
| | | | | | | | | | | | Update generate_uapi_headers.sh to checkout the android mainline kernel. Also, add a small modification to look for the kernel directory in common not linux-stable. Remove deprecated android headers from android/uapi/linux. Also, remove f_accessory.h since it's in the android mainline kernel. Test: Builds and runs on walleye. Change-Id: Ia371305e19f56e6bcc2db6d5b4d299819f07ffc6
* Update to kernel headers v5.3.2.Christopher Ferris2019-10-034-7/+12
| | | | | Test: Builds and run unit tests on taimen/cuttlefish. Change-Id: I6ebd8f179d159ac974555e8edca588083e8081b3
* Update to kernel headers v5.2.Christopher Ferris2019-07-082-3/+9
| | | | | Test: Booted a taimen, ran unit bionic unit tests. Change-Id: I3522c59793bbcef98ea515996a481d92f14b8816
* Update to kernel headers to v5.1.3.Christopher Ferris2019-05-203-12/+93
| | | | | | Test: Builds and boots taimen. Test: Ran bionic unit tests. Change-Id: Ieaca8709d568f075df8cac60c9da2c0ed1916963
* Update to v5.0 kernel headers.Christopher Ferris2019-03-072-23/+2
| | | | | Test: Builds and boots on taimen. Change-Id: I13843bf1ab30ea89a50852adc88f2cba8401bded
* Update to v4.20.1 kernel headers.Christopher Ferris2019-01-153-68/+74
| | | | | | | | | | | | | | | | | | | | This includes one manual change: In the file bionic/libc/kernel/uapi/linux/in.h, the macro IN_BADCLASS was not definied correctly. Change the macro from: #define IN_BADCLASS(a) ((((long int) (a)) == 0xffffffff) to: #define IN_BADCLASS(a) (((long int) (a)) == (long int)0xffffffff) This change is being pushed to the upstream kernels. Test: Builds and boots. Change-Id: Ia304773a9dc6789b34d9769d73742384d6afb571 Merged-In: Ia304773a9dc6789b34d9769d73742384d6afb571 (cherry picked from commit 967fb01cce73591281e7804e2c0fa9f83b618f5b)
* Update to v4.19 kernel headers.Christopher Ferris2018-10-308-40/+49
| | | | | | Test: Builds and boots. Change-Id: I99a9ed79666e143b47f02ca4e59eed94f69b7e4a (cherry picked from commit a981e2e52e2e95a65fa9c9b6fb16dcb4c83dd576)
* Update to v4.17.3 kernel headers.Christopher Ferris2018-06-274-103/+45
| | | | | Test: Builds, boots on a walleye. Change-Id: I389d8b61ec00ea309e38d1b1a2e0dace48c21edb
* Update to v4.15 kernel headers.Christopher Ferris2018-02-013-0/+25
| | | | | Test: Compiles, boots bullhead/hikey960. Change-Id: I118beb8b6cac0881b1270f9bf6981959297a41a8
* Update to kernel headers v4.14.Christopher Ferris2017-11-155-55/+83
| | | | | | | | | | | | | Remove the hiding of the kernel structure binder_fd_array_object. This structure now matches the structure used in the binder code. Load the libclang_android.so shared library directly for parsing. This file changed name in a recent update to the prebuilts. Test: Compiles arm/arm64/x86/x86_64. Test: Boots on hikey and boots on a sailfish. Test: Ran bionic unit tests on hikey and sailfish. Change-Id: I141a4b93ac3511cd58f4d12bb3c0d4efaa4c2742
* Update to kernel headers v4.12.3.Christopher Ferris2017-07-272-2/+5
| | | | | Test: Built angler. Change-Id: Icbcf4fac2334de8409b049ed7a3b4c24b4e98ce9
* Remove the repetitive warnings from the uapi headers.Elliott Hughes2017-05-2533-468/+0
| | | | | | | | | | | | | | Having WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS every four lines made the headers harder to read, made the diffs much worse each time we upgraded, and wasn't really providing any benefit. Before the next uapi update, let's just stop doing this. Bug: N/A Test: builds, manually inspected files look right Change-Id: Id7088cf750894c9d24950f3d53587fe3156c4f7d
* Update to kernel headers v4.10.Christopher Ferris2017-02-211-0/+1
| | | | | Test: Built angler, booted on angler, ran bionic unit tests. Change-Id: Ia24511e74106116ea84b44ab724865ec492de8f9
* Update to kernel headers v4.9.3.Christopher Ferris2017-01-252-32/+38
| | | | | | | Test: Built arm, arm64, x86, x86_64 targets. Test: Booted on angler, and ran bionic unit tests (32 bit and 64 bit). Change-Id: I14a8dcbea11b41f83431eabed6590cd25af07b1d
* Update to kernel headers v4.7.2.Christopher Ferris2016-08-294-119/+138
| | | | | | | | | | | | | | | | Modify the kernel header update script to rename C++ keyword struct members to something else. This fixes problems when including these kernel files in C++ code. Also, make a manual change to linux/fib_rules.h and comment out the value FRA_PAD since it conflicts with a special android kernel value FRA_UID_START that has not been upstreamed yet. Test: Built aosp_angler, aosp_x86_64, aosp_mips (bionic only) Test: Booted on angler and ran bionic unit tests Test: Built these changes in internal master Change-Id: Ia22b7e3ca409404696dba76311f49157f4a9ceed
* Updated to v4.4.1 kernel headers.Christopher Ferris2016-02-056-39/+62
| | | | | | | | | | | | Small modifications needed to allow compilation with the new headers: - Manually modify bionic/libc/kernel/uapi/asm-mips/asm/siginfo.h to remove the uapi from the include. - PR_XXX defines are now available for mips, so remove the definition from linker_mips.cpp. Bug: 23789423 Change-Id: I6dc8a03b012426d3a937db15cb24d3a50fab5a8c
* Define MAXHOSTNAMELEN explicitly in source files.Yabin Cui2015-02-091-1/+2
| | | | | | Bug: 19093777 Bug: 19092844 Change-Id: I0778507ca2d5c008abb9a6d6315d0909263a8817
* Switch kernel header parsing to python libclangTao Bao2015-02-0618-339/+339
| | | | | | | Replace the tokenizer in cpp.py with libclang. Bug: 18937958 Change-Id: I27630904c6d2849418cd5ca3d3c612ec3078686d
* Update kernel headers to v3.18.3.Christopher Ferris2015-01-261-1/+6
| | | | | Bug: 19127803 Change-Id: I67fa0832322ddd0032d909476047578be052bcf2
* Update kernel uapi headers to v3.16.1.Christopher Ferris2014-09-173-101/+101
| | | | | | | | | Other changes to support the new headers: - Remove the flock64 structure it is defined in the new headers. - Update the syscalls to correspond with the headers. Change-Id: I49a6b07e8b2bfffb67be71b07b58e4e6848fcc09
* Update kernel headers to v3.14.Christopher Ferris2014-07-108-74/+88
| | | | | | | | Other changes: - Modify update_all.py to skip ion header files when importing into aosp. - Fix generate_uapi_headers.sh to handle imports from a linux-stable kernel. Change-Id: I1ad81b9ccb063c21740f9875f2cc1238052cd4b3
* Keep the kernel header scrubber's data structures in sync.Elliott Hughes2014-05-011-1/+1
| | | | | | | | | If you rewrite the tokens of a #if you need to rewrite the expression to match because either might be used later. This was showing up as SIGRTMAX being rewritten in a #define but not in the #ifndef that guarded it, for which case I've added a unit test. Change-Id: I6929675461a1afe272edd667594529fd84a3dc4d
* Make SIGRTMIN hide the real-time signals we use internally.Elliott Hughes2014-04-301-2/+2
| | | | | | | | __SIGRTMIN will continue to tell the truth. This matches glibc's behavior (as evidenced by the fact that we don't need a special case in the strsignal test now). Change-Id: I1abe1681d516577afa8cd39c837ef12467f68dd2
* Fix kernel header scrubbing for LP64.Elliott Hughes2014-04-081-15/+20
| | | | Change-Id: I4caf44d41edd1b03a20d4c565e169c2b7a2f3686
* Fix NSIG.Elliott Hughes2014-02-111-3/+3
| | | | | | | | | | | Our sigset_t definition hasn't been tied to our NSIG definition since we switched to uapi headers, so we can now fix it without breaking the LP32 ABI. The kernel uapi headers define and use _NSIG, so we need to have our scripts rename the kernel's definitions out of the way, then we can define _NSIG and NSIG in terms of the kernel's off-by-one value. Bug: 12938442 Change-Id: Ic7c86fd5be5ad1d822f7b2b1d88c8a0d70a1ac0f
* Regenerate uapi header files.Elliott Hughes2013-11-213-31/+23
| | | | Change-Id: Idc934ed8ae17aba3300e4022e9b42177b0907e9d
* Make cpp.py less braindead.Elliott Hughes2013-11-063-5/+5
| | | | | | | | | | | | | | | | | | The old code ignored operator precedence (!), despite having two tables of operator precedence. The code's still pretty awful, but I've cleaned it up enough to fix this, the most important bug. This patch lets us correctly clean the uapi unistd.h, stat.h, and swab.h files, and also fixes the mess we were already making of various old kernel header files. I've added a bunch more tests, fixed the existing tests that the existing script was already failing (!), and changed the script so that the tests are run every time the script is run. We can probably remove some of the old kernel header files that we were parsing incorrectly, but we can worry about that later. Bug: 11253477 Change-Id: Ie66c65b3a7ae13b4e98ed8038a6a534f06eae0e5
* Add processed uapi kernel headers (common and aarch64-specific)Ben Cheng2013-10-1635-0/+2959
Change-Id: If0be7b83bd8fe7cb02472d173f7c452aabf61124