Skip to content
Snippets Groups Projects
  1. Jul 08, 2018
  2. Jun 08, 2018
    • Scott Lamb's avatar
      add fdopendir on macOS · 322ba046
      Scott Lamb authored
      Fixes #1017
      
      I moved it up to src/unix/mod.rs, as it's specified in POSIX.1-2008 and
      appears to be implemented on every Unix-like system.
      
      The symbol names on macOS appear similar to those for opendir; I found
      them via the commands below. I tested the x86_64 version;
      fdopendir$INODE64 worked as expected.
      
      $ nm -arch x86_64 /usr/lib/system/libsystem_c.dylib | grep fdopendir
      000000000007ea6d T _fdopendir
      000000000002ba97 T _fdopendir$INODE64
      $ nm -arch i386 /usr/lib/system/libsystem_c.dylib | grep fdopendir
      00082d1e T _fdopendir
      0002b528 T _fdopendir$INODE64$UNIX2003
      00082d1e T _fdopendir$UNIX2003
      322ba046
  3. Jun 04, 2018
  4. Jun 01, 2018
  5. Mar 18, 2018
    • Francis Gagné's avatar
      Rename the dox configuration option to cross_platform_docs · 18341fd2
      Francis Gagné authored
      The libc crate is used as a dependency of the Rust compiler. Its build
      system passes `--cfg dox` to all crates when generating their
      documentation. libc's documentation is generated when the build system
      is asked to generate the compiler documentation because `cargo doc`
      automatically documents all dependencies.
      
      When the dox configuration option is enabled, libc disables its
      dependency on the core crate and provides the necessary definitions
      itself. The dox configuration option is meant for generating
      documentation for a multitude of targets even if the core crate for that
      target is not installed. However, when documenting the compiler, it's
      not necessary to do that; we can just use core or std as usual.
      
      This change is motivated by the changes made to the compiler in
      rust-lang/rust#48171. With these changes, it's necessary to provide
      implementations of the Clone and Copy traits for some primitive types in
      the library that defines these traits (previously, these implementations
      were provided by the compiler). Normally, these traits (and thus the
      implementations) are provided by core, so any crate that uses
      `#![no_core]` must now provide its own copy of the implementations.
      
      Because libc doesn't provide its own copy of the implementations yet,
      and because the compiler's build system passes `--cfg dox` to libc,
      generating the documentation for the compiler fails when generating
      documentation for libc. By renaming the configuration option, libc will
      use core or std and will thus have the necessary definitions for the
      documentation to be generated successfully.
      18341fd2
  6. Mar 01, 2018
  7. Feb 28, 2018
  8. Feb 27, 2018
  9. Jan 22, 2018
  10. Jan 19, 2018
    • Bill Fraser's avatar
      add DT_UNKNOWN · 1ada396b
      Bill Fraser authored
      The `d_type` field of `struct dirent` can be `DT_UNKNOWN` if a
      filesystem doesn't support returning the file type in directory entries.
      Linux's readdir(3) man page, for example, says: "Currently, only some
      filesystems [...] have full support for returning the file type in
      d_type. All applications must properly handle a return of DT_UNKNOWN."
      1ada396b
  11. Jan 11, 2018
  12. Dec 19, 2017
  13. Dec 14, 2017
  14. Oct 27, 2017
  15. Oct 18, 2017
  16. Oct 13, 2017
  17. Oct 07, 2017
  18. Sep 26, 2017
  19. Sep 19, 2017
  20. Sep 12, 2017
  21. Sep 03, 2017
  22. Aug 27, 2017
    • Alex Crichton's avatar
      Add asmjs/wasm32 to CI · 22b98ded
      Alex Crichton authored
      Rebase of #610 and also move emscripten up much higher in the hierarchy to
      ensure that it doesn't have too much of a ripple effect on other platforms.
      
      This involved moving down a good number of definitions, but hopefully was done
      with care to not break anything!
      22b98ded
  23. Aug 18, 2017
  24. Aug 17, 2017
  25. Aug 10, 2017
  26. Aug 09, 2017
  27. Jul 25, 2017
  28. Jul 24, 2017
  29. Jul 22, 2017
  30. Jul 10, 2017
Loading