From ed4522b9a04e9fb45b0b16df7d78629782c57843 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Wed, 12 Dec 2018 15:13:00 -0800 Subject: [PATCH] api/current.txt: 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 Bug: 120983106 Change-Id: Id7d1c853f3b00d6766ecf6dd88141da136011d6b --- api/current.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/current.txt b/api/current.txt index 7b48a5b60dc3e..b90b1a87d3363 100755 --- a/api/current.txt +++ b/api/current.txt @@ -40855,7 +40855,9 @@ package android.system { field public static final int SIOCGIFBRDADDR; field public static final int SIOCGIFDSTADDR; field public static final int SIOCGIFNETMASK; + field public static final int SOCK_CLOEXEC; field public static final int SOCK_DGRAM; + field public static final int SOCK_NONBLOCK; field public static final int SOCK_RAW; field public static final int SOCK_SEQPACKET; field public static final int SOCK_STREAM;