1. 04 7月, 2016 12 次提交
  2. 01 7月, 2016 1 次提交
  3. 29 6月, 2016 2 次提交
  4. 10 6月, 2016 7 次提交
    • R
      avoid padding gaps in struct sockaddr_storage · 1e6fc0b6
      Rich Felker 提交于
      compilers are free not to copy, or in some cases to clobber, padding
      bytes in a structure. while it's an aliasing violation, and thus
      undefined behavior, to copy or manipulate other sockaddr types using
      sockaddr_storage, it seems likely that traditional code attempts to do
      so, and the original intent of the sockaddr_storage structure was
      probably to allow such usage.
      
      in the interest of avoiding silent and potentially dangerous breakage,
      ensure that there are no actual padding bytes in sockaddr_storage by
      moving and adjusting the size of the __ss_padding member so that it
      fits exactly.
      
      this change also removes a silent assumption that the alignment of
      long is equal to its size.
      1e6fc0b6
    • S
      update sys/socket.h to linux v4.6 · a0bb50a1
      Szabolcs Nagy 提交于
      kernel connection multiplexor macros AF_KCM, PF_KCM, SOL_KCM were
      added in linux commit ab7ac4eb9832e32a09f4e8042705484d2fb0aad3
      
      MSG_BATCH sendmsg flag for performance optimization was added
      in linux commit f092276d85b82504e8a07498f4e9e0c51f06745c
      
      SOL_* macros are now synced with linux socket.h which is not a uapi
      header and glibc did not have the macros either, but that has changed
      http://sourceware.org/ml/libc-alpha/2016-05/msg00322.html
      a0bb50a1
    • S
      add new tcp_info fields from linux v4.6 · 34987775
      Szabolcs Nagy 提交于
      new fields and associated linux commit:
      tcpi_notsent_bytes, tcpi_min_rtt cd9b266095f422267bddbec88f9098b48ea548fc
      tcpi_data_segs_in, tcpi_data_segs_out a44d6eacdaf56f74fad699af7f4925a5f5ac0e7f
      34987775
    • S
      add CLONE_NEWCGROUP clone flag, new in linux v4.6 · 1d561c2f
      Szabolcs Nagy 提交于
      flag for new cgroup namespace, added in linux commit
      5e2bec7c2248ae27c5b16cd97215ae05c1d39179
      1d561c2f
    • S
      update siginfo struct for linux v4.6 · 19f87240
      Szabolcs Nagy 提交于
      x86 protection key faults are reported in the si_pkey field,
      added in linux commit cd0ea35ff5511cde299a61c21a95889b4a71464e
      19f87240
    • S
      add ETH_P_MACSEC netinet/if_ether.h, new in linux v4.6 · 7ea37c7a
      Szabolcs Nagy 提交于
      ethertype for macsec added in linux commit
      dece8d2b78d19df7fe5e4e965f1f0d1a3e188d1b
      7ea37c7a
    • S
      add SO_CNX_ADVICE to sys/socket.h, new in linux v4.6 · f6f4aa5d
      Szabolcs Nagy 提交于
      new socket option so application can give advice about routing
      path quality of connected udp sockets, added in linux commit
      a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314
      f6f4aa5d
  5. 23 5月, 2016 1 次提交
    • R
      fix undefined pointer arithmetic in CMSG_NXTHDR macro · 81fb75a1
      Rich Felker 提交于
      previously, the only way the stopping condition could be met with
      correct lengths in the headers invoked undefined behavior, adding
      sizeof(struct cmsghdr) beyond the end of the cmsg buffer.
      
      instead, compute and compare sizes rather than pointers.
      81fb75a1
  6. 19 3月, 2016 5 次提交
    • S
      add MADV_FREE madvise command from linux v4.5 · d578c74e
      Szabolcs Nagy 提交于
      allows the os to free the marked pages lazily on memory pressure.
      expected to increase malloc performance.
      new in linux commit 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9
      d578c74e
    • S
      add EPOLLEXCLUSIVE epoll flag from linux v4.5 · b10ca0f5
      Szabolcs Nagy 提交于
      new flag for exclusive wakeup mode when an event source fd is attached
      to multiple epoll fds but they should not all receive the events.
      new in linux commit df0108c5da561c66c333bb46bfe3c1fc65905898
      b10ca0f5
    • S
      add SO_ATTACH_REUSEPORT_[CE]BPF socket options from linux v4.5 · c1aabc6c
      Szabolcs Nagy 提交于
      new socket options for setting classic or extended BPF program
      for sockets in a SO_REUSEPORT group.  added in linux commit
      538950a1b7527a0a52ccd9337e3fcd304f027f13
      c1aabc6c
    • S
      add IPV6_HDRINCL socket option from linux v4.5 · 8ffa0375
      Szabolcs Nagy 提交于
      new in linux commit 715f504b118998c41a2079a17e16bf5a8a114885
      same as IP_HDRINCL but for SOL_IPV6 sockets.
      8ffa0375
    • S
      deduplicate bits/mman.h · e9f1c798
      Szabolcs Nagy 提交于
      currently five targets use the same mman.h constants and the rest
      share most constants too, so move them to sys/mman.h before the
      bits/mman.h include where the differences can be corrected by
      redefinition of the macros.
      
      this fixes two minor bugs: POSIX_MADV_DONTNEED was wrong on most
      targets (it should be the same as MADV_DONTNEED), and sh defined
      the x86-only MAP_32BIT mmap flag.
      e9f1c798
  7. 03 3月, 2016 1 次提交
    • N
      add sched_getcpu · 98d33573
      Nathan Zadoks 提交于
      This is a GNU extension, but a fairly minor one, for a system call that
      otherwise has no libc wrapper.
      98d33573
  8. 12 2月, 2016 2 次提交
  9. 27 1月, 2016 7 次提交
  10. 25 1月, 2016 2 次提交
    • S
      add new IP_BIND_ADDRESS_NO_PORT and IPPROTO_MPLS to netinet/in.h · 2c9acc51
      Szabolcs Nagy 提交于
      IP_BIND_ADDRESS_NO_PORT is a SOL_IP socket option to delay src port
      allocation until connect in case src ip is set with bind(port=0).
      new in linux v4.2, commit 90c337da1524863838658078ec34241f45d8394d
      
      IPPROTO_MPLS protocol number for mpls over ip.
      new in linux v4.2, commit 730fc4371333636a00fed32c587fc1e85c5367e2
      2c9acc51
    • S
      update netinet/tcp.h for linux v4.2 · 4da2d965
      Szabolcs Nagy 提交于
      TCP_CC_INFO is a new socket option to get congestion control info without
      netlink (union tcp_cc_info is in linux/inet_diag.h kernel header).
      linux commit 6e9250f59ef9efb932c84850cd221f22c2a03c4a
      
      TCP_SAVE_SYN, TCP_SAVED_SYN socket options are for saving and getting the
      SYN headers of passive connections in a server application.
      linux commit cd8ae85299d54155702a56811b2e035e63064d3d
      
      Add new tcpi_* fields to struct tcp_info implementing RFC4898 counters.
      linux commit 2efd055c53c06b7e89c167c98069bab9afce7e59
      4da2d965