summaryrefslogtreecommitdiffstats
path: root/contrib/go/_std_1.26/src/net/sendfile_stub.go
blob: 380c590e266d308948d05aaadeaa30607d399115 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !(linux || (darwin && !ios) || dragonfly || freebsd || solaris || windows)

package net

import "io"

var testHookSupportsSendfile func() bool

func supportsSendfile() bool {
	return false
}

func sendFile(c *netFD, r io.Reader) (n int64, err error, handled bool) {
	return 0, nil, false
}