Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/main/java/android/system/
DStructUcred.java31 public final int uid; field in StructUcred
36 public StructUcred(int pid, int uid, int gid) { in StructUcred() argument
38 this.uid = uid; in StructUcred()
DOs.java65 …public static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(p… in chown() argument
110 …ic static void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { Libcore.os.fcho… in fchown() argument
185 …ide */ public static StructPasswd getpwuid(int uid) throws ErrnoException { return Libcore.os.getp… in getpwuid() argument
235 …public static void lchown(String path, int uid, int gid) throws ErrnoException { Libcore.os.lchown… in lchown() argument
434 public static void setuid(int uid) throws ErrnoException { Libcore.os.setuid(uid); } in setuid() argument
/libcore/luni/src/main/java/libcore/io/
DForwardingOs.java58 …public void chown(String path, int uid, int gid) throws ErrnoException { os.chown(path, uid, gid);… in chown() argument
67 …public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { os.fchown(fd, uid,… in fchown() argument
86 public StructPasswd getpwuid(int uid) throws ErrnoException { return os.getpwuid(uid); } in getpwuid() argument
102 …public void lchown(String path, int uid, int gid) throws ErrnoException { os.lchown(path, uid, gid… in lchown() argument
148 public void setuid(int uid) throws ErrnoException { os.setuid(uid); } in setuid() argument
DBlockGuardOs.java76 @Override public void chown(String path, int uid, int gid) throws ErrnoException { in chown() argument
78 os.chown(path, uid, gid); in chown()
119 @Override public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { in fchown() argument
121 os.fchown(fd, uid, gid); in fchown()
151 @Override public void lchown(String path, int uid, int gid) throws ErrnoException { in lchown() argument
153 os.lchown(path, uid, gid); in lchown()
DOs.java49 public void chown(String path, int uid, int gid) throws ErrnoException; in chown() argument
58 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; in fchown() argument
78 public StructPasswd getpwuid(int uid) throws ErrnoException; in getpwuid() argument
94 public void lchown(String path, int uid, int gid) throws ErrnoException; in lchown() argument
141 public void setuid(int uid) throws ErrnoException; in setuid() argument
DPosix.java52 public native void chown(String path, int uid, int gid) throws ErrnoException; in chown() argument
61 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; in fchown() argument
80 public native StructPasswd getpwuid(int uid) throws ErrnoException; in getpwuid() argument
96 public native void lchown(String path, int uid, int gid) throws ErrnoException; in lchown() argument
222 public native void setuid(int uid) throws ErrnoException; in setuid() argument
/libcore/luni/src/main/native/
Dlibcore_io_Posix.cpp345 return env->NewObject(JniConstants::structUcredClass, ctor, u.pid, u.uid, u.gid); in makeStructUcred()
430 jobject getpwuid(uid_t uid) { in getpwuid() argument
431 return process("getpwuid_r", getpwuid_r(uid, &mPwd, mBuffer.get(), mBufferSize, &mResult)); in getpwuid()
500 static void Posix_chown(JNIEnv* env, jobject, jstring javaPath, jint uid, jint gid) { in Posix_chown() argument
505 throwIfMinusOne(env, "chown", TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid))); in Posix_chown()
578 static void Posix_fchown(JNIEnv* env, jobject, jobject javaFd, jint uid, jint gid) { in Posix_fchown() argument
580 throwIfMinusOne(env, "fchown", TEMP_FAILURE_RETRY(fchown(fd, uid, gid))); in Posix_fchown()
784 static jobject Posix_getpwuid(JNIEnv* env, jobject, jint uid) { in Posix_getpwuid() argument
785 return Passwd(env).getpwuid(uid); in Posix_getpwuid()
940 static void Posix_lchown(JNIEnv* env, jobject, jstring javaPath, jint uid, jint gid) { in Posix_lchown() argument
[all …]
/libcore/luni/src/test/java/libcore/io/
DOsTest.java79 assertEquals(Libcore.os.getuid(), credentials.uid); in checkUnixDomainSocket()