OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/uClibc-0.9.31-add-sock-cloexec.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. author Vladimir Zapolskiy <vzapolskiy@gmail.com> 2010-06-01 16:02:39 (GMT)
  17. committer Khem Raj <raj.khem@gmail.com> 2010-06-01 19:39:15 (GMT)
  18. commit 83333e9c873e4eca6b2c945f7770b1f5373b0427 (patch)
  19. tree 180a78c4fea20bcfab59fc73c615e44c2ca13bb3
  20. parent b2c4199f0fd53c009858e7ce27f932a4ac92bc60 (diff)
  21. download uClibc-83333e9c873e4eca6b2c945f7770b1f5373b0427.tar.gz
  22. uClibc-83333e9c873e4eca6b2c945f7770b1f5373b0427.tar.bz2
  23. bits/socket.h: add SOCK_CLOEXEC and SOCK_NONBLOCK support
  24. This patch adds support for SOCK_CLOEXEC and SOCK_NONBLOCK socket
  25. descriptor flags, which are introduced since Linux 2.6.27
  26. Signed-off-by: Vladimir Zapolskiy <vzapolskiy@gmail.com>
  27. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  28. Diffstat
  29. -rw-r--r-- libc/sysdeps/linux/common/bits/socket.h 12
  30. 1 files changed, 11 insertions, 1 deletions
  31. diff --git a/libc/sysdeps/linux/common/bits/socket.h b/libc/sysdeps/linux/common/bits/socket.h
  32. index ac5a433..11f6e97 100644
  33. --- a/libc/sysdeps/linux/common/bits/socket.h
  34. +++ b/libc/sysdeps/linux/common/bits/socket.h
  35. @@ -53,10 +53,20 @@ enum __socket_type
  36. SOCK_SEQPACKET = 5, /* Sequenced, reliable, connection-based,
  37. datagrams of fixed maximum length. */
  38. #define SOCK_SEQPACKET SOCK_SEQPACKET
  39. - SOCK_PACKET = 10 /* Linux specific way of getting packets
  40. + SOCK_PACKET = 10, /* Linux specific way of getting packets
  41. at the dev level. For writing rarp and
  42. other similar things on the user level. */
  43. #define SOCK_PACKET SOCK_PACKET
  44. +
  45. + /* Flags to be ORed into the type parameter of socket and socketpair and
  46. + used for the flags parameter of paccept. */
  47. +
  48. + SOCK_CLOEXEC = 02000000, /* Atomically set close-on-exec flag for the
  49. + new descriptor(s). */
  50. +#define SOCK_CLOEXEC SOCK_CLOEXEC
  51. + SOCK_NONBLOCK = 04000 /* Atomically mark descriptor(s) as
  52. + non-blocking. */
  53. +#define SOCK_NONBLOCK SOCK_NONBLOCK
  54. };
  55. /* Protocol families. */