1. 23 2月, 2018 1 次提交
    • S
      sys/{mman,shm}.h: add {MAP,SHM}_HUGE_ macros from linux uapi · abdaba86
      Szabolcs Nagy 提交于
      *_HUGE_SHIFT, *_HUGE_2MB, *_HUGE_1GB are documented in the man page,
      so add all of the *_HUGE_* macros from linux uapi.
      
      if MAP_HUGETLB is set, top bits of the mmap flags encode the page size.
      see the linux commit aafd4562dfee81a40ba21b5ea3cf5e06664bc7f6
      
      if SHM_HUGETLB is set, top bits of the shmget flags encode the page size.
      see the linux commit 4da243ac1cf6aeb30b7c555d56208982d66d6d33
      
      *_HUGE_16GB is defined unsigned to avoid signed left shift ub.
      abdaba86
  2. 23 2月, 2014 1 次提交
  3. 09 1月, 2014 1 次提交
    • R
      fix namespace violation in sys/shm.h · 513136ef
      Rich Felker 提交于
      in fixing this, I've changed the logic from ugly #if/#else blocks
      inside the struct shm_info definition to a fixed struct definition and
      optional macros to rename the elements. this will be helpful if we
      need to move shm_info to a bits header in the future, as it will keep
      the feature test logic out of bits.
      513136ef
  4. 29 6月, 2013 1 次提交
    • R
      add missing type shmatt_t in sys/shm.h · 553d566c
      Rich Felker 提交于
      this type is not really intended to be used; it's just there to allow
      implementations to choose the type for the shm_nattch member of
      struct shmid_sh, presumably since historical implementations disagreed
      on the type. in any case, it needs to be there, so now it is.
      553d566c
  5. 15 12月, 2012 1 次提交
  6. 08 9月, 2012 1 次提交
    • R
      default features: make musl usable without feature test macros · c1a9658b
      Rich Felker 提交于
      the old behavior of exposing nothing except plain ISO C can be
      obtained by defining __STRICT_ANSI__ or using a compiler option (such
      as -std=c99) that predefines it. the new default featureset is POSIX
      with XSI plus _BSD_SOURCE. any explicit feature test macros will
      inhibit the default.
      
      installation docs have also been updated to reflect this change.
      c1a9658b
  7. 11 11月, 2011 1 次提交
  8. 14 4月, 2011 1 次提交
    • R
      numerous fixes to sysv ipc · 07e865cc
      Rich Felker 提交于
      some of these definitions were just plain wrong, others based on
      outdated ancient "non-64" versions of the kernel interface.
      
      as much as possible has now been moved out of bits/*
      
      these changes break abi (the old abi for these functions was wrong),
      but since they were not working anyway it can hardly matter.
      07e865cc
  9. 12 2月, 2011 1 次提交