Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Pid_t (0.03 sec)

  1. 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) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 10:09:15 UTC 2024
    - 537 bytes
    - Viewed (0)
  2. src/syscall/export_bsd_test.go

    // license that can be found in the LICENSE file.
    
    //go:build darwin || dragonfly || freebsd || netbsd || openbsd
    
    package syscall
    
    import (
    	"unsafe"
    )
    
    // pgid should really be pid_t, however _C_int (aka int32) is generally
    // equivalent.
    
    func Tcgetpgrp(fd int) (pgid int32, err error) {
    	if err := ioctlPtr(fd, TIOCGPGRP, unsafe.Pointer(&pgid)); err != nil {
    		return -1, err
    	}
    	return pgid, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 619 bytes
    - Viewed (0)
  3. 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)
  4. src/os/signal/signal_cgo_test.go

    		pgrp := int32(syscall.Getpgrp()) // assume that pid_t is int32
    		if err := unix.Tcsetpgrp(ptyFD, pgrp); err != nil {
    			return fmt.Errorf("error setting tty process group: %w", err)
    		}
    
    		// Give the kernel time to potentially wake readers and have
    		// them return EINTR (darwin does this).
    		time.Sleep(pause)
    
    		// Give TTY back.
    		pid := int32(cmd.Process.Pid) // assume that pid_t is int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 10:09:15 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. src/syscall/exec_linux.go

    	childTID   uint64 // Where to store child TID, in child's memory (pid_t *)
    	parentTID  uint64 // Where to store child TID, in parent's memory (pid_t *)
    	exitSignal uint64 // Signal to deliver to parent on child termination
    	stack      uint64 // Pointer to lowest byte of stack
    	stackSize  uint64 // Size of stack
    	tls        uint64 // Location of new TLS
    	setTID     uint64 // Pointer to a pid_t array (since Linux 5.5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top