Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for gids (0.06 sec)

  1. src/os/user/cgo_listgroups_unix.go

    		if err := groupRetry(u.Username, nameC, userGID, &gidsC, &n); err != nil {
    			return nil, err
    		}
    	}
    	gidsC = gidsC[:n]
    	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.
    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

    	{in: testGroupFile, user: "user777", gid: "7", gids: []string{"7", "777", "1000"}},
    	{in: testGroupFile, user: "user1111", gid: "1111", gids: []string{"1111", "1000"}},
    	{in: testGroupFile, user: "user1000", gid: "1000", gids: []string{"1000"}},
    	{in: testGroupFile, user: "user7500", gid: "7500", gids: []string{"1000", "7500"}},
    	{in: testGroupFile, user: "no-such-user", gid: "2345", gids: []string{"2345"}},
    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

    		} 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)
  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

    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)
  8. 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)
  9. 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)
  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