From bfa687ff9d7aa6cef970804cd1d82c042f15ff28 Mon Sep 17 00:00:00 2001 From: Erik Kline Date: Thu, 18 Jun 2015 18:14:36 +0900 Subject: Add ENONET to OsConstants Bug: 19537384 Change-Id: I155f3db741bdac96f1ecb1ccb15b31faab85e819 (cherry picked from commit 959a23e37abdfa26059e3770eacfe36dea8fc01c) --- luni/src/main/java/android/system/OsConstants.java | 4 ++++ luni/src/main/native/android_system_OsConstants.cpp | 1 + 2 files changed, 5 insertions(+) (limited to 'luni') diff --git a/luni/src/main/java/android/system/OsConstants.java b/luni/src/main/java/android/system/OsConstants.java index f70c7e1..dd6301b 100644 --- a/luni/src/main/java/android/system/OsConstants.java +++ b/luni/src/main/java/android/system/OsConstants.java @@ -207,6 +207,7 @@ public final class OsConstants { public static final int ENOLINK = placeholder(); public static final int ENOMEM = placeholder(); public static final int ENOMSG = placeholder(); + /** @hide */ public static final int ENONET = placeholder(); public static final int ENOPROTOOPT = placeholder(); public static final int ENOSPC = placeholder(); public static final int ENOSR = placeholder(); @@ -783,6 +784,9 @@ public final class OsConstants { if (errno == ENOMSG) { return "ENOMSG"; } + if (errno == ENONET) { + return "ENONET"; + } if (errno == ENOPROTOOPT) { return "ENOPROTOOPT"; } diff --git a/luni/src/main/native/android_system_OsConstants.cpp b/luni/src/main/native/android_system_OsConstants.cpp index a9031f4..a44d176 100644 --- a/luni/src/main/native/android_system_OsConstants.cpp +++ b/luni/src/main/native/android_system_OsConstants.cpp @@ -179,6 +179,7 @@ static void OsConstants_initConstants(JNIEnv* env, jclass c) { initConstant(env, c, "ENOLINK", ENOLINK); initConstant(env, c, "ENOMEM", ENOMEM); initConstant(env, c, "ENOMSG", ENOMSG); + initConstant(env, c, "ENONET", ENONET); initConstant(env, c, "ENOPROTOOPT", ENOPROTOOPT); initConstant(env, c, "ENOSPC", ENOSPC); initConstant(env, c, "ENOSR", ENOSR); -- cgit v1.1