]> git.pld-linux.org Git - packages/uClibc.git/commitdiff
- socket open flags
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 19 Jan 2010 22:54:46 +0000 (22:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    uClibc-sockflags.patch -> 1.1

uClibc-sockflags.patch [new file with mode: 0644]

diff --git a/uClibc-sockflags.patch b/uClibc-sockflags.patch
new file mode 100644 (file)
index 0000000..f6a1af5
--- /dev/null
@@ -0,0 +1,24 @@
+--- uClibc-0.9.30.2/libc/sysdeps/linux/common/bits/socket.h~   2010-01-13 22:22:31.000000000 +0100
++++ uClibc-0.9.30.2/libc/sysdeps/linux/common/bits/socket.h    2010-01-19 23:13:33.325749790 +0100
+@@ -53,10 +53,20 @@
+   SOCK_SEQPACKET = 5,         /* Sequenced, reliable, connection-based,
+                                  datagrams of fixed maximum length.  */
+ #define SOCK_SEQPACKET SOCK_SEQPACKET
+-  SOCK_PACKET = 10            /* Linux specific way of getting packets
++  SOCK_PACKET = 10,           /* Linux specific way of getting packets
+                                  at the dev level.  For writing rarp and
+                                  other similar things on the user level. */
+ #define SOCK_PACKET SOCK_PACKET
++
++  /* Flags to be ORed into the type parameter of socket and socketpair and
++     used for the flags parameter of paccept.  */
++
++  SOCK_CLOEXEC = 02000000,    /* Atomically set close-on-exec flag for the
++                                 new descriptor(s).  */
++#define SOCK_CLOEXEC SOCK_CLOEXEC
++  SOCK_NONBLOCK = 04000               /* Atomically mark descriptor(s) as
++                                 non-blocking.  */
++#define SOCK_NONBLOCK SOCK_NONBLOCK
+ };
+ /* Protocol families.  */
This page took 0.118996 seconds and 4 git commands to generate.