File: dup_file.go

package info (click to toggle)
golang-github-cloudflare-tableflip 1.2.1~git20200514.4baec98-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 196 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 190 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
// +build go1.12

package tableflip

import (
	"os"
)

func dupFile(fh *os.File, name fileName) (*file, error) {
	// os.File implements syscall.Conn from go 1.12
	return dupConn(fh, name)
}