1. 16 9月, 2013 2 次提交
    • S
      sys/resource.h: add PRIO_MIN and PRIO_MAX for getpriority and setpriority · 90710df5
      Szabolcs Nagy 提交于
      These constants are not specified by POSIX, but they are in the reserved
      namespace, glibc and bsd systems seem to provide them as well.
      (Note that POSIX specifies -NZERO and NZERO-1 to be the limits, but
      PRIO_MAX equals NZERO)
      90710df5
    • S
      update include/elf.h following glibc changes · 268375c1
      Szabolcs Nagy 提交于
      the changes were verified using various sources:
      linux: include/uapi/linux/elf.h
      binutils: include/elf/common.h
      glibc: elf/elf.h
      sysv gabi: http://www.sco.com/developers/gabi/latest/contents.html
      sun linker docs: http://docs.oracle.com/cd/E18752_01/pdf/817-1984.pdf
      and platform specific docs
      
      - fixed:
      EF_MIPS_* E_MIPS_* e_flags: fixed accoding to glibc and binutils
      
      - added:
      ELFOSABI_GNU for EI_OSABI entry: glibc, binutils and sysv gabi
      EM_* e_machine values: updated according to linux and glibc
      PN_XNUM e_phnum value: from glibc and linux, see oracle docs
      NT_* note types: updated according to linux and glibc
      DF_1_* flags for DT_FLAGS_1 entry: following glibc and oracle docs
      AT_HWCAP2 auxv entry for more hwcap bits accoding to linux and glibc
      R_386_SIZE32 relocation according to glibc and binutils
      EF_ARM_ABI_FLOAT_* e_flags: added following glibc and binutils
      R_AARCH64_* relocs: added following glibc and aarch64 elf specs
      R_ARM_* relocs: according to glibc, binutils and arm elf specs
      R_X86_64_* relocs: added missing relocs following glibc
      
      - removed:
      HWCAP_SPARC_* flags were moved to arch specific header in glibc
      R_ARM_SWI24 reloc is marked as obsolete in glibc, not present in binutils
        not specified in arm elf spec, R_ARM_TLS_DESC reused its number
        see http://www.codesourcery.com/publications/RFC-TLSDESC-ARM.txt
      
      - glibc changes not pulled in:
      ELFOSABI_ARM_AEABI (bare-metal system, binutils and glibc disagrees about the name)
      R_68K_* relocs for unsupported platform
      R_SPARC_* ditto
      EF_SH* ditto (e_flags)
      EF_S390* ditto (e_flags)
      R_390* ditto
      R_MN10300* ditto
      R_TILE* ditto
      268375c1
  2. 15 9月, 2013 5 次提交
  3. 01 9月, 2013 1 次提交
  4. 31 8月, 2013 2 次提交
  5. 28 8月, 2013 1 次提交
    • R
      stdbool.h should define __bool_true_false_are_defined even for C++ · 38e6acbf
      Rich Felker 提交于
      while the incorporation of this requirement from C99 into C++11 was
      likely an accident, some software expects it to be defined, and it
      doesn't hurt. if the requirement is removed, then presumably
      __bool_true_false_are_defined would just be in the implementation
      namespace and thus defining it would still be legal.
      38e6acbf
  6. 22 8月, 2013 1 次提交
  7. 15 8月, 2013 1 次提交
    • R
      de-duplicate dn_expand, fix return value and signature, clean up · fcc522c9
      Rich Felker 提交于
      the duplicate code in dn_expand and its incorrect return values are
      both results of the history of the code: the version in __dns.c was
      originally written with no awareness of the legacy resolver API, and
      was later copy-and-paste duplicated to provide the legacy API.
      
      this commit is the first of a series that will restructure the
      internal dns code to share as much code as possible with the legacy
      resolver API functions.
      
      I have also removed the loop detection logic, since the output buffer
      length limit naturally prevents loops. in order to avoid long runtime
      when encountering a loop if the caller provided a ridiculously long
      buffer, the caller-provided length is clamped at the maximum dns name
      length.
      fcc522c9
  8. 14 8月, 2013 2 次提交
  9. 11 8月, 2013 3 次提交
    • R
      fix definitions of WIFSTOPPED and WIFSIGNALED to support up to signal 127 · 41c63282
      Rich Felker 提交于
      mips has signal numbers up to 127 (formerly, up to 128, but the last
      one never worked right and caused kernel panic when used), so 127 in
      the "signal number" field of the wait status is insufficient for
      determining that the process was stopped. in addition, a nonzero value
      in the upper bits must be present, indicating the signal number which
      caused the process to be stopped.
      
      details on this issue can be seen in the email with message id
      CAAG0J9-d4BfEhbQovFqUAJ3QoOuXScrpsY1y95PrEPxA5DWedQ@mail.gmail.com on
      the linux-mips mailing list, archived at:
      http://www.linux-mips.org/archives/linux-mips/2013-06/msg00552.html
      and in the associated thread about fixing the mips kernel bug.
      
      commit 4a96b948687166da26a6c327e6c6733ad2336c5c fixed the
      corresponding issue in uClibc, but introduced a multiple-evaluation
      issue for the WIFSTOPPED macro.
      
      for the most part, none of these issues affected pure musl systems,
      since musl has up until now (incorrectly) defined SIGRTMAX as 64 on
      all archs, even mips. however, interpreting status of non-musl
      programs on mips may have caused problems. with this change, the full
      range of signal numbers can be made available on mips.
      41c63282
    • R
      7406fdf5
    • R
      add cpu affinity interfaces · eeb0328f
      Rich Felker 提交于
      this first commit just includes the CPU_* and sched_* interfaces, not
      the pthread_* interfaces, which may be added later. simple
      sanity-check testing has been done for the basic interfaces, but most
      of the macros have not yet been tested.
      eeb0328f
  10. 09 8月, 2013 2 次提交
  11. 03 8月, 2013 4 次提交
  12. 02 8月, 2013 1 次提交
  13. 31 7月, 2013 2 次提交
  14. 28 7月, 2013 1 次提交
  15. 27 7月, 2013 3 次提交
  16. 25 7月, 2013 8 次提交
  17. 24 7月, 2013 1 次提交
    • R
      change jmp_buf to share an underlying type and struct tag with sigjmp_buf · 9693501c
      Rich Felker 提交于
      this is necessary to meet the C++ ABI target. alternatives were
      considered to avoid the size increase for non-sig jmp_buf objects, but
      they seemed to have worse properties. moreover, the relative size
      increase is only extreme on x86[_64]; one way of interpreting this is
      that, if the size increase from this patch makes jmp_buf use too much
      memory, then the program was already using too much memory when built
      for non-x86 archs.
      9693501c