Source file src/internal/syscall/unix/at_darwin.go

     1  // Copyright 2018 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package unix
     6  
     7  import (
     8  	"syscall"
     9  	_ "unsafe" // for linkname
    10  )
    11  
    12  func Unlinkat(dirfd int, path string, flags int) error {
    13  	return unlinkat(dirfd, path, flags)
    14  }
    15  
    16  func Openat(dirfd int, path string, flags int, perm uint32) (int, error) {
    17  	return openat(dirfd, path, flags, perm)
    18  }
    19  
    20  func Fstatat(dirfd int, path string, stat *syscall.Stat_t, flags int) error {
    21  	return fstatat(dirfd, path, stat, flags)
    22  }
    23  
    24  //go:linkname unlinkat syscall.unlinkat
    25  func unlinkat(dirfd int, path string, flags int) error
    26  
    27  //go:linkname openat syscall.openat
    28  func openat(dirfd int, path string, flags int, perm uint32) (int, error)
    29  
    30  //go:linkname fstatat syscall.fstatat
    31  func fstatat(dirfd int, path string, stat *syscall.Stat_t, flags int) error
    32  

View as plain text