Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 159 for gids (0.04 sec)

  1. src/os/user/user_test.go

    		} else {
    			t.Skipf("skipping: %v", err)
    		}
    	}
    
    	gids, err := user.GroupIds()
    	if err != nil {
    		t.Fatalf("%+v.GroupIds(): %v", user, err)
    	}
    	if !containsID(gids, user.Gid) {
    		t.Errorf("%+v.GroupIds() = %v; does not contain user GID %s", user, gids, user.Gid)
    	}
    }
    
    func containsID(ids []string, id string) bool {
    	for _, x := range ids {
    		if x == id {
    			return true
    		}
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 15:59:43 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/internal/syscall/unix/user_darwin.go

    func libc_getgrouplist_trampoline()
    
    func Getgrouplist(name *byte, gid uint32, gids *uint32, n *int32) error {
    	_, _, errno := syscall_syscall6(abi.FuncPCABI0(libc_getgrouplist_trampoline),
    		uintptr(unsafe.Pointer(name)), uintptr(gid), uintptr(unsafe.Pointer(gids)),
    		uintptr(unsafe.Pointer(n)), 0, 0)
    	if errno != 0 {
    		return errno
    	}
    	return nil
    }
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 16:09:09 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. src/os/proc.go

    func Getegid() int { return syscall.Getegid() }
    
    // Getgroups returns a list of the numeric ids of groups that the caller belongs to.
    //
    // On Windows, it returns [syscall.EWINDOWS]. See the [os/user] package
    // for a possible alternative.
    func Getgroups() ([]int, error) {
    	gids, e := syscall.Getgroups()
    	return gids, NewSyscallError("getgroups", e)
    }
    
    // Exit causes the current program to exit with the given status code.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. platforms/ide/ide-native/src/main/java/org/gradle/ide/xcode/internal/xcodeproj/PBXObject.java

        }
    
        /**
         * This method is used to generate stable GIDs and must be stable for identical contents.
         * Returning a constant value is ok but will make the generated project order-dependent.
         */
        public int stableHash() {
            return 0;
        }
    
        @Override
        public String toString() {
            return String.format("%s isa=%s gid=%s", super.toString(), isa(), getGlobalID());
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_aix.go

    	n, err = getgroups(n, &a[0])
    	if err != nil {
    		return nil, err
    	}
    	gids = make([]int, n)
    	for i, v := range a[0:n] {
    		gids[i] = int(v)
    	}
    	return
    }
    
    func Setgroups(gids []int) (err error) {
    	if len(gids) == 0 {
    		return setgroups(0, nil)
    	}
    
    	a := make([]_Gid_t, len(gids))
    	for i, v := range gids {
    		a[i] = _Gid_t(v)
    	}
    	return setgroups(len(a), &a[0])
    }
    
    /*
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  6. src/syscall/syscall_solaris.go

    	n, err = getgroups(n, &a[0])
    	if err != nil {
    		return nil, err
    	}
    	gids = make([]int, n)
    	for i, v := range a[0:n] {
    		gids[i] = int(v)
    	}
    	return
    }
    
    func Setgroups(gids []int) (err error) {
    	if len(gids) == 0 {
    		return setgroups(0, nil)
    	}
    
    	a := make([]_Gid_t, len(gids))
    	for i, v := range gids {
    		a[i] = _Gid_t(v)
    	}
    	return setgroups(len(a), &a[0])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. platforms/ide/ide-native/src/main/java/org/gradle/ide/xcode/internal/xcodeproj/GidGenerator.java

        }
    
        /**
         * Generate a stable GID based on the class name and hash of some object info.
         *
         * GIDs generated this way will be in the form of
         * {@code <class-name-hash-32> <obj-hash-32> <counter-32>}
         */
        public String generateGid(String pbxClassName, int hash) {
            int counter = 0;
            String gid;
            do {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris.go

    	n, err = getgroups(n, &a[0])
    	if n == -1 {
    		return nil, err
    	}
    	gids = make([]int, n)
    	for i, v := range a[0:n] {
    		gids[i] = int(v)
    	}
    	return
    }
    
    func Setgroups(gids []int) (err error) {
    	if len(gids) == 0 {
    		return setgroups(0, nil)
    	}
    
    	a := make([]_Gid_t, len(gids))
    	for i, v := range gids {
    		a[i] = _Gid_t(v)
    	}
    	return setgroups(len(a), &a[0])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 31.1K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux.go

    		}
    		return EACCES
    	}
    
    	var fmode uint32
    	if uint32(uid) == st.Uid {
    		fmode = (st.Mode >> 6) & 7
    	} else {
    		var gid int
    		if flags&_AT_EACCESS != 0 {
    			gid = Getegid()
    		} else {
    			gid = Getgid()
    		}
    
    		if uint32(gid) == st.Gid || isGroupMember(int(st.Gid)) {
    			fmode = (st.Mode >> 3) & 7
    		} else {
    			fmode = st.Mode & 7
    		}
    	}
    
    	if fmode&mode == mode {
    		return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/plan9/syscall_plan9.go

    	return nil
    }
    
    func Getpagesize() int { return 0x1000 }
    
    func Getegid() (egid int) { return -1 }
    func Geteuid() (euid int) { return -1 }
    func Getgid() (gid int)   { return -1 }
    func Getuid() (uid int)   { return -1 }
    
    func Getgroups() (gids []int, err error) {
    	return make([]int, 0), nil
    }
    
    //sys	open(path string, mode int) (fd int, err error)
    
    func Open(path string, mode int) (fd int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 7K bytes
    - Viewed (0)
Back to top