aboutsummaryrefslogtreecommitdiff
path: root/libc/kernel/uapi
Commit message (Collapse)AuthorAgeFilesLines
* Set VIDEO_MAX_FRAME value back to 64.Christopher Ferris2022-04-221-1/+6
| | | | | | | | | | | | | This value was changed from 64 to 32, but it really should not have gone down. So fixing back to 64 manually, and then the next kernel header update should remove the comment but leave the value unchanged. Bug: 228783882 Test: Compiles. (cherry picked from commit 880308daa00c0412a2cfc598fc46ecdbbead8ff1) Change-Id: I2d81d7bc76fcaa905dce0abb094d61d02c481a5e
* Update to v5.17 kernel headers.Christopher Ferris2022-03-2252-92/+1321
| | | | | | | | | | | 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-1081-374/+894
| | | | | | | | | | | 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-0272-308/+1095
| | | | | | | | | | | 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-0270-118/+679
| | | | | | | | | | | 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
* Define sockaddr_storage in bionicColin Cross2021-07-145-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | Bionic currently renames the kernel's __kernel_sockaddr_storage to sockaddr_storage. We would like to reuse the bionic kernel headers for musl, but musl defines its own sockaddr_storage, causing redefinition errors when the musl and kernel headers are both included. Give bionic its own definition of sockaddr_storage so the kernel one can be left as __kernel_sockaddr_storage, avoiding the conflict in musl. Some of the structs in netinet/in.h contain sockaddr_storage members. There are definitions in linux/in.h, but they now use the __kernel_sockaddr_storage naming. To avoid having to copy the structs from linux/in.h into netinet/in.h, add some #define hackery to rename __kernel_sockaddr_storage to sockaddr_storage when including linux/in.h from netinet/in.h. Bug: 190084016 Test: m checkbuild Test: bionic-unit-tests Change-Id: I8f654511722b3a4a8e0bb146e4418ebcd370305c
* Update to v5.13 kernel headers.Christopher Ferris2021-07-0173-782/+1906
| | | | | | | | | | | 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-0363-63/+943
| | | | | | | | | | | | | 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-1699-904/+1918
| | | | | | | | | | | 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-1495-187/+996
| | | | | | | | | | | 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-1991-219/+900
| | | | | | | | | | | 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-0493-60/+1342
| | | | | | | | | | | 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 the generate script.Christopher Ferris2020-06-041-216/+0
| | | | | | | | | | | | The arm kvm.h file has been deprecated, so nobody should be including it. Therefore, remove the hack to copy the file out of the tools directory. Also, update to remove the arm kvm.h file. Test: Ran generate and update script and verified only the arm kvm.h Test: was deleted. Test: Builds and boots on a walleye. Change-Id: I95dcc8877bdb2da2858b0b9d0aa95d1d2072cf9a
* Update to v5.7 kernel headers.Christopher Ferris2020-06-0276-148/+1232
| | | | | | | | | | | | | | | Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-5.7 Update the generate_uapi_headers.sh where the types.h file is now in the right place, but kvm.h is not. Test: Booted cuttlefish/bonito. Test: Ran bionic-unit-tests on cuttlefish/bonito. Change-Id: Ice9ce370a658e320b80f564b34a4431927fcf100
* Update to v5.6 kernel headers.Christopher Ferris2020-04-1081-271/+1211
| | | | | | | | | | | | | | | | | | | | 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-0791-246/+744
| | | | | | | | | | | | | | | 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
* Stop generating unused headers.Elliott Hughes2020-02-0348-4457/+0
| | | | | | | | These just cause confusion because they often have different values/layouts, but they're never actually used. Test: treehugger Change-Id: I424034088e017c919f62fcefa7d6d3f903f31cfb
* _FILE_OFFSET_BITS=64 support for fcntl.Elliott Hughes2020-01-292-25/+3
| | | | | | | | | | | | | | | | | | | 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-1294-145/+1025
| | | | | | | | | | | | 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-03102-863/+1253
| | | | | Test: Builds and run unit tests on taimen/cuttlefish. Change-Id: I6ebd8f179d159ac974555e8edca588083e8081b3
* Update to kernel headers v5.2.11.Christopher Ferris2019-09-035-25/+17
| | | | | | Test: Build and boots on taimen. Test: Bionic unit tests all pass on taimen. Change-Id: I80abb6f9abbff9ca20ce6c7c912a259b5ca86fa2
* Update to kernel headers v5.2.6.Christopher Ferris2019-08-055-9/+10
| | | | | | | Also, fix a bug in update_all.py when the syscalls file does not change. Test: Builds and boots on a taimen. Change-Id: If85b00daef2c176f804a0861894f5bbca9c6d5df
* Update to kernel headers v5.2.Christopher Ferris2019-07-0890-102/+1457
| | | | | Test: Booted a taimen, ran unit bionic unit tests. Change-Id: I3522c59793bbcef98ea515996a481d92f14b8816
* Update to kernel headers to v5.1.3.Christopher Ferris2019-05-20100-104/+1280
| | | | | | Test: Builds and boots taimen. Test: Ran bionic unit tests. Change-Id: Ieaca8709d568f075df8cac60c9da2c0ed1916963
* Update kernel headers to v5.0.3.Christopher Ferris2019-03-212-1/+8
| | | | | | Test: Build and boot taimen. Change-Id: I6ed881b5dc6dc7d0a6cc56edcd09b42ddd185b62 Merged-In: I6ed881b5dc6dc7d0a6cc56edcd09b42ddd185b62
* Update to v5.0 kernel headers.Christopher Ferris2019-03-0786-1291/+2088
| | | | | Test: Builds and boots on taimen. Change-Id: I13843bf1ab30ea89a50852adc88f2cba8401bded
* Update to v4.20.1 kernel headers.Christopher Ferris2019-01-1570-154/+832
| | | | | | | | | | | | | | | | | | | | 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 kernel headers with new parser.Christopher Ferris2019-01-1028-0/+78
| | | | | Test: Builds. Change-Id: I3f0714d53ac893ccc3e66f7a92d0ea7a6737f1c3
* Update to v4.19 kernel headers.Christopher Ferris2018-10-30152-688/+2870
| | | | | | Test: Builds and boots. Change-Id: I99a9ed79666e143b47f02ca4e59eed94f69b7e4a (cherry picked from commit a981e2e52e2e95a65fa9c9b6fb16dcb4c83dd576)
* Update to v4.17.3 kernel headers.Christopher Ferris2018-06-27161-1925/+3514
| | | | | Test: Builds, boots on a walleye. Change-Id: I389d8b61ec00ea309e38d1b1a2e0dace48c21edb
* Remove ion.h from bionic uapi headers.Christopher Ferris2018-04-241-59/+0
| | | | | | | Bug: 77976082 Test: Ran the generate script and verified ion.h is deleted. Change-Id: I33b3aeef66f08f35dd496a073931b2fe2c80a1d6
* Use the ion.h from the kernel headers.Christopher Ferris2018-02-221-24/+5
| | | | | | | | All code that needs to use the frozen version of ion.h header should have a copy, so move to the version as parsed from the real headers. Test: Compiled and boots. Change-Id: If9feae9c163ca64c4862045e86611fd3cf1fc18e
* Update to v4.15 kernel headers.Christopher Ferris2018-02-0177-144/+1018
| | | | | Test: Compiles, boots bullhead/hikey960. Change-Id: I118beb8b6cac0881b1270f9bf6981959297a41a8
* Use in_addr in ip_mreq_source and ip_msfilter.Elliott Hughes2017-12-147-36/+38
| | | | | | | | | | | | | | | | | | This adds a new mechanism to say "replace struct S with #include <bits/S.h>". Also switch epoll_event over to the new mechanism. Also use the kernel's struct sockaddr_storage directly rather than behind an unnecessary #define. This patch also removes some dead code in the header scrubber. This code still needs rewriting completely. I learned that a "block" isn't necessarily a single struct definition, say; it might be a run of them. It seems like a block is a run of preprocessor directives or a run of regular code. Bug: https://issuetracker.google.com/36987220 Test: new test Change-Id: Ic6a5c09559766a4babe3cd4c3ea538b885e07308
* Merge "Change ARG_MAX/_SC_ARG_MAX back to a constant."Elliott Hughes2017-11-161-1/+1
|\
| * Change ARG_MAX/_SC_ARG_MAX back to a constant.Elliott Hughes2017-11-151-1/+1
| | | | | | | | | | | | | | | | As per the lkml thread https://lkml.org/lkml/2017/11/1/946. Bug: http://b/65818597 Test: ran tests Change-Id: I7a0610e6903e6761f2b31416e2f5017bd7a60659
* | Update to kernel headers v4.14.Christopher Ferris2017-11-15125-367/+1560
|/ | | | | | | | | | | | | 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
* Revert "Revert "Move back to the previous version of ion.h.""Christopher Ferris2017-08-031-5/+23
| | | | | | | | This reverts commit 89d6c321f8380a461741b820996d92120fa99d9c. Reason for revert: Still a bunch of branches/builds depending on this incorrectly. Change-Id: I8de678848b0e5445837c02c0942f7388d27dbfd7
* Revert "Move back to the previous version of ion.h."Christopher Ferris2017-08-011-23/+5
| | | | | | | | This reverts commit 1a0344d65dd0f5d965029110985094d94d177389. Reason for revert: Fixed the original problem. Change-Id: Ibf4ba05160048a3216e0cc49cc88519f73d00fa4
* Move back to the previous version of ion.h.Christopher Ferris2017-07-291-5/+23
| | | | | | | | The new kernel headers changed this and lots of parts of the tree want the old definition, so restore the previous version. Test: Builds. Change-Id: I725e56bb7c51c9fcd23ebc4b67eac33d66e196e7
* Update to kernel headers v4.12.3.Christopher Ferris2017-07-27156-352/+2420
| | | | | Test: Built angler. Change-Id: Icbcf4fac2334de8409b049ed7a3b4c24b4e98ce9
* Remove the repetitive warnings from the uapi headers.Elliott Hughes2017-05-25894-19028/+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
* Make `union semun` usable.Elliott Hughes2017-05-181-1/+1
| | | | | | | | | | | | | | This is a bit bogus because it's been removed from glibc (though not thoroughly) and is never useful on Android (because the system calls in question are compiled out of Android kernels, and SELinux would disallow them even if you weren't running an Android kernel). This also means that on glibc you need to include <linux/sem.h> for this and on bionic you need <sys/sem.h> (and for either if you #include the other file, you won't get this union). Bug: https://github.com/android-ndk/ndk/issues/400 Test: added new test Change-Id: I47f721da77515531f616d6ad8479bfbc9b60ee47
* Update static functions/macro definitions.Christopher Ferris2017-04-211-22/+67
| | | | | | | | | | | | | | | | Fix the list of static functions coming from swab.h to match the ones exported by glibc. Force the definition of __HAVE_BUILTIN_BSWAP{16,32,64}__ so the headers use the builtin. Add a unit test to guarantee that kernel header updates do not break this. Test: Built and booted angler. Test: Built the bionic unit tests for arm, arm64, mips, x86, x86_64. Test: Ran the new test on angler and glibc. Change-Id: I4ce229e3f198c204186d72bf22dd97b5cdf239e4
* Merge "Update to kernel headers v4.10."Christopher Ferris2017-02-2786-2564/+4933
|\
| * Update to kernel headers v4.10.Christopher Ferris2017-02-2186-2564/+4933
| | | | | | | | | | Test: Built angler, booted on angler, ran bionic unit tests. Change-Id: Ia24511e74106116ea84b44ab724865ec492de8f9
* | Use <linux/eventpoll.h> to implement <sys/epoll.h>.Elliott Hughes2017-02-231-1/+1
|/ | | | | | Bug: https://github.com/android-ndk/ndk/issues/302 Test: builds Change-Id: Ia3074326a128c38f2488e342c028cc030801cfd9
* Update to kernel headers v4.9.6.Christopher Ferris2017-01-272-4/+6
| | | | | Test: Built arm/arm64/x86/x86_64 targets. Change-Id: Id4d2711aaa96fe537f3726a0a89f2959e9cca34a
* Update to kernel headers v4.9.3.Christopher Ferris2017-01-2582-2224/+4110
| | | | | | | 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.8.14.Christopher Ferris2016-12-1277-1822/+3392
| | | | | Test: Built mips/arm/arm64/x86/x86_64. Built and booted angler. Change-Id: Icedb035769d8a41a170a6f1ecd707113e332d8dd