Skip to content
Snippets Groups Projects
  1. Jul 08, 2020
    • Jake Goulding's avatar
      Limit macOS `$INODE64` symbol names to x86 and x86_64 · 8c2daaea
      Jake Goulding authored
      The new ARM-based platform doesn't need these as there's no legacy
      constraints.
      
      Tested via
      
      **demo.c**
      
      ```c
      
      int main() {
        fstat(0, NULL);
        fstatat(0, NULL, NULL, 0);
        lstat(NULL, NULL);
        stat(NULL, NULL);
        readdir(NULL);
        readdir_r(NULL, NULL, NULL);
      }
      ```
      
      **Compilation**
      
      ```none
      % SDKROOT=/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk MACOSX_DEPLOYMENT_TARGET=11.5 cc -arch arm64 demo.c
      
      % nm a.out
      0000000100008030 d __dyld_private
      0000000100000000 T __mh_execute_header
                       U _fstat
                       U _fstatat
                       U _lstat
      0000000100003e64 T _main
                       U _readdir
                       U _readdir_r
                       U _stat
                       U dyld_stub_binder
      ```
      
      This has also been experimentally compiled on a Developer Transition Kit.
      8c2daaea
    • Yuki Okushi's avatar
  2. Jul 07, 2020
  3. Jul 06, 2020
  4. Jul 04, 2020
  5. Jul 03, 2020
  6. Jul 02, 2020
  7. Jul 01, 2020
  8. Jun 30, 2020
    • Yuki Okushi's avatar
    • Andrew Walbran's avatar
      Android: Add various constants and functions. · 51acd7f4
      Andrew Walbran authored
      In particular:
      Add timerfd constants and functions, from sys/timerfd.h.
      Add EFD_SEMAPHORE and group all EFD_ constants together.
      Add sigtimedwait function, from signal.h.
      Add missing fallocate constants and functions, from linux/falloc.h and fcntl.h.
      Add xattr functions, from sys/xattr.h.
      Add SCHED_ and SEEK_ constants, from linux/sched.h and bits/seek_constants.h.
      Add rlimit functions, from sys/resource.h.
      Add RENAME_ constants, from stdio.h.
      Add ino64_t type, from sys/types.h.
      51acd7f4
Loading