Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for mygetgrnam_r (0.14 sec)

  1. 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)
  2. src/internal/syscall/unix/user_darwin.go

    		uintptr(uid),
    		uintptr(unsafe.Pointer(pwd)),
    		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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 16:09:09 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. 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)
Back to top