/libcore/luni/src/main/java/android/system/ |
D | StructUcred.java | 34 public final int gid; field in StructUcred 36 public StructUcred(int pid, int uid, int gid) { in StructUcred() argument 39 this.gid = gid; in StructUcred()
|
D | Os.java | 102 …c static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(path, … in chown() argument 152 …ic void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { Libcore.os.fchown(fd, … in fchown() argument 337 … static void lchown(String path, int uid, int gid) throws ErrnoException { Libcore.os.lchown(path,… in lchown() argument 561 public static void setgid(int gid) throws ErrnoException { Libcore.os.setgid(gid); } in setgid() argument
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixUserPrincipals.java | 64 int gid() { in gid() method in UnixUserPrincipals.User 126 static Group fromGid(int gid) { in fromGid() argument 129 name = Util.toString(getgrgid(gid)); in fromGid() 131 name = Integer.toString(gid); in fromGid() 133 return new Group(gid, name); in fromGid() 178 int gid = lookupName(group, true); in lookupGroup() local 179 return new Group(gid, group); in lookupGroup()
|
D | UnixFileAttributeViews.java | 243 final void setOwners(int uid, int gid) throws IOException { in setOwners() argument 247 chown(file, uid, gid); in setOwners() 249 lchown(file, uid, gid); in setOwners() 290 int gid = ((UnixUserPrincipals.Group)group).gid(); in setGroup() local 291 setOwners(-1, gid); in setGroup() 360 builder.add(GID_NAME, attrs.gid()); in readAttributes()
|
D | UnixNativeDispatcher.java | 332 static void chown(UnixPath path, int uid, int gid) throws UnixException { in chown() argument 335 chown0(buffer.address(), uid, gid); in chown() local 340 private static native void chown0(long pathAddress, int uid, int gid) in chown0() argument 346 static void lchown(UnixPath path, int uid, int gid) throws UnixException { in lchown() argument 349 lchown0(buffer.address(), uid, gid); in lchown() local 354 private static native void lchown0(long pathAddress, int uid, int gid) in lchown0() argument 360 static native void fchown(int fd, int uid, int gid) throws UnixException; in fchown() argument 468 static native byte[] getgrgid(int gid) throws UnixException; in getgrgid() argument
|
D | UnixSecureDirectoryStream.java | 523 private void setOwners(int uid, int gid) throws IOException { in setOwners() argument 534 fchown(fd, uid, gid); in setOwners() 569 int gid = ((UnixUserPrincipals.Group)group).gid(); in setGroup() local 570 setOwners(-1, gid); in setGroup()
|
D | UnixCopyFile.java | 163 fchown(dfd, attrs.uid(), attrs.gid()); in copyDirectory() 166 chown(target, attrs.uid(), attrs.gid()); in copyDirectory() 258 fchown(fo, attrs.uid(), attrs.gid()); in copyFile() 320 lchown(target, attrs.uid(), attrs.gid()); in copyLink() 346 chown(target, attrs.uid(), attrs.gid()); in copySpecial()
|
D | UnixFileAttributes.java | 106 int gid() { return st_gid; } in gid() method in UnixFileAttributes
|
/libcore/ojluni/src/main/native/ |
D | UnixNativeDispatcher.c | 582 jlong pathAddress, jint uid, jint gid) in Java_sun_nio_fs_UnixNativeDispatcher_chown0() argument 587 RESTARTABLE(chown(path, (uid_t)uid, (gid_t)gid), err); in Java_sun_nio_fs_UnixNativeDispatcher_chown0() 594 …io_fs_UnixNativeDispatcher_lchown0(JNIEnv* env, jclass this, jlong pathAddress, jint uid, jint gid) in Java_sun_nio_fs_UnixNativeDispatcher_lchown0() argument 599 RESTARTABLE(lchown(path, (uid_t)uid, (gid_t)gid), err); in Java_sun_nio_fs_UnixNativeDispatcher_lchown0() 606 …_sun_nio_fs_UnixNativeDispatcher_fchown(JNIEnv* env, jclass this, jint filedes, jint uid, jint gid) in Java_sun_nio_fs_UnixNativeDispatcher_fchown() argument 610 RESTARTABLE(fchown(filedes, (uid_t)uid, (gid_t)gid), err); in Java_sun_nio_fs_UnixNativeDispatcher_fchown() 1057 Java_sun_nio_fs_UnixNativeDispatcher_getgrgid(JNIEnv* env, jclass this, jint gid) in Java_sun_nio_fs_UnixNativeDispatcher_getgrgid() argument 1081 RESTARTABLE_RETURN_PTR(getgrgid_r((gid_t)gid, &grent, grbuf, (size_t)buflen), g); in Java_sun_nio_fs_UnixNativeDispatcher_getgrgid() 1083 RESTARTABLE(getgrgid_r((gid_t)gid, &grent, grbuf, (size_t)buflen, &g), res); in Java_sun_nio_fs_UnixNativeDispatcher_getgrgid() 1158 jint gid = -1; in Java_sun_nio_fs_UnixNativeDispatcher_getgrnam0() local [all …]
|
/libcore/luni/src/main/java/libcore/io/ |
D | ForwardingOs.java | 87 …public void chown(String path, int uid, int gid) throws ErrnoException { os.chown(path, uid, gid);… in chown() argument 102 …public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { os.fchown(fd, uid,… in fchown() argument 145 …public void lchown(String path, int uid, int gid) throws ErrnoException { os.lchown(path, uid, gid… in lchown() argument 199 public void setgid(int gid) throws ErrnoException { os.setgid(gid); } in setgid() argument
|
D | BlockGuardOs.java | 84 @Override public void chown(String path, int uid, int gid) throws ErrnoException { in chown() argument 87 super.chown(path, uid, gid); in chown() 159 @Override public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { in fchown() argument 161 super.fchown(fd, uid, gid); in fchown() 206 @Override public void lchown(String path, int uid, int gid) throws ErrnoException { in lchown() argument 209 super.lchown(path, uid, gid); in lchown()
|
D | Os.java | 59 public void chown(String path, int uid, int gid) throws ErrnoException; in chown() argument 77 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; in fchown() argument 120 public void lchown(String path, int uid, int gid) throws ErrnoException; in lchown() argument 168 public void setgid(int gid) throws ErrnoException; in setgid() argument
|
D | Linux.java | 61 public native void chown(String path, int uid, int gid) throws ErrnoException; in chown() argument 77 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; in fchown() argument 118 public native void lchown(String path, int uid, int gid) throws ErrnoException; in lchown() argument 242 public native void setgid(int gid) throws ErrnoException; in setgid() argument
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 552 return env->NewObject(JniConstants::GetStructUcredClass(env), ctor, u.pid, u.uid, u.gid); in makeStructUcred() 1108 static void Linux_chown(JNIEnv* env, jobject, jstring javaPath, jint uid, jint gid) { in Linux_chown() argument 1113 throwIfMinusOne(env, "chown", TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid))); in Linux_chown() 1255 static void Linux_fchown(JNIEnv* env, jobject, jobject javaFd, jint uid, jint gid) { in Linux_fchown() argument 1257 throwIfMinusOne(env, "fchown", TEMP_FAILURE_RETRY(fchown(fd, uid, gid))); in Linux_fchown() 1786 static void Linux_lchown(JNIEnv* env, jobject, jstring javaPath, jint uid, jint gid) { in Linux_lchown() argument 1791 throwIfMinusOne(env, "lchown", TEMP_FAILURE_RETRY(lchown(path.c_str(), uid, gid))); in Linux_lchown() 2262 static void Linux_setgid(JNIEnv* env, jobject, jint gid) { in Linux_setgid() argument 2263 throwIfMinusOne(env, "setgid", TEMP_FAILURE_RETRY(setgid(gid))); in Linux_setgid()
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 168 assertEquals(Os.getgid(), credentials.gid); in checkUnixDomainSocket()
|