File: syscall_dup.go

package info (click to toggle)
golang-github-sevlyar-go-daemon 0.1.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 232 kB
  • sloc: makefile: 3
file content (11 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
// +build !linux !arm64
// +build !windows
// +build go1.7

package daemon

import "golang.org/x/sys/unix"

func syscallDup(oldfd int, newfd int) (err error) {
	return unix.Dup2(oldfd, newfd)
}