- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getgrnam_r (0.17 sec)
-
src/internal/syscall/unix/user_darwin.go
uintptr(unsafe.Pointer(buf)), size, uintptr(unsafe.Pointer(result)), 0) return syscall.Errno(errno) } //go:cgo_import_dynamic libc_getgrnam_r getgrnam_r "/usr/lib/libSystem.B.dylib" func libc_getgrnam_r_trampoline() func Getgrnam(name *byte, grp *Group, buf *byte, size uintptr, result **Group) syscall.Errno { // Note: Returns an errno as its actual result, not in global errno.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 07 16:09:09 UTC 2022 - 3.4K bytes - Viewed (0) -
src/os/user/cgo_lookup_cgo.go
*perr = getgrgid_r(gid, &grp, buf, buflen, &result); *found = result != NULL; return grp; } static struct group mygetgrnam_r(const char *name, char *buf, size_t buflen, int *found, int *perr) { struct group grp; struct group *result; memset(&grp, 0, sizeof(grp)); *perr = getgrnam_r(name, &grp, buf, buflen, &result); *found = result != NULL; return grp; } */ import "C" type _C_char = C.char
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 16 17:45:51 UTC 2022 - 3.4K bytes - Viewed (0) -
src/os/user/user.go
resolving user and group ids to names, and listing supplementary group IDs. One is written in pure Go and parses /etc/passwd and /etc/group. The other is cgo-based and relies on the standard C library (libc) routines such as 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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 2.9K bytes - Viewed (0) -
src/os/user/cgo_lookup_syscall.go
return pwd, result != nil, errno } func _C_getgrnam_r(name *_C_char, buf *_C_char, size _C_size_t) (grp _C_struct_group, found bool, errno syscall.Errno) { var result *_C_struct_group errno = unix.Getgrnam(name, &grp, buf, size, &result) return grp, result != nil, errno } func _C_getgrgid_r(gid _C_gid_t, buf *_C_char, size _C_size_t) (grp _C_struct_group, found bool, errno syscall.Errno) { var result *_C_struct_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)