Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for SetNonblock (0.16 sec)

  1. src/runtime/export_darwin_test.go

    // Copyright 2019 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 runtime
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 04:58:07 UTC 2023
    - 207 bytes
    - Viewed (0)
  2. src/net/sock_cloexec_solaris.go

    	if err == nil {
    		syscall.CloseOnExec(s)
    	}
    	syscall.ForkLock.RUnlock()
    	if err != nil {
    		return -1, os.NewSyscallError("socket", err)
    	}
    	if err = syscall.SetNonblock(s, true); err != nil {
    		poll.CloseFunc(s)
    		return -1, os.NewSyscallError("setnonblock", err)
    	}
    	return s, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. src/net/sys_cloexec.go

    	if err == nil {
    		syscall.CloseOnExec(s)
    	}
    	syscall.ForkLock.RUnlock()
    	if err != nil {
    		return -1, os.NewSyscallError("socket", err)
    	}
    	if err = syscall.SetNonblock(s, true); err != nil {
    		poll.CloseFunc(s)
    		return -1, os.NewSyscallError("setnonblock", err)
    	}
    	return s, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 03 14:38:32 UTC 2022
    - 962 bytes
    - Viewed (0)
  4. src/internal/poll/sock_cloexec_accept.go

    	ns, sa, err = AcceptFunc(s)
    	if err == nil {
    		syscall.CloseOnExec(ns)
    	}
    	if err != nil {
    		return -1, nil, "accept", err
    	}
    	if err = syscall.SetNonblock(ns, true); err != nil {
    		CloseFunc(ns)
    		return -1, nil, "setnonblock", err
    	}
    	return ns, sa, "", nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 16 03:40:42 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  5. src/runtime/export_aix_test.go

    // Copyright 2019 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 runtime
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 04:58:07 UTC 2023
    - 207 bytes
    - Viewed (0)
  6. src/internal/poll/sock_cloexec_solaris.go

    	ns, sa, err := AcceptFunc(s)
    	if err == nil {
    		syscall.CloseOnExec(ns)
    	}
    	if err != nil {
    		return -1, nil, "accept", err
    	}
    	if err = syscall.SetNonblock(ns, true); err != nil {
    		CloseFunc(ns)
    		return -1, nil, "setnonblock", err
    	}
    	return ns, sa, "", nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprogcgo/eintr.go

    }
    
    // testPipe tests pipe operations.
    func testPipe(wg *sync.WaitGroup) {
    	r, w, err := os.Pipe()
    	if err != nil {
    		log.Fatal(err)
    	}
    	if err := syscall.SetNonblock(int(r.Fd()), false); err != nil {
    		log.Fatal(err)
    	}
    	if err := syscall.SetNonblock(int(w.Fd()), false); err != nil {
    		log.Fatal(err)
    	}
    	wg.Add(2)
    	go func() {
    		defer wg.Done()
    		defer w.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  8. src/internal/poll/sys_cloexec.go

    	ns, sa, err := AcceptFunc(s)
    	if err == nil {
    		syscall.CloseOnExec(ns)
    	}
    	if err != nil {
    		return -1, nil, "accept", err
    	}
    	if err = syscall.SetNonblock(ns, true); err != nil {
    		CloseFunc(ns)
    		return -1, nil, "setnonblock", err
    	}
    	return ns, sa, "", nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:17 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. src/runtime/nbpipe_pipe.go

    //go:build aix || darwin
    
    package runtime
    
    func nonblockingPipe() (r, w int32, errno int32) {
    	r, w, errno = pipe()
    	if errno != 0 {
    		return -1, -1, errno
    	}
    	closeonexec(r)
    	setNonblock(r)
    	closeonexec(w)
    	setNonblock(w)
    	return r, w, errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 405 bytes
    - Viewed (0)
  10. src/runtime/nbpipe_pipe_test.go

    	r, w, errno := runtime.Pipe()
    	if errno != 0 {
    		t.Fatal(syscall.Errno(errno))
    	}
    	defer func() {
    		runtime.Close(r)
    		runtime.Close(w)
    	}()
    
    	checkIsPipe(t, r, w)
    
    	runtime.SetNonblock(r)
    	runtime.SetNonblock(w)
    	checkNonblocking(t, r, "reader")
    	checkNonblocking(t, w, "writer")
    
    	runtime.Closeonexec(r)
    	runtime.Closeonexec(w)
    	checkCloseonexec(t, r, "reader")
    	checkCloseonexec(t, w, "writer")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 03 20:47:17 UTC 2022
    - 706 bytes
    - Viewed (0)
Back to top