Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for SetNonblock (0.18 sec)

  1. src/syscall/exec_windows.go

    		}
    		b = utf16.AppendRune(b, 0)
    	}
    	b = utf16.AppendRune(b, 0)
    	return b, nil
    }
    
    func CloseOnExec(fd Handle) {
    	SetHandleInformation(Handle(fd), HANDLE_FLAG_INHERIT, 0)
    }
    
    func SetNonblock(fd Handle, nonblocking bool) (err error) {
    	return nil
    }
    
    // FullPath retrieves the full path of the specified file.
    func FullPath(name string) (path string, err error) {
    	p, err := UTF16PtrFromString(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 18:29:48 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  2. src/runtime/os_darwin.go

    	// buffer is somehow full we will not block in the signal handler.
    	// Leave the read end of the pipe blocking so that we will block
    	// in sigNoteSleep.
    	setNonblock(sigNoteWrite)
    }
    
    // sigNoteWakeup wakes up a thread sleeping on a note created by sigNoteSetup.
    func sigNoteWakeup(*note) {
    	var b byte
    	write(uintptr(sigNoteWrite), unsafe.Pointer(&b), 1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_unix.go

    	if err == nil {
    		fd[0] = int(fdx[0])
    		fd[1] = int(fdx[1])
    	}
    	return
    }
    
    var ioSync int64
    
    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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  4. src/internal/poll/fd_unix.go

    	// Atomic store so that concurrent calls to SetBlocking
    	// do not cause a race condition. isBlocking only ever goes
    	// from 0 to 1 so there is no real race here.
    	atomic.StoreUint32(&fd.isBlocking, 1)
    	return syscall.SetNonblock(fd.Sysfd, false)
    }
    
    // Darwin and FreeBSD can't read or write 2GB+ files at a time,
    // even on 64-bit systems.
    // The same is true of socket implementations on many systems.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. src/runtime/sys_darwin.go

    	return ret
    }
    func pthread_cond_signal_trampoline()
    
    // 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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    	if err == nil {
    		fd[0] = int(fdx[0])
    		fd[1] = int(fdx[1])
    	}
    	return
    }
    
    var ioSync int64
    
    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 nonblocking {
    		flag |= O_NONBLOCK
    	} else {
    		flag &= ^O_NONBLOCK
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  7. src/cmd/trace/testdata/go122.test

    String id=79
    	data="runtime.makeslice"
    String id=80
    	data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/slice.go"
    String id=81
    	data="syscall.fcntl"
    String id=82
    	data="syscall.SetNonblock"
    String id=83
    	data="/usr/local/google/home/mknyszek/work/go-1/src/syscall/exec_unix.go"
    String id=84
    	data="os.newFile"
    String id=85
    	data="/usr/local/google/home/mknyszek/work/go-1/src/os/file_unix.go"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 17:15:58 UTC 2024
    - 166K bytes
    - Viewed (0)
  8. api/go1.14.txt

    pkg syscall (freebsd-arm64), func Setgroups([]int) error
    pkg syscall (freebsd-arm64), func SetKevent(*Kevent_t, int, int, int)
    pkg syscall (freebsd-arm64), func Setlogin(string) error
    pkg syscall (freebsd-arm64), func SetNonblock(int, bool) error
    pkg syscall (freebsd-arm64), func Setpgid(int, int) error
    pkg syscall (freebsd-arm64), func Setpriority(int, int, int) error
    pkg syscall (freebsd-arm64), func Setregid(int, int) error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 508.9K bytes
    - Viewed (0)
  9. api/go1.16.txt

    pkg syscall (darwin-arm64), func SetBpfTimeout(int, *Timeval) error
    pkg syscall (darwin-arm64), func SetKevent(*Kevent_t, int, int, int)
    pkg syscall (darwin-arm64), func SetNonblock(int, bool) error
    pkg syscall (darwin-arm64), func Setegid(int) error
    pkg syscall (darwin-arm64), func Seteuid(int) error
    pkg syscall (darwin-arm64), func Setgid(int) error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  10. api/go1.20.txt

    pkg syscall (freebsd-riscv64), func SetBpfTimeout(int, *Timeval) error #53466
    pkg syscall (freebsd-riscv64), func SetKevent(*Kevent_t, int, int, int) #53466
    pkg syscall (freebsd-riscv64), func SetNonblock(int, bool) error #53466
    pkg syscall (freebsd-riscv64), func Setegid(int) error #53466
    pkg syscall (freebsd-riscv64), func Seteuid(int) error #53466
    pkg syscall (freebsd-riscv64), func Setgid(int) error #53466
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 21:23:32 UTC 2023
    - 602.6K bytes
    - Viewed (0)
Back to top