Skip to content
Snippets Groups Projects
  1. May 08, 2016
  2. May 06, 2016
  3. May 05, 2016
    • Kamal Marhubi's avatar
      unix: Add PIPE_BUF for bsd and notbsd · ce0dc736
      Kamal Marhubi authored
      This is the maximum size of guaranteed-atomic writes to a pipe.
      ce0dc736
    • bors's avatar
      Auto merge of #278 - lemonrock:syslog, r=alexcrichton · 4fc03fe9
      bors authored
      Adding syslog functions, constants and structs
      
      This commit adds the functions:-
      - syslog
      - openlog
      - closelog
      - setlogmask
      
      It adds LOG_* constants.
      
      It adds the `CODE` struct used by the `#define` definitions `prioritynames` and `facilitynames`.
      
      It does not add:-
      - the function `vsyslog`; this is an extension to POSIX and uses va_list macros;
      - the `#define`s `prioritynames` and `facilitynames`, as usage is not common
      - rust functions mirroring the macros:-
        - LOG_PRI
        - LOG_MAKEPRI
        - LOG_MASK
        - LOG_UPTO
        - LOG_FAC
      * `CODE` is included in case a third-party unsafe C function returns or takes it.
      4fc03fe9
    • Raphael Cohn's avatar
      Added LOG_CRON back for Solaris · 828766fd
      Raphael Cohn authored
      828766fd
    • Raphael Cohn's avatar
      Added support for LOG_NTP, LOG_SECURITY and LOG_CONSOLE to FreeBSD. · 25df1e4c
      Raphael Cohn authored
      Did this by moving these definitions up from DragonFlyBSD.
      25df1e4c
    • Raphael Cohn's avatar
    • Raphael Cohn's avatar
      Moved `LOG_NFEATURES` from notbsd to Linux · 1c6c0ca7
      Raphael Cohn authored
      This is because Android bionic doesn't support `LOG_NFEATURES`.
      1c6c0ca7
    • Raphael Cohn's avatar
      Merge branch 'master' into syslog · 3045cb2e
      Raphael Cohn authored
      3045cb2e
    • Raphael Cohn's avatar
      Substantial changes to better support Solaris and BSD variants. · 7fc09699
      Raphael Cohn authored
      Removed CODE, as its definition and name varies too wildy and I
      have no current code using it to test permutations with.
      
      Moved LOG_NFACILITIES down, as Mac OS X defines this value
      differently.
      
      Added Mac OS X specific LOG_* facilities.
      
      Added FreeBSD / DragonFly BSD specific LOG_* facilities.
      
      Moved LOG_PERROR down, as all platforms bar Solaris define this.
      
      Moved LOG_CRON down, as Solaris defines this with a different value.
      
      Moved LOG_AUTHPRIV and LOG_FTP down, as all platforms bar Solaris
      define these.
      
      Looks like Solaris is suffering from the bit rot of commercial Unix...
      7fc09699
    • bors's avatar
      Auto merge of #277 - lemonrock:strnlen, r=alexcrichton · ac752505
      bors authored
      Added strnlen function to all platforms.
      
      strnlen is used to find the length of a C string that may be
      lacking a terminal NUL character. Whilst it is possible to
      implement the equivalent functionality in rust code, it is
      cleaner, simpler and removes the need for duplication of tricky
      functionality to get right. It also makes it easier to port
      C code snippets to rust. In my case, it's needed for dealing with
      the result of `gethostname`.
      
      Note that strnlen is not part of POSIX or C99, but is present on all major platforms.
      ac752505
  4. May 04, 2016
  5. May 03, 2016
  6. Apr 30, 2016
  7. Apr 29, 2016
  8. Apr 28, 2016
  9. Apr 27, 2016
  10. Apr 26, 2016
  11. Apr 25, 2016
  12. Apr 18, 2016
    • bors's avatar
      Auto merge of #264 - timonvo:armmusleabi, r=alexcrichton · 1e6a354c
      bors authored
      Add support for arm-unknown-linux-musleabi{,hf} targets.
      
      These targets will be similar to the x86_64-unknown-linux-musl
      target, in that they'll use MUSL libc to allow fully static binaries
      to be generated. To remain consistent with the naming of existing
      ARM targets, as well as with the standard naming of MUSL toolchains,
      we'll use `musleabi` and `musleabihf` as the target environment
      names (analogous to `gnueabi` and `gnueabihf`).
      
      Most of these changes just extend the special casing for x86_64 MUSL
      targets to the ARM ones as well.
      1e6a354c
  13. Apr 16, 2016
    • Timon Van Overveldt's avatar
      Add support for arm-unknown-linux-musleabi{,hf} targets. · ad728590
      Timon Van Overveldt authored
      These targets will be similar to the x86_64-unknown-linux-musl
      target, in that they'll use MUSL libc to allow fully static binaries
      to be generated. To remain consistent with the naming of existing
      ARM targets, as well as with the standard naming of MUSL toolchains,
      we'll use `musleabi` and `musleabihf` as the target environment
      names (analogous to `gnueabi` and `gnueabihf`).
      
      Most of these changes just extend the special casing for x86_64 MUSL
      targets to the ARM ones as well.
      ad728590
  14. Apr 15, 2016
  15. Apr 13, 2016
Loading