Searched defs:uid (Results 1 - 13 of 13) sorted by relevance

/libcore/luni/src/main/java/android/system/
H A DStructUcred.java30 /** 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 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
222 /** @hide */ public static StructPasswd getpwuid(int uid) throws ErrnoException { return Libcore.os.getpwuid(uid); } argument
288 public static void lchown(String path, int uid, int gid) throws ErrnoException { Libcore.os.lchown(path, uid, gid); } argument
534 public static void setuid(int uid) throws ErrnoException { Libcore.os.setuid(uid); } argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixUserPrincipals.java44 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 DUnixFileAttributeViews.java243 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 DUnixFileAttributes.java105 int uid() { return st_uid; } method in class:UnixFileAttributes
H A DUnixSecureDirectoryStream.java523 private void setOwners(int uid, int gid) throws IOException { argument
534 fchown(fd, uid, gid);
559 int uid = ((UnixUserPrincipals.User)owner).uid();
560 setOwners(uid, -1);
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
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 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 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
101 public StructPasswd getpwuid(int uid) throws ErrnoException { return os.getpwuid(uid); } argument
123 public void lchown(String path, int uid, int gid) throws ErrnoException { os.lchown(path, uid, gid); } argument
175 public void setuid(int uid) throws ErrnoException { os.setuid(uid); } argument
[all...]
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
92 public native StructPasswd getpwuid(int uid) throws ErrnoException; argument
114 public native void lchown(String path, int uid, int gid) throws ErrnoException; argument
249 public native void setuid(int uid) throws ErrnoException; argument
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
87 public StructPasswd getpwuid(int uid) throws ErrnoException; argument
109 public void lchown(String path, int uid, int gid) throws ErrnoException; argument
162 public void setuid(int uid) 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);
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 Dlibcore_io_Linux.cpp531 return env->NewObject(JniConstants::structUcredClass, ctor, u.pid, u.uid, u.gid);
776 jobject getpwuid(uid_t uid) { argument
777 return process("getpwuid_r", getpwuid_r(uid, &mPwd, mBuffer.get(), mBufferSize, &mResult));
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)));
1372 static jobject Linux_getpwuid(JNIEnv* env, jobject, jint uid) { argument
1373 return Passwd(env).getpwuid(uid);
1706 static void Linux_lchown(JNIEnv* env, jobject, jstring javaPath, jint uid, jin argument
2260 Linux_setuid(JNIEnv* env, jobject, jint uid) argument
[all...]

Completed in 134 milliseconds