Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for lzcntl (0.24 sec)

  1. src/internal/poll/sock_cloexec_solaris.go

    // The accept4(3c) function was added to Oracle Solaris in the Solaris 11.4.0
    // release. Thus, on releases prior to 11.4, we fall back to the combination
    // of accept(3c) and fcntl(2).
    
    package poll
    
    import (
    	"internal/syscall/unix"
    	"syscall"
    )
    
    // Wrapper around the accept system call that marks the returned file
    // descriptor as nonblocking and close-on-exec.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. src/syscall/exec_unix.go

    }
    
    func CloseOnExec(fd int) { fcntl(fd, F_SETFD, FD_CLOEXEC) }
    
    func SetNonblock(fd int, nonblocking bool) (err error) {
    	flag, err := fcntl(fd, F_GETFL, 0)
    	if err != nil {
    		return err
    	}
    	if (flag&O_NONBLOCK != 0) == nonblocking {
    		return nil
    	}
    	if nonblocking {
    		flag |= O_NONBLOCK
    	} else {
    		flag &^= O_NONBLOCK
    	}
    	_, err = fcntl(fd, F_SETFL, flag)
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. src/runtime/os_openbsd_syscall2.go

    // munmap calls the munmap system call. It is implemented in assembly.
    func munmap(addr unsafe.Pointer, n uintptr)
    
    func nanotime1() int64
    
    //go:noescape
    func sigaltstack(new, old *stackt)
    
    func fcntl(fd, cmd, arg int32) (ret int32, errno int32)
    
    func walltime() (sec int64, nsec int32)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. src/runtime/sys_darwin.go

    // Not used on Darwin, but must be defined.
    func exitThread(wait *atomic.Uint32) {
    	throw("exitThread")
    }
    
    //go:nosplit
    func setNonblock(fd int32) {
    	flags, _ := fcntl(fd, _F_GETFL, 0)
    	if flags != -1 {
    		fcntl(fd, _F_SETFL, flags|_O_NONBLOCK)
    	}
    }
    
    func issetugid() int32 {
    	return libcCall(unsafe.Pointer(abi.FuncPCABI0(issetugid_trampoline)), nil)
    }
    func issetugid_trampoline()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. src/runtime/defs_freebsd.go

    GOARCH=386 go tool cgo -cdefs defs_freebsd.go >defs_freebsd_386.h
    GOARCH=arm go tool cgo -cdefs defs_freebsd.go >defs_freebsd_arm.h
    */
    
    package runtime
    
    /*
    #include <sys/types.h>
    #include <unistd.h>
    #include <fcntl.h>
    #include <sys/time.h>
    #include <signal.h>
    #include <errno.h>
    #include <sys/event.h>
    #include <sys/mman.h>
    #include <sys/ucontext.h>
    #include <sys/umtx.h>
    #include <sys/_umtx.h>
    #include <sys/rtprio.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. src/runtime/defs_darwin.go

    #define __DARWIN_UNIX03 0
    #include <mach/mach_time.h>
    #include <sys/types.h>
    #include <sys/time.h>
    #include <errno.h>
    #include <signal.h>
    #include <sys/event.h>
    #include <sys/mman.h>
    #include <pthread.h>
    #include <fcntl.h>
    */
    import "C"
    
    const (
    	EINTR     = C.EINTR
    	EFAULT    = C.EFAULT
    	EAGAIN    = C.EAGAIN
    	ETIMEDOUT = C.ETIMEDOUT
    
    	PROT_NONE  = C.PROT_NONE
    	PROT_READ  = C.PROT_READ
    	PROT_WRITE = C.PROT_WRITE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. src/internal/poll/fd_unix.go

    		r0, err := unix.Fcntl(fd, syscall.F_DUPFD_CLOEXEC, 0)
    		if err == nil {
    			return r0, "", nil
    		}
    		switch err {
    		case syscall.EINVAL, syscall.ENOSYS:
    			// Old kernel, or js/wasm (which returns
    			// ENOSYS). Fall back to the portable way from
    			// now on.
    			dupCloexecUnsupported.Store(true)
    		default:
    			return -1, "fcntl", err
    		}
    	}
    	return dupCloseOnExecOld(fd)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh

    #include <netinet/ip_mroute.h>
    #include <sys/protosw.h>
    #include <sys/stropts.h>
    #include <sys/mman.h>
    #include <sys/poll.h>
    #include <sys/select.h>
    #include <sys/termio.h>
    #include <termios.h>
    #include <fcntl.h>
    
    #define AF_LOCAL AF_UNIX
    '
    
    includes_Darwin='
    #define _DARWIN_C_SOURCE
    #define KERNEL 1
    #define _DARWIN_USE_64_BIT_INODE
    #define __APPLE_USE_RFC_3542
    #include <stdint.h>
    #include <sys/attr.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  9. src/syscall/syscall_solaris.go

    	if len(ts) != 2 {
    		return EINVAL
    	}
    	return utimensat(_AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
    }
    
    //sys	fcntl(fd int, cmd int, arg int) (val int, err error)
    
    // FcntlFlock performs a fcntl syscall for the [F_GETLK], [F_SETLK] or [F_SETLKW] command.
    func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  10. src/runtime/os_netbsd.go

    	osyield()
    }
    
    func kqueue() int32
    
    //go:noescape
    func kevent(kq int32, ch *keventt, nch int32, ev *keventt, nev int32, ts *timespec) int32
    
    func pipe2(flags int32) (r, w int32, errno int32)
    func fcntl(fd, cmd, arg int32) (ret int32, errno int32)
    
    func issetugid() int32
    
    const (
    	_ESRCH     = 3
    	_ETIMEDOUT = 60
    
    	// From NetBSD's <sys/time.h>
    	_CLOCK_REALTIME  = 0
    	_CLOCK_VIRTUAL   = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top