Lines Matching defs:gid
71 * @param gid to apply through {@code chown}, or -1 to leave unchanged
74 public static int setPermissions(File path, int mode, int uid, int gid) {
75 return setPermissions(path.getAbsolutePath(), mode, uid, gid);
83 * @param gid to apply through {@code chown}, or -1 to leave unchanged
86 public static int setPermissions(String path, int mode, int uid, int gid) {
94 if (uid >= 0 || gid >= 0) {
96 Os.chown(path, uid, gid);
111 * @param gid to apply through {@code chown}, or -1 to leave unchanged
114 public static int setPermissions(FileDescriptor fd, int mode, int uid, int gid) {
122 if (uid >= 0 || gid >= 0) {
124 Os.fchown(fd, uid, gid);