Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,078 for ngroups (0.28 sec)

  1. src/os/user/getgrouplist_unix.go

    package user
    
    /*
    #include <unistd.h>
    #include <sys/types.h>
    #include <grp.h>
    
    static int mygetgrouplist(const char* user, gid_t group, gid_t* groups, int* ngroups) {
    	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)
  2. src/syscall/exec_libc2.go

    		if err1 != 0 {
    			goto childerror
    		}
    	}
    
    	// User and groups
    	if cred = sys.Credential; cred != nil {
    		ngroups = uintptr(len(cred.Groups))
    		groups = uintptr(0)
    		if ngroups > 0 {
    			groups = uintptr(unsafe.Pointer(&cred.Groups[0]))
    		}
    		if !cred.NoSetGroups {
    			_, _, err1 = rawSyscall(abi.FuncPCABI0(libc_setgroups_trampoline), ngroups, groups, 0)
    			if err1 != 0 {
    				goto childerror
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. src/syscall/exec_bsd.go

    		if err1 != 0 {
    			goto childerror
    		}
    	}
    
    	// User and groups
    	if cred = sys.Credential; cred != nil {
    		ngroups = uintptr(len(cred.Groups))
    		groups = uintptr(0)
    		if ngroups > 0 {
    			groups = uintptr(unsafe.Pointer(&cred.Groups[0]))
    		}
    		if !cred.NoSetGroups {
    			_, _, err1 = RawSyscall(SYS_SETGROUPS, ngroups, groups, 0)
    			if err1 != 0 {
    				goto childerror
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. src/syscall/exec_libc.go

    		if err1 != 0 {
    			goto childerror
    		}
    	}
    
    	// User and groups
    	if cred = sys.Credential; cred != nil {
    		ngroups = uintptr(len(cred.Groups))
    		groups = uintptr(0)
    		if ngroups > 0 {
    			groups = uintptr(unsafe.Pointer(&cred.Groups[0]))
    		}
    		if !cred.NoSetGroups {
    			err1 = setgroups1(ngroups, groups)
    			if err1 != 0 {
    				goto childerror
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  5. src/syscall/exec_freebsd.go

    		if err1 != 0 {
    			goto childerror
    		}
    	}
    
    	// User and groups
    	if cred = sys.Credential; cred != nil {
    		ngroups = uintptr(len(cred.Groups))
    		groups = uintptr(0)
    		if ngroups > 0 {
    			groups = uintptr(unsafe.Pointer(&cred.Groups[0]))
    		}
    		if !cred.NoSetGroups {
    			_, _, err1 = RawSyscall(SYS_SETGROUPS, ngroups, groups, 0)
    			if err1 != 0 {
    				goto childerror
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. src/syscall/exec_linux.go

    		}
    	}
    
    	// User and groups
    	if cred = sys.Credential; cred != nil {
    		ngroups = uintptr(len(cred.Groups))
    		groups = uintptr(0)
    		if ngroups > 0 {
    			groups = uintptr(unsafe.Pointer(&cred.Groups[0]))
    		}
    		if !(sys.GidMappings != nil && !sys.GidMappingsEnableSetgroups && ngroups == 0) && !cred.NoSetGroups {
    			_, _, err1 = RawSyscall(_SYS_setgroups, ngroups, groups, 0)
    			if err1 != 0 {
    				goto childerror
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go

    }
    
    type XVSockPgen struct {
    	Len   uint32
    	Count uint64
    	Gen   uint64
    	Sogen uint64
    }
    
    type _Socklen uint32
    
    type Xucred struct {
    	Version uint32
    	Uid     uint32
    	Ngroups int16
    	Groups  [16]uint32
    }
    
    type Linger struct {
    	Onoff  int32
    	Linger int32
    }
    
    type Iovec struct {
    	Base *byte
    	Len  uint64
    }
    
    type IPMreq struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go

    }
    
    type XVSockPgen struct {
    	Len   uint32
    	Count uint64
    	Gen   uint64
    	Sogen uint64
    }
    
    type _Socklen uint32
    
    type Xucred struct {
    	Version uint32
    	Uid     uint32
    	Ngroups int16
    	Groups  [16]uint32
    }
    
    type Linger struct {
    	Onoff  int32
    	Linger int32
    }
    
    type Iovec struct {
    	Base *byte
    	Len  uint64
    }
    
    type IPMreq struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go

    	Data   [14]int8
    }
    
    type RawSockaddrAny struct {
    	Addr RawSockaddr
    	Pad  [92]int8
    }
    
    type _Socklen uint32
    
    type Xucred struct {
    	Version uint32
    	Uid     uint32
    	Ngroups int16
    	Groups  [16]uint32
    	_       *byte
    }
    
    type Linger struct {
    	Onoff  int32
    	Linger int32
    }
    
    type Iovec struct {
    	Base *byte
    	Len  uint64
    }
    
    type IPMreq struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go

    	Data   [14]int8
    }
    
    type RawSockaddrAny struct {
    	Addr RawSockaddr
    	Pad  [92]int8
    }
    
    type _Socklen uint32
    
    type Xucred struct {
    	Version uint32
    	Uid     uint32
    	Ngroups int16
    	Groups  [16]uint32
    	_       *byte
    }
    
    type Linger struct {
    	Onoff  int32
    	Linger int32
    }
    
    type Iovec struct {
    	Base *byte
    	Len  uint32
    }
    
    type IPMreq struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.5K bytes
    - Viewed (0)
Back to top