diff options
| author | Nick Kralevich <nnk@google.com> | 2018-12-14 13:01:25 -0800 |
|---|---|---|
| committer | Nick Kralevich <nnk@google.com> | 2018-12-14 13:01:25 -0800 |
| commit | a36794447fb868bd830c9e80324692720a9673e4 (patch) | |
| tree | 05ae8bf37d9d189d1ed2a508eb3a821f1f0bb7d5 /annotations/generate_annotated_java_files.py | |
| parent | f47d9b9e625ba93486c720bb925c7eabdb540597 (diff) | |
OsConstants: Add SOCK_CLOEXEC and SOCK_NONBLOCK
Android makes the function socketpair() publicly visible, but never made
SOCK_CLOEXEC nor SOCK_NONBLOCK visible. Java socketpair() users have no
approved flag to ensure sockets are immediately created with O_CLOEXEC,
nor set the non-blocking status on sockets.
socketpair() documentation:
https://developer.android.com/reference/android/system/Os.html#socketpair(int,%20int,%20int,%20java.io.FileDescriptor,%20java.io.FileDescriptor)
Test: compiles
Test: cts-tradefed run cts -m CtsLibcoreTestCases -t libcore.android.system.OsConstantsTest
Bug: 120983106
Change-Id: Iba6bd318b14faad1696e5ea5d346d2f2f85b8044
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions
