Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getpwuid_r (0.24 sec)

  1. 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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. src/os/user/cgo_lookup_unix.go

    	buf := make([]byte, kind.initialSize())
    	for {
    		errno := f(buf)
    		if errno == 0 {
    			return nil
    		} else if runtime.GOOS == "aix" && errno+1 == 0 {
    			// On AIX getpwuid_r appears to return -1,
    			// not ERANGE, on buffer overflow.
    		} else if errno != syscall.ERANGE {
    			return errno
    		}
    		newSize := len(buf) * 2
    		if !isSizeReasonable(int64(newSize)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top