// 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.

// +build linux openbsd netbsd dragonfly

package unix

import (
	
	
)

func ( int,  string,  int) error {
	var  *byte
	,  := 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) {
	var  *byte
	,  := syscall.BytePtrFromString()
	if  != nil {
		return 0, 
	}

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

	return int(), nil
}

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

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

	return nil

}