Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 63 for plfd (0.05 sec)

  1. src/os/file_wasip1.go

    //
    // There is an equivalent function in net.rawConn.
    //
    // PollFD is not intended for use outside the standard library.
    func (f *file) PollFD() *poll.FD {
    	return &f.pfd
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:12:41 UTC 2023
    - 633 bytes
    - Viewed (0)
  2. src/cmd/internal/obj/arm/anames.go

    	"MULS",
    	"MMULA",
    	"MMULS",
    	"WORD",
    	"MULL",
    	"MULAL",
    	"MULLU",
    	"MULALU",
    	"BX",
    	"BXRET",
    	"DWORD",
    	"LDREX",
    	"STREX",
    	"LDREXD",
    	"STREXD",
    	"DMB",
    	"PLD",
    	"CLZ",
    	"REV",
    	"REV16",
    	"REVSH",
    	"RBIT",
    	"XTAB",
    	"XTAH",
    	"XTABU",
    	"XTAHU",
    	"BFX",
    	"BFXU",
    	"BFC",
    	"BFI",
    	"MULWT",
    	"MULWB",
    	"MULBB",
    	"MULAWT",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 16 15:58:33 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  3. src/net/writev_unix.go

    	if err != nil {
    		return n, &OpError{Op: "writev", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
    	}
    	return n, nil
    }
    
    func (fd *netFD) writeBuffers(v *Buffers) (n int64, err error) {
    	n, err = fd.pfd.Writev((*[][]byte)(v))
    	runtime.KeepAlive(fd)
    	return n, wrapSyscallError("writev", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 07 16:48:35 UTC 2022
    - 666 bytes
    - Viewed (0)
  4. src/os/file_unix.go

    	// because historically we have always returned a descriptor
    	// opened in blocking mode. The File will continue to work,
    	// but any blocking operation will tie up a thread.
    	if f.nonblock {
    		f.pfd.SetBlocking()
    	}
    
    	return uintptr(f.pfd.Sysfd)
    }
    
    // NewFile returns a new File with the given file descriptor and
    // name. The returned value will be nil if fd is not a valid file
    // descriptor. On Unix systems, if the file descriptor is in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. src/net/sendfile_linux.go

    		return 0, nil, false
    	}
    
    	sc, err := f.SyscallConn()
    	if err != nil {
    		return 0, nil, false
    	}
    
    	var werr error
    	err = sc.Read(func(fd uintptr) bool {
    		written, werr, handled = poll.SendFile(&c.pfd, int(fd), remain)
    		return true
    	})
    	if err == nil {
    		err = werr
    	}
    
    	if lr != nil {
    		lr.N = remain - written
    	}
    	return written, wrapSyscallError("sendfile", err), handled
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  6. src/net/sendfile_windows.go

    	if ok {
    		n, r = lr.N, lr.R
    		if n <= 0 {
    			return 0, nil, true
    		}
    	}
    
    	f, ok := r.(*os.File)
    	if !ok {
    		return 0, nil, false
    	}
    
    	written, err = poll.SendFile(&fd.pfd, syscall.Handle(f.Fd()), n)
    	if err != nil {
    		err = wrapSyscallError("transmitfile", err)
    	}
    
    	// If any byte was copied, regardless of any error
    	// encountered mid-way, handled must be set to true.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. src/os/stat_unix.go

    // If there is an error, it will be of type [*PathError].
    func (f *File) Stat() (FileInfo, error) {
    	if f == nil {
    		return nil, ErrInvalid
    	}
    	var fs fileStat
    	err := f.pfd.Fstat(&fs.sys)
    	if err != nil {
    		return nil, f.wrapErr("stat", err)
    	}
    	fillFileStatFromSys(&fs, f.name)
    	return &fs, nil
    }
    
    // statNolog stats a file with no test logging.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:38:03 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  8. src/os/file_windows.go

    			kind = "pipe"
    		}
    	}
    
    	f := &File{&file{
    		pfd: poll.FD{
    			Sysfd:         h,
    			IsStream:      true,
    			ZeroReadIsEOF: true,
    		},
    		name: name,
    	}}
    	runtime.SetFinalizer(f.file, (*file).close)
    
    	// Ignore initialization errors.
    	// Assume any problems will show up in later I/O.
    	f.pfd.Init(kind, false)
    
    	return f
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. src/os/readfrom_linux_test.go

    	if err = rc.Control(func(fd uintptr) {
    		pfd, network := GetPollFDAndNetwork(server)
    		if pfd == nil {
    			t.Fatalf("GetPollFDAndNetwork didn't return poll.FD")
    		}
    		if string(network) != proto {
    			t.Fatalf("GetPollFDAndNetwork returned wrong network, got: %s, want: %s", network, proto)
    		}
    		if pfd.Sysfd != int(fd) {
    			t.Fatalf("GetPollFDAndNetwork returned wrong poll.FD, got: %d, want: %d", pfd.Sysfd, int(fd))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. src/net/tcpsock_plan9.go

    	if err != nil {
    		return nil, err
    	}
    	return newTCPConn(fd, ln.lc.KeepAlive, ln.lc.KeepAliveConfig, testPreHookSetKeepAlive, testHookSetKeepAlive), nil
    }
    
    func (ln *TCPListener) close() error {
    	if err := ln.fd.pfd.Close(); err != nil {
    		return err
    	}
    	if _, err := ln.fd.ctl.WriteString("hangup"); err != nil {
    		ln.fd.ctl.Close()
    		return err
    	}
    	if err := ln.fd.ctl.Close(); err != nil {
    		return err
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top