/libcore/luni/src/main/java/android/system/ |
H A D | StructUcred.java | 30 /** The peer process' uid. */ 31 public final int uid; field in class:StructUcred 36 public StructUcred(int pid, int uid, int gid) { argument 38 this.uid = uid;
|
H A D | Os.java | 67 public static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(path, uid, gid); } argument 114 public static void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { Libcore.os.fchown(fd, uid, gid); } argument 194 /** @hide */ public static StructPasswd getpwuid(int uid) throws ErrnoException { return Libcore.os.getpwuid(uid); } argument 246 public static void lchown(String path, int uid, int gid) throws ErrnoException { Libcore.os.lchown(path, uid, gid); } argument 473 public static void setuid(int uid) throws ErrnoException { Libcore.os.setuid(uid); } argument [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | BlockGuardOs.java | 76 @Override public void chown(String path, int uid, int gid) throws ErrnoException { argument 78 os.chown(path, uid, gid); 119 @Override public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { argument 121 os.fchown(fd, uid, gid); 151 @Override public void lchown(String path, int uid, int gid) throws ErrnoException { argument 153 os.lchown(path, uid, gid);
|
H A D | Os.java | 50 public void chown(String path, int uid, int gid) throws ErrnoException; argument 60 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; argument 81 public StructPasswd getpwuid(int uid) throws ErrnoException; argument 98 public void lchown(String path, int uid, int gid) throws ErrnoException; argument 150 public void setuid(int uid) throws ErrnoException; argument
|
H A D | ForwardingOs.java | 59 public void chown(String path, int uid, int gid) throws ErrnoException { os.chown(path, uid, gid); } argument 69 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { os.fchown(fd, uid, gid); } argument 89 public StructPasswd getpwuid(int uid) throws ErrnoException { return os.getpwuid(uid); } argument 106 public void lchown(String path, int uid, int gid) throws ErrnoException { os.lchown(path, uid, gid); } argument 157 public void setuid(int uid) throws ErrnoException { os.setuid(uid); } argument [all...] |
H A D | Posix.java | 53 public native void chown(String path, int uid, int gid) throws ErrnoException; argument 63 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; argument 83 public native StructPasswd getpwuid(int uid) throws ErrnoException; argument 100 public native void lchown(String path, int uid, int gid) throws ErrnoException; argument 234 public native void setuid(int uid) throws ErrnoException; argument
|
/libcore/luni/src/main/native/ |
H A D | libcore_io_Posix.cpp | 424 return env->NewObject(JniConstants::structUcredClass, ctor, u.pid, u.uid, u.gid); 596 jobject getpwuid(uid_t uid) { argument 597 return process("getpwuid_r", getpwuid_r(uid, &mPwd, mBuffer.get(), mBufferSize, &mResult)); 673 static void Posix_chown(JNIEnv* env, jobject, jstring javaPath, jint uid, jint gid) { argument 678 throwIfMinusOne(env, "chown", TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid))); 757 static void Posix_fchown(JNIEnv* env, jobject, jobject javaFd, jint uid, jint gid) { argument 759 throwIfMinusOne(env, "fchown", TEMP_FAILURE_RETRY(fchown(fd, uid, gid))); 967 static jobject Posix_getpwuid(JNIEnv* env, jobject, jint uid) { argument 968 return Passwd(env).getpwuid(uid); 1146 static void Posix_lchown(JNIEnv* env, jobject, jstring javaPath, jint uid, jin argument 1702 Posix_setuid(JNIEnv* env, jobject, jint uid) argument [all...] |
/libcore/luni/src/test/java/libcore/io/ |
H A D | OsTest.java | 102 assertEquals(Libcore.os.getuid(), credentials.uid);
|