Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for libc_ (0.06 sec)

  1. src/os/user/cgo_lookup_unix.go

    	sz := _C_sysconf(_C_int(k))
    	if sz == -1 {
    		// DragonFly and FreeBSD do not have _SC_GETPW_R_SIZE_MAX.
    		// Additionally, not all Linux systems have it, either. For
    		// example, the musl libc returns -1.
    		return 1024
    	}
    	if !isSizeReasonable(int64(sz)) {
    		// Truncate.  If this truly isn't enough, retryWithBuffer will error on the first run.
    		return maxBufferSize
    	}
    	return _C_size_t(sz)
    }
    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