File: dup2.go

package info (click to toggle)
golang-bugsnag-panicwrap 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 156 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 118 bytes parent folder | download
1
2
3
4
5
6
7
8
9
package panicwrap

import (
	"syscall"
)

func dup2(oldfd, newfd int) error {
	return syscall.Dup3(oldfd, newfd, 0)
}