Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Sendfile (0.77 sec)

  1. src/net/http/server.go

    // from io.Copy.
    type writerOnly struct {
    	io.Writer
    }
    
    // ReadFrom is here to optimize copying from an [*os.File] regular file
    // to a [*net.TCPConn] with sendfile, or from a supported src type such
    // as a *net.TCPConn on Linux with splice.
    func (w *response) ReadFrom(src io.Reader) (n int64, err error) {
    	buf := getCopyBuf()
    	defer putCopyBuf(buf)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/exec.go

    						nongcc = append(nongcc, f)
    					}
    				}
    				return nongcc, gcc
    			}
    			sfiles, gccfiles = filter(sfiles, sfiles[:0], gccfiles)
    		} else {
    			for _, sfile := range sfiles {
    				data, err := os.ReadFile(filepath.Join(p.Dir, sfile))
    				if err == nil {
    					if bytes.HasPrefix(data, []byte("TEXT")) || bytes.Contains(data, []byte("\nTEXT")) ||
    						bytes.HasPrefix(data, []byte("DATA")) || bytes.Contains(data, []byte("\nDATA")) ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux.go

    	EINTR       = syscall.Errno(0x4)
    	EINVAL      = syscall.Errno(0x16)
    	EIO         = syscall.Errno(0x5)
    	EISDIR      = syscall.Errno(0x15)
    	EMFILE      = syscall.Errno(0x18)
    	EMLINK      = syscall.Errno(0x1f)
    	ENFILE      = syscall.Errno(0x17)
    	ENODEV      = syscall.Errno(0x13)
    	ENOENT      = syscall.Errno(0x2)
    	ENOEXEC     = syscall.Errno(0x8)
    	ENOMEM      = syscall.Errno(0xc)
    	ENOSPC      = syscall.Errno(0x1c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 185.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/load/pkg.go

    )
    
    // goModPath returns the module path in the go.mod in dir, if any.
    func goModPath(dir string) (path string) {
    	return goModPathCache.Do(dir, func() string {
    		data, err := os.ReadFile(filepath.Join(dir, "go.mod"))
    		if err != nil {
    			return ""
    		}
    		var i int
    		if bytes.HasPrefix(data, modulePrefix[1:]) {
    			i = 0
    		} else {
    			i = bytes.Index(data, modulePrefix)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	procReadDirectoryChangesW                                = modkernel32.NewProc("ReadDirectoryChangesW")
    	procReadFile                                             = modkernel32.NewProc("ReadFile")
    	procReadProcessMemory                                    = modkernel32.NewProc("ReadProcessMemory")
    	procReleaseMutex                                         = modkernel32.NewProc("ReleaseMutex")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc_test.go

    		return x509.ParseECPrivateKey(b)
    	})
    }
    
    func loadKey(t *testing.T, filepath string, alg jose.SignatureAlgorithm, unmarshal func([]byte) (interface{}, error)) *jose.JSONWebKey {
    	data, err := os.ReadFile(filepath)
    	if err != nil {
    		t.Fatalf("load file: %v", err)
    	}
    	block, _ := pem.Decode(data)
    	if block == nil {
    		t.Fatalf("file contained no PEM encoded data: %s", filepath)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 97.7K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_pods.go

    }
    
    // nodeHostsFileContent reads the content of node's hosts file.
    func nodeHostsFileContent(hostsFilePath string, hostAliases []v1.HostAlias) ([]byte, error) {
    	hostsFileContent, err := os.ReadFile(hostsFilePath)
    	if err != nil {
    		return nil, err
    	}
    	var buffer bytes.Buffer
    	buffer.WriteString(managedHostsHeaderWithHostNetwork)
    	buffer.Write(hostsFileContent)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/AMD64Ops.go

    		{name: "JUMPTABLE", controls: 2, aux: "Sym"},
    	}
    
    	archs = append(archs, arch{
    		name:               "AMD64",
    		pkg:                "cmd/internal/obj/x86",
    		genfile:            "../../amd64/ssa.go",
    		ops:                AMD64ops,
    		blocks:             AMD64blocks,
    		regnames:           regNamesAMD64,
    		ParamIntRegNames:   "AX BX CX DI SI R8 R9 R10 R11",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 16:40:24 UTC 2023
    - 98K bytes
    - Viewed (1)
Back to top