1. 04 7月, 2016 1 次提交
    • R
      make brace placement in public header struct definitions consistent · befa5866
      Rich Felker 提交于
      placing the opening brace on the same line as the struct keyword/tag
      is the style I prefer and seems to be the prevailing practice in more
      recent additions.
      
      these changes were generated by the command:
      
      find include/ arch/*/bits -name '*.h' \
      -exec sed -i '/^struct [^;{]*$/{N;s/\n/ /;}' {} +
      
      and subsequently checked by hand to ensure that the regex did not pick
      up any false positives.
      befa5866
  2. 13 7月, 2012 1 次提交
    • R
      workaround another sendmsg kernel bug on 64-bit machines · 96107564
      Rich Felker 提交于
      the kernel wrongly expects the cmsg length field to be size_t instead
      of socklen_t. in order to work around the issue, we have to impose a
      length limit and copy to a local buffer. the length limit should be
      more than sufficient for any real-world use; these headers are only
      used for passing file descriptors and permissions between processes
      over unix sockets.
      96107564
  3. 19 9月, 2011 1 次提交
  4. 22 7月, 2011 1 次提交
  5. 08 4月, 2011 1 次提交
    • R
      workaround broken msghdr struct on 64bit linux · 71687907
      Rich Felker 提交于
      POSIX clearly specifies the type of msg_iovlen and msg_controllen, and
      Linux ignores it and makes them both size_t instead. to work around
      this we add padding (instead of just using the wrong types like glibc
      does), but we also need to patch-up the struct before passing it to
      the kernel in case the caller did not zero-fill it.
      
      if i could trust the kernel to just ignore the upper 32 bits, this
      would not be necessary, but i don't think it will ignore them...
      71687907
  6. 15 2月, 2011 5 次提交
  7. 12 2月, 2011 1 次提交