Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for libcFunc (0.13 sec)

  1. src/syscall/exec_solaris_test.go

    //go:cgo_import_dynamic libc_Getpgid getpgid "libc.so"
    //go:cgo_import_dynamic libc_Getpgrp getpgrp "libc.so"
    
    //go:linkname libc_Getpgid libc_Getpgid
    //go:linkname libc_Getpgrp libc_Getpgrp
    
    var (
    	libc_Getpgid,
    	libc_Getpgrp libcFunc
    )
    
    func Getpgid(pid int) (pgid int, err error) {
    	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Getpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
    	pgid = int(r0)
    	if e1 != 0 {
    		err = e1
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. src/syscall/exec_aix_test.go

    //go:cgo_import_dynamic libc_Getpgrp getpgrp "libc.a/shr_64.o"
    
    //go:linkname libc_Getpgid libc_Getpgid
    //go:linkname libc_Getpgrp libc_Getpgrp
    
    var (
    	libc_Getpgid,
    	libc_Getpgrp libcFunc
    )
    
    func Getpgid(pid int) (pgid int, err error) {
    	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Getpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
    	pgid = int(r0)
    	if e1 != 0 {
    		err = e1
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. src/runtime/netpoll_solaris.go

    //go:linkname libc_port_getn libc_port_getn
    //go:linkname libc_port_alert libc_port_alert
    
    var (
    	libc_port_create,
    	libc_port_associate,
    	libc_port_dissociate,
    	libc_port_getn,
    	libc_port_alert libcFunc
    	netpollWakeSig atomic.Uint32 // used to avoid duplicate calls of netpollBreak
    )
    
    func errno() int32 {
    	return *getg().m.perrno
    }
    
    func port_create() int32 {
    	return int32(sysvicall0(&libc_port_create))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. src/runtime/os3_solaris.go

    	libc_sem_post,
    	libc_sem_reltimedwait_np,
    	libc_sem_wait,
    	libc_setitimer,
    	libc_sigaction,
    	libc_sigaltstack,
    	libc_sigprocmask,
    	libc_sysconf,
    	libc_usleep,
    	libc_write,
    	libc_pipe2 libcFunc
    )
    
    var sigset_all = sigset{[4]uint32{^uint32(0), ^uint32(0), ^uint32(0), ^uint32(0)}}
    
    func getPageSize() uintptr {
    	n := int32(sysconf(__SC_PAGESIZE))
    	if n <= 0 {
    		return 0
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/syscall/zsyscall_aix_ppc64.go

    //go:linkname libc_write libc_write
    //go:linkname libc_writev libc_writev
    //go:linkname libc_gettimeofday libc_gettimeofday
    //go:linkname libc_mmap libc_mmap
    //go:linkname libc_munmap libc_munmap
    
    type libcFunc uintptr
    
    var (
    	libc_fcntl,
    	libc_Dup2,
    	libc_pipe,
    	libc_readlink,
    	libc_utimes,
    	libc_utimensat,
    	libc_unlinkat,
    	libc_getcwd,
    	libc_getgroups,
    	libc_setgroups,
    	libc_getdirent,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  6. src/runtime/netpoll_aix.go

    // It's also based on Solaris implementation for the arming mechanisms
    
    //go:cgo_import_dynamic libc_poll poll "libc.a/shr_64.o"
    //go:linkname libc_poll libc_poll
    
    var libc_poll libFunc
    
    //go:nosplit
    func poll(pfds *pollfd, npfds uintptr, timeout uintptr) (int32, int32) {
    	r, err := syscall3(&libc_poll, uintptr(unsafe.Pointer(pfds)), npfds, timeout)
    	return int32(r), int32(err)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top