Skip to content
Snippets Groups Projects
  1. Jan 08, 2017
    • Zack Weinberg's avatar
      Reorganize again; more portability fixes. · 31d97795
      Zack Weinberg authored
      It turns out that *only* FreeBSD and NetBSD proper have waitid, and that
      Solaris' additional W* constants are totally different from everyone
      else's, which tips me over from 'find some way to shoehorn this into
      the top-level unix/mod.rs' to 'put it in the submodules, live with the
      code duplication'.
      31d97795
  2. Jan 06, 2017
    • Zack Weinberg's avatar
      Another round of portability fixes: · f1a91da7
      Zack Weinberg authored
       * OpenBSD doesn't have idtype_t or the P_* constants either
       * FreeBSD has different values for the P_* constants
       * Android gives idtype_t a different signedness
       * Disable waitid on NetBSD as it causes a link failure - I think this
         may be a problem with the test environment
      f1a91da7
    • Zack Weinberg's avatar
      Corrections based on CI failures. · 644929ad
      Zack Weinberg authored
       * idtype_t no longer an enum.
       * Darwin/x86-32 needs the $UNIX2003 thing.
       * Darwin, FreeBSD, and NetBSD all have different values for the new constants.
       * OpenBSD doesn't have this feature at all.  (Hopefully we can get away
         with defining idtype_t anyway.)
      644929ad
    • Zack Weinberg's avatar
      Add waitid and related constants and types. · 9d1e4848
      Zack Weinberg authored
      waitid() is a variation on waitpid() with a marginally more
      convenient way of reporting the status, and a couple of handy
      additional features, such as the ability to peek at an exit
      status without consuming it.  It's in POSIX.1-2008 and should
      be available on all supported Unixes.
      
      Along with it come the type 'idtype_t' and the constants
      WEXITED, WSTOPPED, WCONTINUED, and WNOWAIT.  Theconstants
      were alre dy defined for unix/notbsd platforms.
      
      Patch incomplete: several targets are going to have to add
      definitions of siginfo_t, but I'm not sure which ones yet.
      9d1e4848
  3. Jan 04, 2017
  4. Jan 03, 2017
  5. Jan 02, 2017
  6. Jan 01, 2017
    • bors's avatar
      Auto merge of #483 - japaric:sparc64, r=alexcrichton · 3e895791
      bors authored
      sparc64-linux support
      
      This needs to be "cleaned" up to use modules instead of a bunch of `cfg`s ...
      
      Sadly, sparc64 constants are very different from other architectures so cleaning this will result in a bunch of duplication, I think.
      
      While working on this, I was wondering why the constants are not written like this:
      
      ``` rust
      // linux/mod.rs
      const COMMON: ::c_int = 3;
      
      cfg_if! {
          if #[cfg(target_arch = "sparc64")] {
              const FOO: ::c_int = 1;
          } else if #[cfg(any(target_arch = "mips64", target_arch = "x86_64"))] {
              const FOO: ::c_int = 2;
          } else {
              // unsupported/unknown architecture
          }
      }
      ```
      
      I think this might result in less duplicated code. @alexcrichton Has something like that ^ been attempted before?
      3e895791
    • Jorge Aparicio's avatar
      tidy and last minute fixes · 67615b49
      Jorge Aparicio authored
      67615b49
  7. Dec 31, 2016
  8. Dec 29, 2016
  9. Dec 28, 2016
  10. Dec 27, 2016
  11. Dec 21, 2016
  12. Dec 20, 2016
  13. Dec 18, 2016
  14. Dec 15, 2016
Loading