Searched refs:gid (Results 1 - 8 of 8) sorted by relevance

/libcore/luni/src/main/java/android/system/
H A DStructUcred.java33 /** The peer process' gid. */
34 public final int gid; field in class:StructUcred
36 public StructUcred(int pid, int uid, int gid) { argument
39 this.gid = gid;
H A DOs.java73 public static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(path, uid, gid); } argument
120 public static void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { Libcore.os.fchown(fd, uid, gid); } argument
252 public static void lchown(String path, int uid, int gid) throws ErrnoException { Libcore.os.lchown(path, uid, gid); } argument
445 public static void setgid(int gid) throws ErrnoException { Libcore.os.setgid(gid); } argument
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java77 @Override public void chown(String path, int uid, int gid) throws ErrnoException { argument
79 os.chown(path, uid, gid);
120 @Override public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { argument
122 os.fchown(fd, uid, gid);
152 @Override public void lchown(String path, int uid, int gid) throws ErrnoException { argument
154 os.lchown(path, uid, gid);
H A DOs.java50 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
98 public void lchown(String path, int uid, int gid) throws ErrnoException; argument
138 public void setgid(int gid) throws ErrnoException; argument
H A DForwardingOs.java59 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
106 public void lchown(String path, int uid, int gid) throws ErrnoException { os.lchown(path, uid, gid); } argument
145 public void setgid(int gid) throws ErrnoException { os.setgid(gid); } argument
H A DPosix.java53 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
100 public native void lchown(String path, int uid, int gid) throws ErrnoException; argument
222 public native void setgid(int gid) throws ErrnoException; argument
/libcore/luni/src/main/native/
H A Dlibcore_io_Posix.cpp464 return env->NewObject(JniConstants::structUcredClass, ctor, u.pid, u.uid, u.gid);
783 static void Posix_chown(JNIEnv* env, jobject, jstring javaPath, jint uid, jint gid) { argument
788 throwIfMinusOne(env, "chown", TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid)));
867 static void Posix_fchown(JNIEnv* env, jobject, jobject javaFd, jint uid, jint gid) { argument
869 throwIfMinusOne(env, "fchown", TEMP_FAILURE_RETRY(fchown(fd, uid, gid)));
1248 static void Posix_lchown(JNIEnv* env, jobject, jstring javaPath, jint uid, jint gid) { argument
1253 throwIfMinusOne(env, "lchown", TEMP_FAILURE_RETRY(lchown(path.c_str(), uid, gid)));
1656 static void Posix_setgid(JNIEnv* env, jobject, jint gid) { argument
1657 throwIfMinusOne(env, "setgid", TEMP_FAILURE_RETRY(setgid(gid)));
/libcore/luni/src/test/java/libcore/io/
H A DOsTest.java111 assertEquals(Libcore.os.getgid(), credentials.gid);

Completed in 263 milliseconds