Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for gidsC (0.04 sec)

  1. src/os/user/cgo_listgroups_unix.go

    	gids := make([]string, 0, n)
    	for _, g := range gidsC[:n] {
    		gids = append(gids, strconv.Itoa(int(g)))
    	}
    	return gids, nil
    }
    
    // groupRetry retries getGroupList with much larger size for n. The result is
    // stored in gids.
    func groupRetry(username string, name []byte, userGID _C_gid_t, gids *[]_C_gid_t, n *_C_int) error {
    	// More than initial buffer, but now n contains the correct size.
    	if *n > maxGroups {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 11 04:31:34 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  2. src/os/user/listgroups_unix_test.go

    	// input
    	in   string
    	user string
    	gid  string
    	// output
    	gids []string
    	err  bool
    }{
    	{in: testGroupFile, user: "root", gid: "0", gids: []string{"0", "1", "2", "7"}},
    	{in: testGroupFile, user: "jill", gid: "33", gids: []string{"33", "777"}},
    	{in: testGroupFile, user: "jody", gid: "34", gids: []string{"34", "777"}},
    	{in: testGroupFile, user: "john", gid: "35", gids: []string{"35", "777"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. src/os/user/getgrouplist_syscall.go

    //go:build !osusergo && darwin
    
    package user
    
    import (
    	"internal/syscall/unix"
    )
    
    func getGroupList(name *_C_char, userGID _C_gid_t, gids *_C_gid_t, n *_C_int) _C_int {
    	err := unix.Getgrouplist(name, userGID, gids, n)
    	if err != nil {
    		return -1
    	}
    	return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 11 04:31:34 UTC 2022
    - 424 bytes
    - Viewed (0)
  4. src/os/user/getgrouplist_unix.go

    	return getgrouplist(user, group, groups, ngroups);
    }
    */
    import "C"
    
    func getGroupList(name *_C_char, userGID _C_gid_t, gids *_C_gid_t, n *_C_int) _C_int {
    	return C.mygetgrouplist(name, userGID, gids, n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 11 04:31:34 UTC 2022
    - 657 bytes
    - Viewed (0)
  5. src/os/user/user_test.go

    			t.Fatalf("Current: %v", err)
    		} 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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 15:59:43 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. 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)
  7. src/os/proc.go

    //
    // 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.
    // Conventionally, code zero indicates success, non-zero an error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. platforms/ide/ide-native/src/main/java/org/gradle/ide/xcode/internal/xcodeproj/PBXObject.java

         */
        public void serializeInto(@SuppressWarnings("unused") XcodeprojSerializer serializer) {
        }
    
        /**
         * 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
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. platforms/ide/ide-native/src/main/java/org/gradle/ide/xcode/internal/xcodeproj/GidGenerator.java

            generatedAndReservedIds = Sets.newHashSet(reservedIds);
        }
    
        /**
         * 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;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/plan9/syscall_plan9.go

    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) {
    	fixwd()
    	return open(path, mode)
    }
    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