- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for osusergo (0.12 sec)
-
src/os/user/getgrouplist_syscall.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //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/cgo_user_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 15:59:43 UTC 2023 - 234 bytes - Viewed (0) -
src/os/user/getgrouplist_unix.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build cgo && !osusergo && (dragonfly || freebsd || (!android && linux) || netbsd || openbsd || (solaris && !illumos)) 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) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 11 04:31:34 UTC 2022 - 657 bytes - Viewed (0) -
src/os/user/cgo_unix_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build (darwin || dragonfly || freebsd || (!android && linux) || netbsd || openbsd || solaris) && cgo && !osusergo package user import ( "testing" ) // Issue 22739 func TestNegativeUid(t *testing.T) { sp := structPasswdForNegativeTest() u := buildUser(&sp) if g, w := u.Uid, "4294967294"; g != w {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 595 bytes - Viewed (0) -
src/os/user/cgo_lookup_syscall.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !osusergo && darwin package user import ( "internal/syscall/unix" "syscall" ) type _C_char = byte type _C_int = int32 type _C_gid_t = uint32 type _C_uid_t = uint32 type _C_size_t = uintptr type _C_struct_group = unix.Group
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 11 04:31:34 UTC 2022 - 2.2K bytes - Viewed (0) -
src/os/user/cgo_listgroups_unix.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build (cgo || darwin) && !osusergo && (darwin || dragonfly || freebsd || (linux && !android) || netbsd || openbsd || (solaris && !illumos)) package user import ( "fmt" "strconv" "unsafe" ) const maxGroups = 2048 func listGroups(u *User) ([]string, error) {
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/lookup_stubs.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build (!cgo && !darwin && !windows && !plan9) || android || (osusergo && !windows && !plan9) package user import ( "fmt" "os" "runtime" "strconv" ) var ( // unused variables (in this implementation)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 07 16:09:09 UTC 2022 - 1.8K bytes - Viewed (0) -
src/os/user/listgroups_unix_test.go
// license that can be found in the LICENSE file. //go:build ((darwin || dragonfly || freebsd || (js && wasm) || wasip1 || (!android && linux) || netbsd || openbsd || solaris) && ((!cgo && !darwin) || osusergo)) || aix || illumos package user import ( "fmt" "slices" "strings" "testing" ) var testGroupFile = `# See the opendirectoryd(8) man page for additional # information about Open Directory.
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/listgroups_unix.go
// license that can be found in the LICENSE file. //go:build ((darwin || dragonfly || freebsd || (js && wasm) || wasip1 || (!android && linux) || netbsd || openbsd || solaris) && ((!cgo && !darwin) || osusergo)) || aix || illumos package user import ( "bufio" "bytes" "errors" "fmt" "io" "os" "strconv" ) func listGroupsFromReader(u *User, r io.Reader) ([]string, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 2.9K bytes - Viewed (0) -
src/os/user/user.go
getpwuid_r, getgrnam_r, and getgrouplist. When cgo is available, and the required routines are implemented in libc for a particular platform, cgo-based (libc-backed) code is used. This can be overridden by using osusergo build tag, which enforces the pure Go implementation. */ package user import ( "strconv" ) // These may be set to false in init() for a particular platform and/or
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 2.9K bytes - Viewed (0)