Skip to content
Snippets Groups Projects
  1. Aug 30, 2020
  2. Aug 28, 2020
    • Thomas de Zeeuw's avatar
      Add IOV_MAX and UIO_MAXIOV constants · 41fb4805
      Thomas de Zeeuw authored
      These constant can be used to determine the maximum number of iovecs can
      be passed to functions like readv/writev.
      
      Linux like uses UIO_MAXIOV, while the BSD family uses IOV_MAX.
      41fb4805
  3. Aug 24, 2020
  4. Aug 23, 2020
  5. Aug 22, 2020
  6. Aug 20, 2020
  7. Aug 19, 2020
  8. Aug 18, 2020
    • Josh Triplett's avatar
      Define P_PIDFD, used with waitid · e709b3f7
      Josh Triplett authored
      Linux defines a waitid type `P_PIDFD`, for use with process file
      descriptors (`pidfd`). Add that constant.
      
      In libc-test, add linux/wait.h to the Linux-specific and
      Android-specific headers, to get the definition. Exclude it on Android
      and musl for now, though, as the versions in CI don't have it yet.
      e709b3f7
  9. Aug 12, 2020
  10. Aug 11, 2020
  11. Aug 10, 2020
  12. Aug 09, 2020
  13. Aug 06, 2020
    • Joshua M. Clulow's avatar
      add openpty and forkpty implementation for illumos systems · 1f0ea0da
      Joshua M. Clulow authored
      At time of writing, illumos systems do not provide an implementation of
      the openpty() and forkpty() wrappers provided on some other UNIX
      systems.  While we expect to grow an implementation, it seems prudent to
      provide a compatibility routine here first to unblock illumos support in
      the popular nix crate.
      1f0ea0da
  14. Aug 05, 2020
    • Dark Kirb's avatar
      Add DevkitPPC support · e9a12683
      Dark Kirb authored
      DevkitPPC does not support unix sockets natively, meaning that bindings
      to these functions was removed for powerpc targets with "nintendo" as
      vendor.
      
      Suggested target json files:
      
      Nintendo Gamecube:
      ```
      {
        "arch": "powerpc",
        "data-layout": "E-m:e-p:32:32-i64:64-n32",
        "dynamic-linking": false,
        "env": "newlib",
        "executables": true,
        "has-elf-tls": false,
        "has-rpath": true,
        "linker-flavor": "gcc",
        "llvm-target": "powerpc-eabi",
        "max-atomic-width": 32,
        "os": "dolphin",
        "target-c-int-width": "32",
        "target-endian": "big",
        "target-family": "unix",
        "target-mcount": "_mcount",
        "target-pointer-width": "32",
        "vendor": "nintendo"
      }
      ```
      
      Nintendo Wii:
      ```
      {
        "arch": "powerpc",
        "data-layout": "E-m:e-p:32:32-i64:64-n32",
        "dynamic-linking": false,
        "env": "newlib",
        "executables": true,
        "has-elf-tls": false,
        "has-rpath": true,
        "linker-flavor": "gcc",
        "llvm-target": "powerpc-eabi",
        "max-atomic-width": 32,
        "os": "revolution",
        "target-c-int-width": "32",
        "target-endian": "big",
        "target-family": "unix",
        "target-mcount": "_mcount",
        "target-pointer-width": "32",
        "vendor": "nintendo"
      }
      ```
      e9a12683
  15. Aug 02, 2020
  16. Jul 29, 2020
  17. Jul 27, 2020
  18. Jul 25, 2020
  19. Jul 24, 2020
  20. Jul 23, 2020
  21. Jul 22, 2020
  22. Jul 20, 2020
  23. Jul 19, 2020
  24. Jul 17, 2020
    • Patrick Mooney's avatar
      Expose EPOLLEXCLUSIVE on illumos platform · e1b97571
      Patrick Mooney authored
      Initially the EPOLLEXCLUSIVE definition was hidden on the illumos
      platform as it lacked explicit support.  After further review, it was
      concluded that EPOLLEXCLUSIVE can safely be considered a no-op, when not
      fully implemented by the OS, making it safe for use on illumos.
      e1b97571
  25. Jul 14, 2020
  26. Jul 09, 2020
  27. 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
  28. Jul 07, 2020
Loading