Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 133 for tzcntl (0.36 sec)

  1. src/runtime/nbpipe_test.go

    	checkCloseonexec(t, w, "writer")
    
    	// Test that fcntl returns an error as expected.
    	if runtime.Close(r) != 0 {
    		t.Fatalf("Close(%d) failed", r)
    	}
    	val, errno := runtime.Fcntl(r, syscall.F_GETFD, 0)
    	if val != -1 {
    		t.Errorf("Fcntl succeeded unexpectedly")
    	} else if syscall.Errno(errno) != syscall.EBADF {
    		t.Errorf("Fcntl failed with error %v, expected %v", syscall.Errno(errno), syscall.EBADF)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 20 20:32:54 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/outbuf_darwin.go

    // license that can be found in the LICENSE file.
    
    package ld
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    // Implemented in the syscall package.
    //
    //go:linkname fcntl syscall.fcntl
    func fcntl(fd int, cmd int, arg int) (int, error)
    
    func (out *OutBuf) fallocate(size uint64) error {
    	stat, err := out.f.Stat()
    	if err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 13 15:50:02 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewriteAMD64.go

    		v.AddArg(v0)
    		return true
    	}
    }
    func rewriteValueAMD64_OpCtz16NonZero(v *Value) bool {
    	v_0 := v.Args[0]
    	// match: (Ctz16NonZero x)
    	// cond: buildcfg.GOAMD64 >= 3
    	// result: (TZCNTL x)
    	for {
    		x := v_0
    		if !(buildcfg.GOAMD64 >= 3) {
    			break
    		}
    		v.reset(OpAMD64TZCNTL)
    		v.AddArg(x)
    		return true
    	}
    	// match: (Ctz16NonZero x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 712.7K bytes
    - Viewed (0)
  4. src/syscall/forkpipe.go

    // descriptors.
    func forkExecPipe(p []int) error {
    	err := Pipe(p)
    	if err != nil {
    		return err
    	}
    	_, err = fcntl(p[0], F_SETFD, FD_CLOEXEC)
    	if err != nil {
    		return err
    	}
    	_, err = fcntl(p[1], F_SETFD, FD_CLOEXEC)
    	return err
    }
    
    func acquireForkLock() {
    	ForkLock.Lock()
    }
    
    func releaseForkLock() {
    	ForkLock.Unlock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 10 19:19:59 UTC 2023
    - 604 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go

    // license that can be found in the LICENSE file.
    
    //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc)
    
    package unix
    
    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 Oct 19 23:33:33 UTC 2023
    - 436 bytes
    - Viewed (0)
  6. src/syscall/flock_bsd.go

    // license that can be found in the LICENSE file.
    
    //go:build darwin || dragonfly || freebsd || netbsd || openbsd
    
    package syscall
    
    import "unsafe"
    
    // 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 {
    	_, err := fcntlPtr(int(fd), cmd, unsafe.Pointer(lk))
    	return err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 475 bytes
    - Viewed (0)
  7. src/internal/syscall/unix/fcntl_wasip1.go

    // Copyright 2023 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.
    
    //go:build wasip1
    
    package unix
    
    import "syscall"
    
    func Fcntl(fd int, cmd int, arg int) (int, error) {
    	if cmd == syscall.F_GETFL {
    		flags, err := fd_fdstat_get_flags(fd)
    		return int(flags), err
    	}
    	return 0, syscall.ENOSYS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 26 17:59:52 UTC 2023
    - 388 bytes
    - Viewed (0)
  8. src/syscall/flock_linux_32bit.go

    // license that can be found in the LICENSE file.
    
    //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)
  9. src/syscall/linkname_darwin.go

    // used by internal/poll
    //go:linkname fdopendir
    
    // used by internal/syscall/unix
    //go:linkname unlinkat
    //go:linkname openat
    //go:linkname fstatat
    
    // used by cmd/link
    //go:linkname msync
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 468 bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_aix.go

    //sys	ioctlPtr(fd int, req int, arg unsafe.Pointer) (err error) = ioctl
    
    // fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX
    // There is no way to create a custom fcntl and to keep //sys fcntl easily,
    // Therefore, the programmer must call dup2 instead of fcntl in this case.
    
    // FcntlInt performs a fcntl syscall on fd with the provided command and argument.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
Back to top