mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
16 lines
397 B
Go
16 lines
397 B
Go
// Copyright 2022 Molecula Corp. (DBA FeatureBase).
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//go:build darwin || (linux && !arm64)
|
|
// +build darwin linux,!arm64
|
|
|
|
package idk
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// dup is an alias for syscall.Dup2 on darwin-amd64, darwin-arm64,
|
|
// linux-amd64, linux-arm or syscall.Dup3 on linux-arm64
|
|
func dup(oldfd int, newfd int) error {
|
|
return syscall.Dup2(oldfd, newfd)
|
|
}
|