Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CTL_MAXNAME (0.14 sec)

  1. src/syscall/syscall_darwin.go

    	// size CTL_MAXNAME+2 but use only CTL_MAXNAME
    	// as the size. I don't know why the +2 is here, but the
    	// kernel uses +2 for its own implementation of this function.
    	// I am scared that if we don't include the +2 here, the kernel
    	// will silently write 2 words farther than we specify
    	// and we'll get memory corruption.
    	var buf [CTL_MAXNAME + 2]_C_int
    	n := uintptr(CTL_MAXNAME) * siz
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top