Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 86 for tzcntl (0.28 sec)

  1. src/runtime/os_aix.go

    	}
    	return ts.tv_sec, int32(ts.tv_nsec)
    }
    
    //go:nosplit
    func fcntl(fd, cmd, arg int32) (int32, int32) {
    	r, errno := syscall3(&libc_fcntl, uintptr(fd), uintptr(cmd), uintptr(arg))
    	return int32(r), int32(errno)
    }
    
    //go:nosplit
    func setNonblock(fd int32) {
    	flags, _ := fcntl(fd, _F_GETFL, 0)
    	if flags != -1 {
    		fcntl(fd, _F_SETFL, flags|_O_NONBLOCK)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. src/runtime/linkname_unix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package runtime
    
    import _ "unsafe"
    
    // used in internal/syscall/unix
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 266 bytes
    - Viewed (0)
  3. src/net/sock_cloexec_solaris.go

    // Support for SOCK_* flags as part of the type parameter was added to Oracle
    // Solaris in the 11.4 release. Thus, on releases prior to 11.4, we fall back
    // to the combination of socket(3c) and fcntl(2).
    
    package net
    
    import (
    	"internal/poll"
    	"internal/syscall/unix"
    	"os"
    	"syscall"
    )
    
    // Wrapper around the socket system call that marks the returned file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. src/syscall/flock_linux.go

    import "unsafe"
    
    // fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux
    // systems by flock_linux_32bit.go to be SYS_FCNTL64.
    var fcntl64Syscall uintptr = SYS_FCNTL
    
    // 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 {
    	_, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk)))
    	if errno == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 647 bytes
    - Viewed (0)
  5. 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)
  6. src/runtime/fds_unix.go

    		// we define them here rather than in each of the OS specific files.
    		F_GETFD = 0x01
    		EBADF   = 0x09
    		O_RDWR  = 0x02
    	)
    
    	devNull := []byte("/dev/null\x00")
    	for i := 0; i < 3; i++ {
    		ret, errno := fcntl(int32(i), F_GETFD, 0)
    		if ret >= 0 {
    			continue
    		}
    
    		if errno != EBADF {
    			print("runtime: unexpected error while checking standard file descriptor ", i, ", errno=", errno, "\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:20:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd.go

    //sys	fcntl(fd int, cmd int, arg int) (n int, err error)
    //sys	fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) = SYS_FCNTL
    
    // FcntlInt performs a fcntl syscall on fd with the provided command and argument.
    func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
    	return fcntl(int(fd), cmd, arg)
    }
    
    // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 11K bytes
    - Viewed (0)
  8. src/runtime/defs_openbsd.go

    */
    
    package runtime
    
    /*
    #include <sys/types.h>
    #include <sys/event.h>
    #include <sys/mman.h>
    #include <sys/time.h>
    #include <sys/unistd.h>
    #include <sys/signal.h>
    #include <errno.h>
    #include <fcntl.h>
    #include <pthread.h>
    #include <signal.h>
    */
    import "C"
    
    const (
    	EINTR     = C.EINTR
    	EFAULT    = C.EFAULT
    	EAGAIN    = C.EAGAIN
    	ETIMEDOUT = C.ETIMEDOUT
    
    	O_NONBLOCK = C.O_NONBLOCK
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 17:31:23 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top