Skip to content
Snippets Groups Projects
  1. Aug 20, 2020
  2. Sep 12, 2019
  3. Jun 27, 2019
  4. Mar 27, 2019
  5. Nov 20, 2018
  6. Oct 30, 2018
  7. Apr 10, 2018
    • Mike Hommey's avatar
      Add PTHREAD_*_MUTEX_INITIALIZER_NP for glibc · d9013273
      Mike Hommey authored
      `pthread_mutex_t` varies across architectures, in several ways:
      - endianness alters the ordering of bytes, since the contents of the
        struct are larger than 8-bit.
      - its length varies.
      - the location of the mutex kind (`PTHREAD_MUTEX_RECURSIVE`,
        `PTHREAD_MUTEX_ERRORCHECK` or `PTHREAD_MUTEX_ADAPTIVE_NP`) varies
        between 32-bit and 64-bit: On 32-bit architectures, it is preceded by
        three int/unsigned int, while on 64-bit architectures, it is preceded
        by four of them.
      
      These initializers are only available from <pthread.h> when _GNU_SOURCE
      is defined.
      
      Relax the cfg_if check in ci/style.rs to allow #[cfg(target_endian)]
      tests.
      d9013273
  8. Mar 02, 2016
    • Alex Crichton's avatar
      Add a style checking script to CI · 8a8bc668
      Alex Crichton authored
      It's tough to have PRs bounce or to have a back and forth with contributors
      about minor style quibbles. Sometimes it ends up just being easier to fix style
      after the fact, but let's add some automation to help this!
      
      This commit adds a script to run on CI and locally to verify the style of this
      repository. There's a few stylistic guidelines to ensure that definitions are
      understandable across the jungle of modules. This consistency should help assist
      readability for any future readers!
      8a8bc668
Loading