Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for Sendfile (0.15 sec)

  1. src/net/http/fs_test.go

    	res.Body.Close()
    
    	// Force child to exit cleanly.
    	Post(fmt.Sprintf("http://%s/quit", ln.Addr()), "", nil)
    	child.Wait()
    
    	rx := regexp.MustCompile(`\b(n64:)?sendfile(64)?\(`)
    	out := buf.String()
    	if !rx.MatchString(out) {
    		t.Errorf("no sendfile system call found in:\n%s", out)
    	}
    }
    
    func getBody(t *testing.T, testName string, req Request, client *Client) (*Response, []byte) {
    	r, err := client.Do(&req)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go

    //go:cgo_import_dynamic libc___xnet_connect __xnet_connect "libsocket.so"
    //go:cgo_import_dynamic libc_mmap mmap "libc.so"
    //go:cgo_import_dynamic libc_munmap munmap "libc.so"
    //go:cgo_import_dynamic libc_sendfile sendfile "libsendfile.so"
    //go:cgo_import_dynamic libc___xnet_sendto __xnet_sendto "libsocket.so"
    //go:cgo_import_dynamic libc___xnet_socket __xnet_socket "libsocket.so"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 59.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go

    	return
    }
    
    var libc_sysctl_trampoline_addr uintptr
    
    //go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 66.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go

    	return
    }
    
    var libc_sysctl_trampoline_addr uintptr
    
    //go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 66.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    	return mountSetattr(dirfd, pathname, flags, attr, unsafe.Sizeof(*attr))
    }
    
    func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
    	if raceenabled {
    		raceReleaseMerge(unsafe.Pointer(&ioSync))
    	}
    	return sendfile(outfd, infd, offset, count)
    }
    
    // Sendto
    // Recvfrom
    // Socketpair
    
    /*
     * Direct access
     */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  6. src/net/http/transport.go

    	w.pc.nwrite += int64(n)
    	return
    }
    
    // ReadFrom exposes persistConnWriter's underlying Conn to io.Copy and if
    // the Conn implements io.ReaderFrom, it can take advantage of optimizations
    // such as sendfile.
    func (w persistConnWriter) ReadFrom(r io.Reader) (n int64, err error) {
    	n, err = io.Copy(w.pc.conn, r)
    	w.pc.nwrite += n
    	return
    }
    
    var _ io.ReaderFrom = (*persistConnWriter)(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  7. src/os/os_test.go

    	// but then if ReadFile reads just a single byte at offset 0,
    	// the read at offset 1 returns EOF instead of more data.
    	// ReadFile has a minimum read size of 512 to work around this,
    	// but test explicitly that it's working.
    	name := "/proc/sys/fs/pipe-max-size"
    	if _, err := Stat(name); err != nil {
    		t.Skip(err)
    	}
    	data, err := ReadFile(name)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  8. src/cmd/dist/build.go

    		errprintf("cp %s %s\n", src, dst)
    	}
    	writefile(readfile(src), dst, flag)
    }
    
    // dopack copies the package src to dst,
    // appending the files listed in extra.
    // The archive format is the traditional Unix ar format.
    func dopack(dst, src string, extra []string) {
    	bdst := bytes.NewBufferString(readfile(src))
    	for _, file := range extra {
    		b := readfile(file)
    		// find last path element for archive member name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  9. cmd/xl-storage_test.go

    		}
    	}
    
    	{
    		buf := make([]byte, 5)
    		// Test for negative offset.
    		if _, err = xlStorage.ReadFile(context.Background(), volume, "myobject", -1, buf, v); err == nil {
    			t.Fatalf("expected: error, got: <nil>")
    		}
    	}
    
    	for l := 0; l < 2; l++ {
    		// Following block validates all ReadFile test cases.
    		for i, testCase := range testCases {
    			var n int64
    			// Common read buffer.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  10. cmd/xl-storage.go

    // tries to verify whether the disk has bitrot.
    //
    // Additionally ReadFile also starts reading from an offset. ReadFile
    // semantics are same as io.ReadFull.
    func (s *xlStorage) ReadFile(ctx context.Context, volume string, path string, offset int64, buffer []byte, verifier *BitrotVerifier) (int64, error) {
    	if offset < 0 {
    		return 0, errInvalidArgument
    	}
    
    	volumeDir, err := s.getVolDir(volume)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top