github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/syscall/syscall_libc_darwin_arm64.go (about)

     1  //go:build darwin
     2  
     3  package syscall
     4  
     5  import (
     6  	"unsafe"
     7  )
     8  
     9  // struct DIR * buf fdopendir(int fd);
    10  //
    11  //export fdopendir
    12  func libc_fdopendir(fd int32) unsafe.Pointer
    13  
    14  // int closedir(struct DIR * buf);
    15  //
    16  //export closedir
    17  func libc_closedir(unsafe.Pointer) int32
    18  
    19  // int readdir_r(struct DIR * buf, struct dirent *entry, struct dirent **result);
    20  //
    21  //export readdir_r
    22  func libc_readdir_r(unsafe.Pointer, unsafe.Pointer, unsafe.Pointer) int32
    23  
    24  // int stat(const char *path, struct stat * buf);
    25  //
    26  //export stat
    27  func libc_stat(pathname *byte, ptr unsafe.Pointer) int32
    28  
    29  // int fstat(int fd, struct stat * buf);
    30  //
    31  //export fstat
    32  func libc_fstat(fd int32, ptr unsafe.Pointer) int32
    33  
    34  // int lstat(const char *path, struct stat * buf);
    35  //
    36  //export lstat
    37  func libc_lstat(pathname *byte, ptr unsafe.Pointer) int32