// Copyright 2018 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 dragonfly || freebsd || linux || netbsd || (openbsd && mips64)

package unix

import (
	
	
)

func ( int,  string,  int) error {
	,  := syscall.BytePtrFromString()
	if  != nil {
		return 
	}

	, ,  := syscall.Syscall(unlinkatTrap, uintptr(), uintptr(unsafe.Pointer()), uintptr())
	if  != 0 {
		return 
	}

	return nil
}

func ( int,  string,  int,  uint32) (int, error) {
	,  := syscall.BytePtrFromString()
	if  != nil {
		return 0, 
	}

	, ,  := syscall.Syscall6(openatTrap, uintptr(), uintptr(unsafe.Pointer()), uintptr(), uintptr(), 0, 0)
	if  != 0 {
		return 0, 
	}

	return int(), nil
}