Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 134 for SYS_FCNTL (0.13 sec)

  1. src/syscall/flock_linux.go

    // license that can be found in the LICENSE file.
    
    package syscall
    
    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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 647 bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/fcntl.go

    //go:build dragonfly || freebsd || linux || netbsd
    
    package unix
    
    import "unsafe"
    
    // fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux
    // systems by fcntl_linux_32bit.go to be SYS_FCNTL64.
    var fcntl64Syscall uintptr = SYS_FCNTL
    
    func fcntl(fd int, cmd, arg int) (int, error) {
    	valptr, _, errno := Syscall(fcntl64Syscall, uintptr(fd), uintptr(cmd), uintptr(arg))
    	var err error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. src/syscall/exec_bsd.go

    		} else if runtime.GOOS == "dragonfly" {
    			_, _, err1 = RawSyscall(SYS_FCNTL, uintptr(pipe), _F_DUP2FD_CLOEXEC, uintptr(nextfd))
    		} else {
    			_, _, err1 = RawSyscall(SYS_DUP2, uintptr(pipe), uintptr(nextfd), 0)
    			if err1 != 0 {
    				goto childerror
    			}
    			_, _, err1 = RawSyscall(SYS_FCNTL, uintptr(nextfd), F_SETFD, FD_CLOEXEC)
    		}
    		if err1 != 0 {
    			goto childerror
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. src/internal/runtime/syscall/defs_linux_amd64.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package syscall
    
    const (
    	SYS_MPROTECT      = 10
    	SYS_FCNTL         = 72
    	SYS_EPOLL_CTL     = 233
    	SYS_EPOLL_PWAIT   = 281
    	SYS_EPOLL_CREATE1 = 291
    	SYS_EPOLL_PWAIT2  = 441
    	SYS_EVENTFD2      = 290
    
    	EFD_NONBLOCK = 0x800
    )
    
    type EpollEvent struct {
    	Events uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 14:54:29 UTC 2024
    - 463 bytes
    - Viewed (0)
  5. src/internal/runtime/syscall/defs_linux_arm.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package syscall
    
    const (
    	SYS_FCNTL         = 55
    	SYS_MPROTECT      = 125
    	SYS_EPOLL_CTL     = 251
    	SYS_EPOLL_PWAIT   = 346
    	SYS_EPOLL_CREATE1 = 357
    	SYS_EPOLL_PWAIT2  = 441
    	SYS_EVENTFD2      = 356
    
    	EFD_NONBLOCK = 0x800
    )
    
    type EpollEvent struct {
    	Events uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 14:54:29 UTC 2024
    - 476 bytes
    - Viewed (0)
  6. src/syscall/flock_linux_32bit.go

    //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle)
    
    package syscall
    
    func init() {
    	// On 32-bit Linux systems, the fcntl syscall that matches Go's
    	// Flock_t type is SYS_FCNTL64, not SYS_FCNTL.
    	fcntl64Syscall = SYS_FCNTL64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 21:35:49 UTC 2024
    - 421 bytes
    - Viewed (0)
  7. src/internal/runtime/syscall/defs_linux_arm64.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package syscall
    
    const (
    	SYS_EPOLL_CREATE1 = 20
    	SYS_EPOLL_CTL     = 21
    	SYS_EPOLL_PWAIT   = 22
    	SYS_FCNTL         = 25
    	SYS_MPROTECT      = 226
    	SYS_EPOLL_PWAIT2  = 441
    	SYS_EVENTFD2      = 19
    
    	EFD_NONBLOCK = 0x800
    )
    
    type EpollEvent struct {
    	Events uint32
    	_pad   uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 14:54:29 UTC 2024
    - 472 bytes
    - Viewed (0)
  8. src/syscall/zsysnum_solaris_amd64.go

    // license that can be found in the LICENSE file.
    
    //go:build amd64 && solaris
    
    package syscall
    
    // TODO(aram): remove these before Go 1.3.
    const (
    	SYS_EXECVE = 59
    	SYS_FCNTL  = 62
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 293 bytes
    - Viewed (0)
  9. src/internal/runtime/syscall/defs_linux_386.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package syscall
    
    const (
    	SYS_FCNTL         = 55
    	SYS_MPROTECT      = 125
    	SYS_EPOLL_CTL     = 255
    	SYS_EPOLL_PWAIT   = 319
    	SYS_EPOLL_CREATE1 = 329
    	SYS_EPOLL_PWAIT2  = 441
    	SYS_EVENTFD2      = 328
    
    	EFD_NONBLOCK = 0x800
    )
    
    type EpollEvent struct {
    	Events uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 14:54:29 UTC 2024
    - 461 bytes
    - Viewed (0)
  10. src/internal/runtime/syscall/defs_linux_loong64.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package syscall
    
    const (
    	SYS_EPOLL_CREATE1 = 20
    	SYS_EPOLL_CTL     = 21
    	SYS_EPOLL_PWAIT   = 22
    	SYS_FCNTL         = 25
    	SYS_MPROTECT      = 226
    	SYS_EPOLL_PWAIT2  = 441
    	SYS_EVENTFD2      = 19
    
    	EFD_NONBLOCK = 0x800
    )
    
    type EpollEvent struct {
    	Events    uint32
    	pad_cgo_0 [4]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 14:54:29 UTC 2024
    - 485 bytes
    - Viewed (0)
Back to top