1. 28 6月, 2013 1 次提交
  2. 27 6月, 2013 1 次提交
  3. 26 6月, 2013 3 次提交
    • R
      respect iso c namespace in stdio.h and wchar.h regarding va_list · a3e2f3c2
      Rich Felker 提交于
      despite declaring functions that take arguments of type va_list, these
      headers are not permitted by the c standard to expose the definition
      of va_list, so an alias for the type must be used. the name
      __isoc_va_list was chosen to convey that the purpose of this alternate
      name is for iso c conformance, and to avoid the multitude of names
      which gcc mangles with its hideous "fixincludes" monstrosity, leading
      to serious header breakage if these "fixes" are run.
      a3e2f3c2
    • R
      implement inet_lnaof, inet_netof, and inet_makeaddr · e40f48a4
      Rich Felker 提交于
      also move all legacy inet_* functions into a single file to avoid
      wasting object file and compile time overhead on them.
      
      the added functions are legacy interfaces for working with classful
      ipv4 network addresses. they have no modern usefulness whatsoever, but
      some programs unconditionally use them anyway, and they're tiny.
      e40f48a4
    • R
      add ether_aton[_r] and ether_ntoa[_r] functions · 83966b36
      Rich Felker 提交于
      based on patch by Strake with minor stylistic changes, and combined
      into a single file. this patch remained open for a long time due to
      some question as to whether ether_aton would be better implemented in
      terms of sscanf, and it's time something was committed, so here it is.
      83966b36
  4. 08 6月, 2013 2 次提交
    • R
      add clock id macros for a number of new(ish) Linux-specific clocks · 4191d244
      Rich Felker 提交于
      arguably CLOCK_MONOTONIC should be redirected to CLOCK_BOOTTIME with a
      fallback for old kernels that don't support it, since Linux's
      CLOCK_BOOTTIME semantics seem to match the spirit of the POSIX
      requirements for CLOCK_MONOTONIC better than Linux's version of
      CLOCK_MONOTONIC does. however, this is a change that would require
      further discussion and research, so for now, I'm simply making them
      all available.
      4191d244
    • R
      fix the type of CLOCKS_PER_SEC to match new clock_t type · 01739902
      Rich Felker 提交于
      originally it was right on 32-bit archs and wrong on 64-bit, but after
      recent changes it was wrong everywhere. with this commit, it's now
      right everywhere.
      01739902
  5. 07 6月, 2013 1 次提交
  6. 27 5月, 2013 1 次提交
  7. 18 5月, 2013 2 次提交
    • R
      add FLT_TRUE_MIN, etc. macros from C11 · 22730d65
      Rich Felker 提交于
      there was some question as to how many decimal places to use, since
      one decimal place is always sufficient to identify the smallest
      denormal uniquely. for now, I'm following the example in the C
      standard which is consistent with the other min/max macros we already
      had in place.
      22730d65
    • R
      remove the __STDC_FORMAT_MACROS nonsense from inttypes.h · ec9f5353
      Rich Felker 提交于
      somehow I missed this when removing the corresponding
      __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS nonsense from stdint.h.
      these were all attempts by the C committee to guess what the C++
      committee would want, and the guesses turned out to be wrong.
      ec9f5353
  8. 16 5月, 2013 1 次提交
  9. 07 5月, 2013 1 次提交
    • S
      remove compound literals from math.h to please c++ · 2897bfdd
      Szabolcs Nagy 提交于
      __FLOAT_BITS and __DOUBLE_BITS macros used union compound literals,
      now they are changed into static inline functions. A good C compiler
      generates the same code for both and the later is C++ conformant.
      2897bfdd
  10. 23 4月, 2013 1 次提交
  11. 11 4月, 2013 1 次提交
    • R
      make ifaddrs.h expose sys/socket.h · 4ba3ebdc
      Rich Felker 提交于
      the getifaddrs interface seems to have been invented by glibc, and
      they expose socket.h, so for us not to do so is just gratuitous
      incompatibility with the interface we're mimicing.
      4ba3ebdc
  12. 07 4月, 2013 1 次提交
    • R
      add support for program_invocation[_short]_name · b4ea6385
      Rich Felker 提交于
      this is a bit ugly, and the motivation for supporting it is
      questionable. however the main factors were:
      1. it will be useful to have this for certain internal purposes
      anyway -- things like syslog.
      2. applications can just save argv[0] in main, but it's hard to fix
      non-portable library code that's depending on being able to get the
      invocation name without the main application's help.
      b4ea6385
  13. 06 4月, 2013 3 次提交
  14. 05 4月, 2013 6 次提交
  15. 02 4月, 2013 7 次提交
  16. 01 4月, 2013 1 次提交
  17. 07 3月, 2013 1 次提交
    • R
      fix epoll structure alignment on non-x86_64 archs · 08514d06
      Rich Felker 提交于
      this fix is far from ideal and breaks the rule of not using
      arch-specific #ifdefs, but for now we just need a solution to the
      existing breakage.
      
      the underlying problem is that the kernel folks made a very stupid
      decision to make misalignment of this struct part of the kernel
      API/ABI for x86_64, in order to avoid writing a few extra lines of
      code to handle both 32- and 64-bit userspace on 64-bit kernels. I had
      just added the packed attribute unconditionally thinking it was
      harmless on 32-bit archs, but non-x86 32-bit archs have 8-byte
      alignment on 64-bit types.
      08514d06
  18. 06 3月, 2013 1 次提交
  19. 05 3月, 2013 1 次提交
  20. 26 2月, 2013 2 次提交
  21. 22 2月, 2013 2 次提交