- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for gidsC (0.24 sec)
-
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) -
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) -
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) -
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) -
src/syscall/syscall_bsd.go
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]) } func ReadDirent(fd int, buf []byte) (n int, err error) { // Final argument is (basep *uintptr) and the syscall doesn't take nil.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 10:34:48 UTC 2023 - 13.6K bytes - Viewed (0) -
cmd/kubeadm/app/util/users/users_linux_test.go
groupsToCreate []*entry uids []int64 gids []int64 expectedUsers []*entry expectedGroups []*entry expectedError bool }{ { name: "not enough UIDs", usersToCreate: []*entry{ {name: "foo"}, {name: "bar"}, }, uids: []int64{100}, expectedError: true, }, { name: "not enough GIDs", groupsToCreate: []*entry{ {name: "foo"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 01 05:59:41 UTC 2022 - 16.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_bsd.go
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]) } // Wait status is 7 bits at bottom, either 0 (exited), // 0x7F (stopped), or a signal number that caused an exit. // The 0x80 bit is whether there was a core dump.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 21:28:33 UTC 2023 - 15K bytes - Viewed (0) -
pkg/kubelet/userns/userns_manager.go
return nil, err } } var uids []*runtimeapi.IDMapping var gids []*runtimeapi.IDMapping for _, u := range userNs.UIDMappings { uids = append(uids, &runtimeapi.IDMapping{ HostId: u.HostId, ContainerId: u.ContainerId, Length: u.Length, }) } for _, g := range userNs.GIDMappings { gids = append(gids, &runtimeapi.IDMapping{ HostId: g.HostId, ContainerId: g.ContainerId,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 14.3K bytes - Viewed (0) -
src/syscall/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 May 29 13:50:55 UTC 2024 - 17.9K bytes - Viewed (0) -
cmd/kubeadm/app/util/users/users_linux.go
// and assigns UIDs and GIDs to the users and groups to be created based on a list of provided UIDs and GIDs. // Returns an error if not enough UIDs or GIDs are passed. It does not perform any other validation. func assignUserAndGroupIDs(groups, usersToCreate, groupsToCreate []*entry, uids, gids []int64) error { if len(gids) < len(groupsToCreate) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 25 16:35:10 UTC 2023 - 20.7K bytes - Viewed (0)