Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 116 for tzcntl (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/runtime/os_unix.go

    const (
    	// These values are the same on all known Unix systems.
    	// If we find a discrepancy some day, we can split them out.
    	_F_SETFD    = 2
    	_FD_CLOEXEC = 1
    )
    
    //go:nosplit
    func closeonexec(fd int32) {
    	fcntl(fd, _F_SETFD, _FD_CLOEXEC)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 20 21:27:51 UTC 2023
    - 436 bytes
    - Viewed (0)
  10. 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)
Back to top