Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for O_CLOEXEC (0.15 sec)

  1. src/runtime/defs_dragonfly.go

    	EFAULT    = C.EFAULT
    	EBUSY     = C.EBUSY
    	EAGAIN    = C.EAGAIN
    	ETIMEDOUT = C.ETIMEDOUT
    
    	O_WRONLY   = C.O_WRONLY
    	O_NONBLOCK = C.O_NONBLOCK
    	O_CREAT    = C.O_CREAT
    	O_TRUNC    = C.O_TRUNC
    	O_CLOEXEC  = C.O_CLOEXEC
    
    	PROT_NONE  = C.PROT_NONE
    	PROT_READ  = C.PROT_READ
    	PROT_WRITE = C.PROT_WRITE
    	PROT_EXEC  = C.PROT_EXEC
    
    	MAP_ANON    = C.MAP_ANON
    	MAP_PRIVATE = C.MAP_PRIVATE
    	MAP_FIXED   = C.MAP_FIXED
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. src/os/pipe2_unix.go

    // Pipe returns a connected pair of Files; reads from r return bytes written to w.
    // It returns the files and an error, if any.
    func Pipe() (r *File, w *File, err error) {
    	var p [2]int
    
    	e := syscall.Pipe2(p[0:], syscall.O_CLOEXEC)
    	if e != nil {
    		return nil, nil, NewSyscallError("pipe2", e)
    	}
    
    	return newFile(p[0], "|0", kindPipe, false), newFile(p[1], "|1", kindPipe, false), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:47:23 UTC 2024
    - 654 bytes
    - Viewed (0)
  3. src/runtime/defs_netbsd.go

    */
    import "C"
    
    const (
    	EINTR  = C.EINTR
    	EFAULT = C.EFAULT
    	EAGAIN = C.EAGAIN
    
    	O_WRONLY   = C.O_WRONLY
    	O_NONBLOCK = C.O_NONBLOCK
    	O_CREAT    = C.O_CREAT
    	O_TRUNC    = C.O_TRUNC
    	O_CLOEXEC  = C.O_CLOEXEC
    
    	PROT_NONE  = C.PROT_NONE
    	PROT_READ  = C.PROT_READ
    	PROT_WRITE = C.PROT_WRITE
    	PROT_EXEC  = C.PROT_EXEC
    
    	MAP_ANON    = C.MAP_ANON
    	MAP_PRIVATE = C.MAP_PRIVATE
    	MAP_FIXED   = C.MAP_FIXED
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/runtime/defs_freebsd.go

    const (
    	EINTR     = C.EINTR
    	EFAULT    = C.EFAULT
    	EAGAIN    = C.EAGAIN
    	ETIMEDOUT = C.ETIMEDOUT
    
    	O_WRONLY   = C.O_WRONLY
    	O_NONBLOCK = C.O_NONBLOCK
    	O_CREAT    = C.O_CREAT
    	O_TRUNC    = C.O_TRUNC
    	O_CLOEXEC  = C.O_CLOEXEC
    
    	PROT_NONE  = C.PROT_NONE
    	PROT_READ  = C.PROT_READ
    	PROT_WRITE = C.PROT_WRITE
    	PROT_EXEC  = C.PROT_EXEC
    
    	MAP_ANON    = C.MAP_ANON
    	MAP_SHARED  = C.MAP_SHARED
    	MAP_PRIVATE = C.MAP_PRIVATE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/os/removeall_at.go

    // The contents of this file are not relevant for test caching.
    func openDirAt(dirfd int, name string) (*File, error) {
    	var r int
    	for {
    		var e error
    		r, e = unix.Openat(dirfd, name, O_RDONLY|syscall.O_CLOEXEC|syscall.O_DIRECTORY|syscall.O_NOFOLLOW, 0)
    		if e == nil {
    			break
    		}
    
    		// See comment in openFileNolog.
    		if e == syscall.EINTR {
    			continue
    		}
    
    		return nil, e
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/syscall/syscall_js.go

    )
    
    const (
    	O_RDONLY = 0
    	O_WRONLY = 1
    	O_RDWR   = 2
    
    	O_CREAT  = 0100
    	O_CREATE = O_CREAT
    	O_TRUNC  = 01000
    	O_APPEND = 02000
    	O_EXCL   = 0200
    	O_SYNC   = 010000
    
    	O_CLOEXEC = 0
    )
    
    const (
    	F_DUPFD   = 0
    	F_GETFD   = 1
    	F_SETFD   = 2
    	F_GETFL   = 3
    	F_SETFL   = 4
    	F_GETOWN  = 5
    	F_SETOWN  = 6
    	F_GETLK   = 7
    	F_SETLK   = 8
    	F_SETLKW  = 9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. src/os/file_unix.go

    		}
    	}
    
    	var (
    		r int
    		s poll.SysFile
    		e error
    	)
    	// We have to check EINTR here, per issues 11180 and 39237.
    	ignoringEINTR(func() error {
    		r, s, e = open(name, flag|syscall.O_CLOEXEC, syscallMode(perm))
    		return e
    	})
    	if e != nil {
    		return nil, &PathError{Op: "open", Path: name, Err: e}
    	}
    
    	// open(2) itself won't handle the sticky bit on *BSD and Solaris
    	if setSticky {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd.go

    }
    
    func PtraceSingleStep(pid int) (err error) {
    	return ptrace(PT_STEP, pid, 1, 0)
    }
    
    func Dup3(oldfd, newfd, flags int) error {
    	if oldfd == newfd || flags&^O_CLOEXEC != 0 {
    		return EINVAL
    	}
    	how := F_DUP2FD
    	if flags&O_CLOEXEC != 0 {
    		how = F_DUP2FD_CLOEXEC
    	}
    	_, err := fcntl(oldfd, how, newfd)
    	return err
    }
    
    /*
     * Exposed directly
     */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  9. src/syscall/exec_linux.go

    		_, _, err1 = RawSyscall(SYS_DUP3, uintptr(pipe), uintptr(nextfd), O_CLOEXEC)
    		if err1 != 0 {
    			goto childerror
    		}
    		pipe = nextfd
    		nextfd++
    	}
    	for i = 0; i < len(fd); i++ {
    		if fd[i] >= 0 && fd[i] < i {
    			if nextfd == pipe { // don't stomp on pipe
    				nextfd++
    			}
    			_, _, err1 = RawSyscall(SYS_DUP3, uintptr(fd[i]), uintptr(nextfd), O_CLOEXEC)
    			if err1 != 0 {
    				goto childerror
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. src/syscall/exec_unix.go

    //
    //   - [Pipe]. Use pipe2 if available. Otherwise, does not block,
    //     so use ForkLock.
    //   - [Socket]. Use SOCK_CLOEXEC if available. Otherwise, does not
    //     block, so use ForkLock.
    //   - [Open]. Use [O_CLOEXEC] if available. Otherwise, may block,
    //     so live with the race.
    //   - [Dup]. Use [F_DUPFD_CLOEXEC] or dup3 if available. Otherwise,
    //     does not block, so use ForkLock.
    var ForkLock sync.RWMutex
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top