Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newUnixFile (0.13 sec)

  1. src/net/fd_unix.go

    	return netfd, nil
    }
    
    // Defined in os package.
    func newUnixFile(fd int, name string) *os.File
    
    func (fd *netFD) dup() (f *os.File, err error) {
    	ns, call, err := fd.pfd.Dup()
    	if err != nil {
    		if call != "" {
    			err = os.NewSyscallError(call, err)
    		}
    		return nil, err
    	}
    
    	return newUnixFile(ns, fd.name()), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 20:19:46 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. src/os/file_unix.go

    // the Fd method has returned a blocking descriptor, and we want to
    // retain that behavior because existing code expects it and depends on it.
    //
    //go:linkname net_newUnixFile net.newUnixFile
    func net_newUnixFile(fd int, name string) *File {
    	if fd < 0 {
    		panic("invalid FD")
    	}
    
    	return newFile(fd, name, kindSock, true)
    }
    
    // newFileKind describes the kind of file to newFile.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top