Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for _C_int (0.17 sec)

  1. src/syscall/syscall_darwin.go

    	Family uint8
    	Index  uint16
    	Type   uint8
    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    	Data   [12]int8
    	raw    RawSockaddrDatalink
    }
    
    // Translate "kern.hostname" to []_C_int{0,1,2,3}.
    func nametomib(name string) (mib []_C_int, err error) {
    	const siz = unsafe.Sizeof(mib[0])
    
    	// NOTE(rsc): It seems strange to set the buffer to have
    	// size CTL_MAXNAME+2 but use only CTL_MAXNAME
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/syscall/syscall_aix.go

    // it doesn't matter.
    //sys	fcntl(fd int, cmd int, arg int) (val int, err error)
    //sys	Dup2(old int, new int) (err error)
    
    //sysnb pipe(p *[2]_C_int) (err error)
    
    func Pipe(p []int) (err error) {
    	if len(p) != 2 {
    		return EINVAL
    	}
    	var pp [2]_C_int
    	err = pipe(&pp)
    	if err == nil {
    		p[0] = int(pp[0])
    		p[1] = int(pp[1])
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. src/syscall/syscall_linux.go

    	return openat(dirfd, path, flags|O_LARGEFILE, mode)
    }
    
    func Pipe(p []int) error {
    	return Pipe2(p, 0)
    }
    
    //sysnb pipe2(p *[2]_C_int, flags int) (err error)
    
    func Pipe2(p []int, flags int) error {
    	if len(p) != 2 {
    		return EINVAL
    	}
    	var pp [2]_C_int
    	err := pipe2(&pp, flags)
    	if err == nil {
    		p[0] = int(pp[0])
    		p[1] = int(pp[1])
    	}
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  4. src/net/cgo_unix.go

    // error number. It's a signed number and a zero value is a non-error
    // by convention.
    type addrinfoErrno int
    
    func (eai addrinfoErrno) Error() string   { return _C_gai_strerror(_C_int(eai)) }
    func (eai addrinfoErrno) Temporary() bool { return eai == _C_EAI_AGAIN }
    func (eai addrinfoErrno) Timeout() bool   { return false }
    
    // isAddrinfoErrno is just for testing purposes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. src/syscall/zsyscall_openbsd_arm.go

    	}
    	return
    }
    
    func libc_setgroups_trampoline()
    
    //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
    	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
    	wpid = int(r0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  6. src/syscall/zsyscall_openbsd_riscv64.go

    	}
    	return
    }
    
    func libc_setgroups_trampoline()
    
    //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
    	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
    	wpid = int(r0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  7. src/syscall/zsyscall_openbsd_amd64.go

    	}
    	return
    }
    
    func libc_setgroups_trampoline()
    
    //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
    	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
    	wpid = int(r0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.4K bytes
    - Viewed (0)
  8. src/syscall/zsyscall_openbsd_arm64.go

    	}
    	return
    }
    
    func libc_setgroups_trampoline()
    
    //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
    	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
    	wpid = int(r0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.4K bytes
    - Viewed (0)
  9. src/syscall/zsyscall_openbsd_ppc64.go

    	}
    	return
    }
    
    func libc_setgroups_trampoline()
    
    //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
    	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
    	wpid = int(r0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.4K bytes
    - Viewed (0)
  10. src/syscall/zsyscall_openbsd_386.go

    	}
    	return
    }
    
    func libc_setgroups_trampoline()
    
    //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
    	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
    	wpid = int(r0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.6K bytes
    - Viewed (0)
Back to top