Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for _C_int (0.15 sec)

  1. src/net/cgo_unix_syscall.go

    func _C_ai_family(ai *_C_struct_addrinfo) *_C_int            { return &ai.Family }
    func _C_ai_flags(ai *_C_struct_addrinfo) *_C_int             { return &ai.Flags }
    func _C_ai_next(ai *_C_struct_addrinfo) **_C_struct_addrinfo { return &ai.Next }
    func _C_ai_protocol(ai *_C_struct_addrinfo) *_C_int          { return &ai.Protocol }
    func _C_ai_socktype(ai *_C_struct_addrinfo) *_C_int          { return &ai.Socktype }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:50:56 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/net/cgo_unix_cgo.go

    func _C_ai_family(ai *_C_struct_addrinfo) *_C_int            { return &ai.ai_family }
    func _C_ai_flags(ai *_C_struct_addrinfo) *_C_int             { return &ai.ai_flags }
    func _C_ai_next(ai *_C_struct_addrinfo) **_C_struct_addrinfo { return &ai.ai_next }
    func _C_ai_protocol(ai *_C_struct_addrinfo) *_C_int          { return &ai.ai_protocol }
    func _C_ai_socktype(ai *_C_struct_addrinfo) *_C_int          { return &ai.ai_socktype }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 17:49:28 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/syscall/syscall_netbsd.go

    }
    
    func Pipe(p []int) (err 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 Sep 20 18:12:35 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  4. src/syscall/syscall_freebsd.go

    	Family uint8
    	Index  uint16
    	Type   uint8
    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    	Data   [46]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: Wed Sep 20 18:12:35 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. src/syscall/syscall_dragonfly.go

    	Type   uint8
    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    	Data   [12]int8
    	Rcf    uint16
    	Route  [16]uint16
    	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: Wed Sep 20 18:12:35 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  6. src/syscall/exec_bsd.go

    			goto childerror
    		}
    	}
    
    	if sys.Foreground {
    		// This should really be pid_t, however _C_int (aka int32) is
    		// generally equivalent.
    		pgrp = _C_int(sys.Pgid)
    		if pgrp == 0 {
    			r1, _, err1 = RawSyscall(SYS_GETPID, 0, 0, 0)
    			if err1 != 0 {
    				goto childerror
    			}
    
    			pgrp = _C_int(r1)
    		}
    
    		// Place process group in foreground.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. src/internal/syscall/unix/tcsetpgrp_linux.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package unix
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    // Note that pgid should really be pid_t, however _C_int (aka int32) is
    // generally equivalent.
    
    func Tcsetpgrp(fd int, pgid int32) (err error) {
    	_, _, errno := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), uintptr(syscall.TIOCSPGRP), uintptr(unsafe.Pointer(&pgid)), 0, 0, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 10:09:15 UTC 2024
    - 537 bytes
    - Viewed (0)
  8. src/syscall/exec_freebsd.go

    			goto childerror
    		}
    	}
    
    	if sys.Foreground {
    		// This should really be pid_t, however _C_int (aka int32) is
    		// generally equivalent.
    		pgrp = _C_int(sys.Pgid)
    		if pgrp == 0 {
    			r1, _, err1 = RawSyscall(SYS_GETPID, 0, 0, 0)
    			if err1 != 0 {
    				goto childerror
    			}
    
    			pgrp = _C_int(r1)
    		}
    
    		// Place process group in foreground.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  9. src/internal/syscall/unix/tcsetpgrp_bsd.go

    package unix
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    //go:linkname ioctlPtr syscall.ioctlPtr
    func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error)
    
    // Note that pgid should really be pid_t, however _C_int (aka int32) is
    // generally equivalent.
    
    func Tcsetpgrp(fd int, pgid int32) (err error) {
    	return ioctlPtr(fd, syscall.TIOCSPGRP, unsafe.Pointer(&pgid))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 10:09:15 UTC 2024
    - 588 bytes
    - Viewed (0)
  10. src/syscall/syscall_openbsd1.go

    //sys	readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
    //sys	Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
    //sys	getcwd(buf []byte) (n int, err error) = SYS___GETCWD
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 534 bytes
    - Viewed (0)
Back to top