Searched refs:gid (Results 1 - 15 of 15) 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.java90 public static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(path, uid, gid); } argument
137 public static void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { Libcore.os.fchown(fd, uid, gid); } argument
288 public static void lchown(String path, int uid, int gid) throws ErrnoException { Libcore.os.lchown(path, uid, gid); } argument
496 public static void setgid(int gid) throws ErrnoException { Libcore.os.setgid(gid); } argument
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixUserPrincipals.java44 private final int id; // uid or gid
64 int gid() { method in class:UnixUserPrincipals.User
125 // return GroupPrincipal representing given gid
126 static Group fromGid(int gid) { argument
129 name = Util.toString(getgrgid(gid));
131 name = Integer.toString(gid);
133 return new Group(gid, name);
151 // lookup failed, allow input to be uid or gid
178 int gid = lookupName(group, true);
179 return new Group(gid, grou
[all...]
H A DUnixFileAttributeViews.java243 final void setOwners(int uid, int gid) throws IOException { argument
247 chown(file, uid, gid);
249 lchown(file, uid, gid);
290 int gid = ((UnixUserPrincipals.Group)group).gid();
291 setOwners(-1, gid);
302 private static final String GID_NAME = "gid";
360 builder.add(GID_NAME, attrs.gid());
H A DUnixNativeDispatcher.java332 static void chown(UnixPath path, int uid, int gid) throws UnixException { argument
335 chown0(buffer.address(), uid, gid);
340 private static native void chown0(long pathAddress, int uid, int gid) argument
346 static void lchown(UnixPath path, int uid, int gid) throws UnixException { argument
349 lchown0(buffer.address(), uid, gid);
354 private static native void lchown0(long pathAddress, int uid, int gid) argument
360 static native void fchown(int fd, int uid, int gid) throws UnixException; argument
464 * struct group *getgrgid(gid_t gid);
468 static native byte[] getgrgid(int gid) throws UnixException; argument
H A DUnixCopyFile.java163 fchown(dfd, attrs.uid(), attrs.gid());
166 chown(target, attrs.uid(), attrs.gid());
258 fchown(fo, attrs.uid(), attrs.gid());
320 lchown(target, attrs.uid(), attrs.gid());
346 chown(target, attrs.uid(), attrs.gid());
H A DUnixSecureDirectoryStream.java523 private void setOwners(int uid, int gid) throws IOException { argument
534 fchown(fd, uid, gid);
569 int gid = ((UnixUserPrincipals.Group)group).gid();
570 setOwners(-1, gid);
H A DUnixFileAttributes.java106 int gid() { return st_gid; } method in class:UnixFileAttributes
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java76 @Override public void chown(String path, int uid, int gid) throws ErrnoException { argument
78 os.chown(path, uid, gid);
132 @Override public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { argument
134 os.fchown(fd, uid, gid);
175 @Override public void lchown(String path, int uid, int gid) throws ErrnoException { argument
177 os.lchown(path, uid, gid);
H A DOs.java56 public void chown(String path, int uid, int gid) throws ErrnoException; argument
66 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; argument
109 public void lchown(String path, int uid, int gid) throws ErrnoException; argument
150 public void setgid(int gid) throws ErrnoException; argument
H A DForwardingOs.java71 public void chown(String path, int uid, int gid) throws ErrnoException { os.chown(path, uid, gid); } argument
81 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { os.fchown(fd, uid, gid); } argument
123 public void lchown(String path, int uid, int gid) throws ErrnoException { os.lchown(path, uid, gid); } argument
163 public void setgid(int gid) throws ErrnoException { os.setgid(gid); } argument
H A DLinux.java62 public native void chown(String path, int uid, int gid) throws ErrnoException; argument
72 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; argument
114 public native void lchown(String path, int uid, int gid) throws ErrnoException; argument
237 public native void setgid(int gid) throws ErrnoException; argument
/libcore/ojluni/src/main/native/
H A DUnixNativeDispatcher.c564 jlong pathAddress, jint uid, jint gid)
569 RESTARTABLE(chown(path, (uid_t)uid, (gid_t)gid), err);
576 Java_sun_nio_fs_UnixNativeDispatcher_lchown0(JNIEnv* env, jclass this, jlong pathAddress, jint uid, jint gid) argument
581 RESTARTABLE(lchown(path, (uid_t)uid, (gid_t)gid), err);
588 Java_sun_nio_fs_UnixNativeDispatcher_fchown(JNIEnv* env, jclass this, jint filedes, jint uid, jint gid) argument
592 RESTARTABLE(fchown(filedes, (uid_t)uid, (gid_t)gid), err);
1017 Java_sun_nio_fs_UnixNativeDispatcher_getgrgid(JNIEnv* env, jclass this, jint gid) argument
1041 RESTARTABLE_RETURN_PTR(getgrgid_r((gid_t)gid, &grent, grbuf, (size_t)buflen), g);
1043 RESTARTABLE(getgrgid_r((gid_t)gid, &grent, grbuf, (size_t)buflen, &g), res);
1118 jint gid local
563 Java_sun_nio_fs_UnixNativeDispatcher_chown0(JNIEnv* env, jclass this, jlong pathAddress, jint uid, jint gid) argument
[all...]
/libcore/luni/src/main/native/
H A Dlibcore_io_Linux.cpp531 return env->NewObject(JniConstants::structUcredClass, ctor, u.pid, u.uid, u.gid);
1078 static void Linux_chown(JNIEnv* env, jobject, jstring javaPath, jint uid, jint gid) { argument
1083 throwIfMinusOne(env, "chown", TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid)));
1162 static void Linux_fchown(JNIEnv* env, jobject, jobject javaFd, jint uid, jint gid) { argument
1164 throwIfMinusOne(env, "fchown", TEMP_FAILURE_RETRY(fchown(fd, uid, gid)));
1706 static void Linux_lchown(JNIEnv* env, jobject, jstring javaPath, jint uid, jint gid) { argument
1711 throwIfMinusOne(env, "lchown", TEMP_FAILURE_RETRY(lchown(path.c_str(), uid, gid)));
2159 static void Linux_setgid(JNIEnv* env, jobject, jint gid) { argument
2160 throwIfMinusOne(env, "setgid", TEMP_FAILURE_RETRY(setgid(gid)));
/libcore/luni/src/test/java/libcore/libcore/io/
H A DOsTest.java128 assertEquals(Libcore.os.getgid(), credentials.gid);

Completed in 143 milliseconds