Skip to content
Snippets Groups Projects
  1. Dec 08, 2019
  2. Nov 30, 2019
  3. Nov 29, 2019
  4. Nov 28, 2019
  5. Nov 27, 2019
  6. Nov 25, 2019
  7. Nov 22, 2019
  8. Nov 21, 2019
    • Elichai Turkel's avatar
      66529ed3
    • bors's avatar
      Auto merge of #1588 - oxalica:upgrade-musl, r=gnzlbg · 2d94f3f3
      bors authored
      Upgrade to musl 1.1.24 in CI
      
      Required by #1577
      
      Note that in musl 1.1.24, `struct sched_param` from `sched.h` has changed and some fields became reserved. So [these fields](https://github.com/rust-lang/libc/blob/13d4a5da2eafd82d3ebb2acb729d8b8c9148fb1f/src/unix/linux_like/mod.rs#L97) are outdated. I'm not sure if we should rename them, since they are in public API.
      
      I simply skip `struct sched_param` from the test now.
      
      Here's the diff between musl 1.1.23 and 1.1.24
      ```
      diff --git a/include/sched.h b/include/sched.h
      index 05d40b1e..7e470d3a 100644
      --- a/include/sched.h
      +++ b/include/sched.h
      @@ -18,10 +18,12 @@ extern "C" {
      
       struct sched_param {
              int sched_priority;
      -       int sched_ss_low_priority;
      -       struct timespec sched_ss_repl_period;
      -       struct timespec sched_ss_init_budget;
      -       int sched_ss_max_repl;
      +       int __reserved1;
      +       struct {
      +               time_t __reserved1;
      +               long __reserved2;
      +       } __reserved2[2];
      +       int __reserved3;
       };
      ```
      2d94f3f3
    • bors's avatar
      Auto merge of #1599 - YangKeao:macos, r=gnzlbg · cd47b46a
      bors authored
      
      add pthread_getname_np for mac os
      
      In macos's `pthread.h`
      
      ```c
      /*SPI to set and get pthread name*/
      __API_AVAILABLE(macos(10.6), ios(3.2))
      int	pthread_getname_np(pthread_t,char*,size_t);
      
      __API_AVAILABLE(macos(10.6), ios(3.2))
      int	pthread_setname_np(const char*);
      ```
      
      I believe `pthread_getname_np` is usable in macos after 10.6.
      
      Signed-off-by: default avatarYang Keao <keao.yang@yahoo.com>
      cd47b46a
Loading