github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/runtime/os_darwin.c (about)

     1  // Wrapper function because 'open' is a variadic function and variadic functions
     2  // use a different (incompatible) calling convention on darwin/arm64.
     3  
     4  #include <fcntl.h>
     5  int syscall_libc_open(const char *pathname, int flags, mode_t mode) {
     6      return open(pathname, flags, mode);
     7  }