/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 | 92 public static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(path, uid, gid); } argument 139 public static void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { Libcore.os.fchown(fd, uid, gid); } argument 224 /** @hide */ public static StructPasswd getpwuid(int uid) throws ErrnoException { return Libcore.os.getpwuid(uid); } argument 284 public static void lchown(String path, int uid, int gid) throws ErrnoException { Libcore.os.lchown(path, uid, gid); } argument 524 public static void setuid(int uid) throws ErrnoException { Libcore.os.setuid(uid); } argument [all...] |
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | UnixUserPrincipals.java | 44 private final int id; // uid or gid 58 int uid() { method in class:UnixUserPrincipals.User 114 // return UserPrincipal representing given uid 115 static User fromUid(int uid) { argument 118 name = Util.toString(getpwuid(uid)); 120 name = Integer.toString(uid); 122 return new User(uid, name); 151 // lookup failed, allow input to be uid or gid 170 int uid = lookupName(name, false); 171 return new User(uid, nam [all...] |
H A D | UnixFileAttributeViews.java | 243 final void setOwners(int uid, int gid) throws IOException { argument 247 chown(file, uid, gid); 249 lchown(file, uid, gid); 273 int uid = ((UnixUserPrincipals.User)owner).uid(); 274 setOwners(uid, -1); 301 private static final String UID_NAME = "uid"; 358 builder.add(UID_NAME, attrs.uid());
|
H A D | UnixFileAttributes.java | 105 int uid() { return st_uid; } method in class:UnixFileAttributes
|
H A D | UnixSecureDirectoryStream.java | 518 private void setOwners(int uid, int gid) throws IOException { argument 529 fchown(fd, uid, gid); 554 int uid = ((UnixUserPrincipals.User)owner).uid(); 555 setOwners(uid, -1);
|
H A D | UnixNativeDispatcher.java | 332 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 457 * struct passwd *getpwuid(uid_t uid); 461 static native byte[] getpwuid(int uid) throws UnixException; argument
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | BlockGuardOs.java | 81 @Override public void chown(String path, int uid, int gid) throws ErrnoException { argument 83 os.chown(path, uid, gid); 140 @Override public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { argument 142 os.fchown(fd, uid, gid); 172 @Override public void lchown(String path, int uid, int gid) throws ErrnoException { argument 174 os.lchown(path, uid, gid);
|
H A D | ForwardingOs.java | 70 public void chown(String path, int uid, int gid) throws ErrnoException { os.chown(path, uid, gid); } argument 80 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { os.fchown(fd, uid, gid); } argument 100 public StructPasswd getpwuid(int uid) throws ErrnoException { return os.getpwuid(uid); } argument 121 public void lchown(String path, int uid, int gid) throws ErrnoException { os.lchown(path, uid, gid); } argument 174 public void setuid(int uid) throws ErrnoException { os.setuid(uid); } argument [all...] |
H A D | Linux.java | 61 public native void chown(String path, int uid, int gid) throws ErrnoException; argument 71 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; argument 91 public native StructPasswd getpwuid(int uid) throws ErrnoException; argument 112 public native void lchown(String path, int uid, int gid) throws ErrnoException; argument 248 public native void setuid(int uid) throws ErrnoException; argument
|
H A D | Os.java | 55 public void chown(String path, int uid, int gid) throws ErrnoException; argument 65 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; argument 86 public StructPasswd getpwuid(int uid) throws ErrnoException; argument 107 public void lchown(String path, int uid, int gid) throws ErrnoException; argument 161 public void setuid(int uid) throws ErrnoException; argument
|
/libcore/ojluni/src/main/native/ |
H A D | UnixNativeDispatcher.c | 564 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); 972 Java_sun_nio_fs_UnixNativeDispatcher_getpwuid(JNIEnv* env, jclass this, jint uid) argument 992 RESTARTABLE_RETURN_PTR(getpwuid_r((uid_t)uid, &pwent, pwbuf, (size_t)buflen), p); 994 RESTARTABLE(getpwuid_r((uid_t)uid, &pwent, pwbuf, (size_t)buflen, &p), res); 1077 jint uid 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 D | libcore_io_Linux.cpp | 469 return env->NewObject(JniConstants::structUcredClass, ctor, u.pid, u.uid, u.gid); 711 jobject getpwuid(uid_t uid) { argument 712 return process("getpwuid_r", getpwuid_r(uid, &mPwd, mBuffer.get(), mBufferSize, &mResult)); 1013 static void Linux_chown(JNIEnv* env, jobject, jstring javaPath, jint uid, jint gid) { argument 1018 throwIfMinusOne(env, "chown", TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid))); 1097 static void Linux_fchown(JNIEnv* env, jobject, jobject javaFd, jint uid, jint gid) { argument 1099 throwIfMinusOne(env, "fchown", TEMP_FAILURE_RETRY(fchown(fd, uid, gid))); 1307 static jobject Linux_getpwuid(JNIEnv* env, jobject, jint uid) { argument 1308 return Passwd(env).getpwuid(uid); 1620 static void Linux_lchown(JNIEnv* env, jobject, jstring javaPath, jint uid, jin argument 2211 Linux_setuid(JNIEnv* env, jobject, jint uid) argument [all...] |