summaryrefslogtreecommitdiffstats
path: root/luni/src/main
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-02-26 13:59:14 -0800
committerNick Kralevich <nnk@google.com>2015-02-26 13:59:14 -0800
commitb86b5104cb218849c1adeb38fa20c8a9110cadb7 (patch)
tree51634f46a9b40a7adc86df199019e45a4c81d113 /luni/src/main
parenta8a489492749b845cc2a85d67c664449d7b0b019 (diff)
downloadlibcore-b86b5104cb218849c1adeb38fa20c8a9110cadb7.zip
libcore-b86b5104cb218849c1adeb38fa20c8a9110cadb7.tar.gz
libcore-b86b5104cb218849c1adeb38fa20c8a9110cadb7.tar.bz2
Add ST_* constants to OsConstants
Expose ST_* constants via OsConstants. Without these constants being exposed, it's impossible to meaningfully use StructStatVfs.f_flag returned from the Os.statvfs() call. For now, @hide the new constants. Change-Id: I82536521972e9e87a1936dd712b9e8153d120cc1
Diffstat (limited to 'luni/src/main')
-rw-r--r--luni/src/main/java/android/system/OsConstants.java9
-rw-r--r--luni/src/main/native/android_system_OsConstants.cpp9
2 files changed, 18 insertions, 0 deletions
diff --git a/luni/src/main/java/android/system/OsConstants.java b/luni/src/main/java/android/system/OsConstants.java
index 55870ec..8389e5f 100644
--- a/luni/src/main/java/android/system/OsConstants.java
+++ b/luni/src/main/java/android/system/OsConstants.java
@@ -434,6 +434,15 @@ public final class OsConstants {
public static final int STDERR_FILENO = placeholder();
public static final int STDIN_FILENO = placeholder();
public static final int STDOUT_FILENO = placeholder();
+ /** @hide */ public static final int ST_MANDLOCK = placeholder();
+ /** @hide */ public static final int ST_NOATIME = placeholder();
+ /** @hide */ public static final int ST_NODEV = placeholder();
+ /** @hide */ public static final int ST_NODIRATIME = placeholder();
+ /** @hide */ public static final int ST_NOEXEC = placeholder();
+ /** @hide */ public static final int ST_NOSUID = placeholder();
+ /** @hide */ public static final int ST_RDONLY = placeholder();
+ /** @hide */ public static final int ST_RELATIME = placeholder();
+ /** @hide */ public static final int ST_SYNCHRONOUS = placeholder();
public static final int S_IFBLK = placeholder();
public static final int S_IFCHR = placeholder();
public static final int S_IFDIR = placeholder();
diff --git a/luni/src/main/native/android_system_OsConstants.cpp b/luni/src/main/native/android_system_OsConstants.cpp
index f00c922..46dabb3 100644
--- a/luni/src/main/native/android_system_OsConstants.cpp
+++ b/luni/src/main/native/android_system_OsConstants.cpp
@@ -491,6 +491,15 @@ static void OsConstants_initConstants(JNIEnv* env, jclass c) {
initConstant(env, c, "STDERR_FILENO", STDERR_FILENO);
initConstant(env, c, "STDIN_FILENO", STDIN_FILENO);
initConstant(env, c, "STDOUT_FILENO", STDOUT_FILENO);
+ initConstant(env, c, "ST_MANDLOCK", ST_MANDLOCK);
+ initConstant(env, c, "ST_NOATIME", ST_NOATIME);
+ initConstant(env, c, "ST_NODEV", ST_NODEV);
+ initConstant(env, c, "ST_NODIRATIME", ST_NODIRATIME);
+ initConstant(env, c, "ST_NOEXEC", ST_NOEXEC);
+ initConstant(env, c, "ST_NOSUID", ST_NOSUID);
+ initConstant(env, c, "ST_RDONLY", ST_RDONLY);
+ initConstant(env, c, "ST_RELATIME", ST_RELATIME);
+ initConstant(env, c, "ST_SYNCHRONOUS", ST_SYNCHRONOUS);
initConstant(env, c, "S_IFBLK", S_IFBLK);
initConstant(env, c, "S_IFCHR", S_IFCHR);
initConstant(env, c, "S_IFDIR", S_IFDIR);