1 |
vapier 10/09/29 23:52:50 |
2 |
|
3 |
Modified: README.history |
4 |
Added: 6030_all_alpha-fix-SOCK_NONBLOCK.patch |
5 |
6031_all_alpha-glibc-2.12-epoll_create1.patch |
6 |
Removed: 6028_all_alpha-fix-SOCK_NONBLOCK.patch |
7 |
6029_all_alpha-glibc-2.12-epoll_create1.patch |
8 |
Log: |
9 |
rename new alpha patches to make way for more memchr fixes |
10 |
|
11 |
Revision Changes Path |
12 |
1.9 src/patchsets/glibc/2.11.2/README.history |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/2.11.2/README.history?rev=1.9&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/2.11.2/README.history?rev=1.9&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/2.11.2/README.history?r1=1.8&r2=1.9 |
17 |
|
18 |
Index: README.history |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo/src/patchsets/glibc/2.11.2/README.history,v |
21 |
retrieving revision 1.8 |
22 |
retrieving revision 1.9 |
23 |
diff -u -r1.8 -r1.9 |
24 |
--- README.history 29 Sep 2010 23:10:59 -0000 1.8 |
25 |
+++ README.history 29 Sep 2010 23:52:50 -0000 1.9 |
26 |
@@ -2,7 +2,8 @@ |
27 |
+ 0010_all_glibc-locale-output-quote.patch |
28 |
+ 0050_all_glibc-make-3.82-rules.patch |
29 |
+ 1509_all_glibc-2.11-hppa-SOCK_CLOEXEC.patch |
30 |
- + 6029_all_sparc-glibc-2.12-epoll_create1.patch |
31 |
+ R 6028_all_alpha-fix-SOCK_NONBLOCK.patch -> 6030_all_alpha-fix-SOCK_NONBLOCK.patch |
32 |
+ + 6031_all_sparc-glibc-2.12-epoll_create1.patch |
33 |
+ 6531_all_sparc-glibc-2.12-epoll_create1.patch |
34 |
|
35 |
3 26.07.2010 |
36 |
|
37 |
|
38 |
|
39 |
1.1 src/patchsets/glibc/2.11.2/6030_all_alpha-fix-SOCK_NONBLOCK.patch |
40 |
|
41 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/2.11.2/6030_all_alpha-fix-SOCK_NONBLOCK.patch?rev=1.1&view=markup |
42 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/2.11.2/6030_all_alpha-fix-SOCK_NONBLOCK.patch?rev=1.1&content-type=text/plain |
43 |
|
44 |
Index: 6030_all_alpha-fix-SOCK_NONBLOCK.patch |
45 |
=================================================================== |
46 |
2010-02-13 Aurelien Jarno <aurelien@×××××××.net> |
47 |
|
48 |
* sysdeps/unix/sysv/linux/alpha/bits/socket.h: New file based on |
49 |
the generic version, with SOCK_CLOEXEC and SOCK_NONBLOCK |
50 |
matching the kernel value. |
51 |
|
52 |
--- /dev/null |
53 |
+++ ports/sysdeps/unix/sysv/linux/alpha/bits/socket.h |
54 |
@@ -0,0 +1,407 @@ |
55 |
+/* System-specific socket constants and types. Linux version. |
56 |
+ Copyright (C) 1991, 1992, 1994-2001, 2004, 2006, 2007, 2008, 2009 |
57 |
+ Free Software Foundation, Inc. |
58 |
+ This file is part of the GNU C Library. |
59 |
+ |
60 |
+ The GNU C Library is free software; you can redistribute it and/or |
61 |
+ modify it under the terms of the GNU Lesser General Public |
62 |
+ License as published by the Free Software Foundation; either |
63 |
+ version 2.1 of the License, or (at your option) any later version. |
64 |
+ |
65 |
+ The GNU C Library is distributed in the hope that it will be useful, |
66 |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of |
67 |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
68 |
+ Lesser General Public License for more details. |
69 |
+ |
70 |
+ You should have received a copy of the GNU Lesser General Public |
71 |
+ License along with the GNU C Library; if not, write to the Free |
72 |
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
73 |
+ 02111-1307 USA. */ |
74 |
+ |
75 |
+#ifndef __BITS_SOCKET_H |
76 |
+#define __BITS_SOCKET_H |
77 |
+ |
78 |
+#ifndef _SYS_SOCKET_H |
79 |
+# error "Never include <bits/socket.h> directly; use <sys/socket.h> instead." |
80 |
+#endif |
81 |
+ |
82 |
+#define __need_size_t |
83 |
+#include <stddef.h> |
84 |
+ |
85 |
+#include <sys/types.h> |
86 |
+ |
87 |
+/* Type for length arguments in socket calls. */ |
88 |
+#ifndef __socklen_t_defined |
89 |
+typedef __socklen_t socklen_t; |
90 |
+# define __socklen_t_defined |
91 |
+#endif |
92 |
+ |
93 |
+/* Types of sockets. */ |
94 |
+enum __socket_type |
95 |
+{ |
96 |
+ SOCK_STREAM = 1, /* Sequenced, reliable, connection-based |
97 |
+ byte streams. */ |
98 |
+#define SOCK_STREAM SOCK_STREAM |
99 |
+ SOCK_DGRAM = 2, /* Connectionless, unreliable datagrams |
100 |
+ of fixed maximum length. */ |
101 |
+#define SOCK_DGRAM SOCK_DGRAM |
102 |
+ SOCK_RAW = 3, /* Raw protocol interface. */ |
103 |
+#define SOCK_RAW SOCK_RAW |
104 |
+ SOCK_RDM = 4, /* Reliably-delivered messages. */ |
105 |
+#define SOCK_RDM SOCK_RDM |
106 |
+ SOCK_SEQPACKET = 5, /* Sequenced, reliable, connection-based, |
107 |
+ datagrams of fixed maximum length. */ |
108 |
+#define SOCK_SEQPACKET SOCK_SEQPACKET |
109 |
+ SOCK_DCCP = 6, /* Datagram Congestion Control Protocol. */ |
110 |
+#define SOCK_DCCP SOCK_DCCP |
111 |
+ SOCK_PACKET = 10, /* Linux specific way of getting packets |
112 |
+ at the dev level. For writing rarp and |
113 |
+ other similar things on the user level. */ |
114 |
+#define SOCK_PACKET SOCK_PACKET |
115 |
+ |
116 |
+ /* Flags to be ORed into the type parameter of socket and socketpair and |
117 |
+ used for the flags parameter of paccept. */ |
118 |
+ |
119 |
+ SOCK_CLOEXEC = 010000000, /* Atomically set close-on-exec flag for the |
120 |
+ new descriptor(s). */ |
121 |
+#define SOCK_CLOEXEC SOCK_CLOEXEC |
122 |
+#undef SOCK_NONBLOCK |
123 |
+ SOCK_NONBLOCK = 0x40000000 /* Atomically mark descriptor(s) as |
124 |
+ non-blocking. */ |
125 |
+#define SOCK_NONBLOCK SOCK_NONBLOCK |
126 |
+}; |
127 |
+ |
128 |
+/* Protocol families. */ |
129 |
+#define PF_UNSPEC 0 /* Unspecified. */ |
130 |
+#define PF_LOCAL 1 /* Local to host (pipes and file-domain). */ |
131 |
+#define PF_UNIX PF_LOCAL /* POSIX name for PF_LOCAL. */ |
132 |
+#define PF_FILE PF_LOCAL /* Another non-standard name for PF_LOCAL. */ |
133 |
+#define PF_INET 2 /* IP protocol family. */ |
134 |
+#define PF_AX25 3 /* Amateur Radio AX.25. */ |
135 |
+#define PF_IPX 4 /* Novell Internet Protocol. */ |
136 |
+#define PF_APPLETALK 5 /* Appletalk DDP. */ |
137 |
+#define PF_NETROM 6 /* Amateur radio NetROM. */ |
138 |
+#define PF_BRIDGE 7 /* Multiprotocol bridge. */ |
139 |
+#define PF_ATMPVC 8 /* ATM PVCs. */ |
140 |
+#define PF_X25 9 /* Reserved for X.25 project. */ |
141 |
+#define PF_INET6 10 /* IP version 6. */ |
142 |
+#define PF_ROSE 11 /* Amateur Radio X.25 PLP. */ |
143 |
+#define PF_DECnet 12 /* Reserved for DECnet project. */ |
144 |
+#define PF_NETBEUI 13 /* Reserved for 802.2LLC project. */ |
145 |
+#define PF_SECURITY 14 /* Security callback pseudo AF. */ |
146 |
+#define PF_KEY 15 /* PF_KEY key management API. */ |
147 |
+#define PF_NETLINK 16 |
148 |
+#define PF_ROUTE PF_NETLINK /* Alias to emulate 4.4BSD. */ |
149 |
+#define PF_PACKET 17 /* Packet family. */ |
150 |
+#define PF_ASH 18 /* Ash. */ |
151 |
+#define PF_ECONET 19 /* Acorn Econet. */ |
152 |
+#define PF_ATMSVC 20 /* ATM SVCs. */ |
153 |
+#define PF_RDS 21 /* RDS sockets. */ |
154 |
+#define PF_SNA 22 /* Linux SNA Project */ |
155 |
+#define PF_IRDA 23 /* IRDA sockets. */ |
156 |
+#define PF_PPPOX 24 /* PPPoX sockets. */ |
157 |
+#define PF_WANPIPE 25 /* Wanpipe API sockets. */ |
158 |
+#define PF_LLC 26 /* Linux LLC. */ |
159 |
+#define PF_CAN 29 /* Controller Area Network. */ |
160 |
+#define PF_TIPC 30 /* TIPC sockets. */ |
161 |
+#define PF_BLUETOOTH 31 /* Bluetooth sockets. */ |
162 |
+#define PF_IUCV 32 /* IUCV sockets. */ |
163 |
+#define PF_RXRPC 33 /* RxRPC sockets. */ |
164 |
+#define PF_ISDN 34 /* mISDN sockets. */ |
165 |
+#define PF_PHONET 35 /* Phonet sockets. */ |
166 |
+#define PF_IEEE802154 36 /* IEEE 802.15.4 sockets. */ |
167 |
+#define PF_MAX 37 /* For now.. */ |
168 |
+ |
169 |
+/* Address families. */ |
170 |
+#define AF_UNSPEC PF_UNSPEC |
171 |
+#define AF_LOCAL PF_LOCAL |
172 |
+#define AF_UNIX PF_UNIX |
173 |
+#define AF_FILE PF_FILE |
174 |
+#define AF_INET PF_INET |
175 |
+#define AF_AX25 PF_AX25 |
176 |
+#define AF_IPX PF_IPX |
177 |
+#define AF_APPLETALK PF_APPLETALK |
178 |
+#define AF_NETROM PF_NETROM |
179 |
+#define AF_BRIDGE PF_BRIDGE |
180 |
+#define AF_ATMPVC PF_ATMPVC |
181 |
+#define AF_X25 PF_X25 |
182 |
+#define AF_INET6 PF_INET6 |
183 |
+#define AF_ROSE PF_ROSE |
184 |
+#define AF_DECnet PF_DECnet |
185 |
+#define AF_NETBEUI PF_NETBEUI |
186 |
+#define AF_SECURITY PF_SECURITY |
187 |
+#define AF_KEY PF_KEY |
188 |
+#define AF_NETLINK PF_NETLINK |
189 |
+#define AF_ROUTE PF_ROUTE |
190 |
+#define AF_PACKET PF_PACKET |
191 |
+#define AF_ASH PF_ASH |
192 |
+#define AF_ECONET PF_ECONET |
193 |
+#define AF_ATMSVC PF_ATMSVC |
194 |
+#define AF_RDS PF_RDS |
195 |
+#define AF_SNA PF_SNA |
196 |
+#define AF_IRDA PF_IRDA |
197 |
+#define AF_PPPOX PF_PPPOX |
198 |
+#define AF_WANPIPE PF_WANPIPE |
199 |
+#define AF_LLC PF_LLC |
200 |
+#define AF_CAN PF_CAN |
201 |
+#define AF_TIPC PF_TIPC |
202 |
+#define AF_BLUETOOTH PF_BLUETOOTH |
203 |
+#define AF_IUCV PF_IUCV |
204 |
+#define AF_RXRPC PF_RXRPC |
205 |
+#define AF_ISDN PF_ISDN |
206 |
+#define AF_PHONET PF_PHONET |
207 |
+#define AF_IEEE802154 PF_IEEE802154 |
208 |
+#define AF_MAX PF_MAX |
209 |
+ |
210 |
+/* Socket level values. Others are defined in the appropriate headers. |
211 |
+ |
212 |
+ XXX These definitions also should go into the appropriate headers as |
213 |
+ far as they are available. */ |
214 |
+#define SOL_RAW 255 |
215 |
+#define SOL_DECNET 261 |
216 |
+#define SOL_X25 262 |
217 |
+#define SOL_PACKET 263 |
218 |
+#define SOL_ATM 264 /* ATM layer (cell level). */ |
219 |
+#define SOL_AAL 265 /* ATM Adaption Layer (packet level). */ |
220 |
+#define SOL_IRDA 266 |
221 |
+ |
222 |
+/* Maximum queue length specifiable by listen. */ |
223 |
+#define SOMAXCONN 128 |
224 |
+ |
225 |
+/* Get the definition of the macro to define the common sockaddr members. */ |
226 |
+#include <bits/sockaddr.h> |
227 |
+ |
228 |
+/* Structure describing a generic socket address. */ |
229 |
+struct sockaddr |
230 |
+ { |
231 |
+ __SOCKADDR_COMMON (sa_); /* Common data: address family and length. */ |
232 |
+ char sa_data[14]; /* Address data. */ |
233 |
+ }; |
234 |
+ |
235 |
+ |
236 |
+/* Structure large enough to hold any socket address (with the historical |
237 |
+ exception of AF_UNIX). We reserve 128 bytes. */ |
238 |
+#define __ss_aligntype unsigned long int |
239 |
+#define _SS_SIZE 128 |
240 |
+#define _SS_PADSIZE (_SS_SIZE - (2 * sizeof (__ss_aligntype))) |
241 |
+ |
242 |
+struct sockaddr_storage |
243 |
+ { |
244 |
+ __SOCKADDR_COMMON (ss_); /* Address family, etc. */ |
245 |
+ __ss_aligntype __ss_align; /* Force desired alignment. */ |
246 |
+ char __ss_padding[_SS_PADSIZE]; |
247 |
+ }; |
248 |
+ |
249 |
+ |
250 |
+/* Bits in the FLAGS argument to `send', `recv', et al. */ |
251 |
+enum |
252 |
+ { |
253 |
+ MSG_OOB = 0x01, /* Process out-of-band data. */ |
254 |
+#define MSG_OOB MSG_OOB |
255 |
+ MSG_PEEK = 0x02, /* Peek at incoming messages. */ |
256 |
+#define MSG_PEEK MSG_PEEK |
257 |
+ MSG_DONTROUTE = 0x04, /* Don't use local routing. */ |
258 |
+#define MSG_DONTROUTE MSG_DONTROUTE |
259 |
+#ifdef __USE_GNU |
260 |
+ /* DECnet uses a different name. */ |
261 |
+ MSG_TRYHARD = MSG_DONTROUTE, |
262 |
+# define MSG_TRYHARD MSG_DONTROUTE |
263 |
+#endif |
264 |
+ MSG_CTRUNC = 0x08, /* Control data lost before delivery. */ |
265 |
+#define MSG_CTRUNC MSG_CTRUNC |
266 |
+ MSG_PROXY = 0x10, /* Supply or ask second address. */ |
267 |
+#define MSG_PROXY MSG_PROXY |
268 |
+ MSG_TRUNC = 0x20, |
269 |
+#define MSG_TRUNC MSG_TRUNC |
270 |
+ MSG_DONTWAIT = 0x40, /* Nonblocking IO. */ |
271 |
+#define MSG_DONTWAIT MSG_DONTWAIT |
272 |
+ MSG_EOR = 0x80, /* End of record. */ |
273 |
+#define MSG_EOR MSG_EOR |
274 |
+ MSG_WAITALL = 0x100, /* Wait for a full request. */ |
275 |
+#define MSG_WAITALL MSG_WAITALL |
276 |
+ MSG_FIN = 0x200, |
277 |
+#define MSG_FIN MSG_FIN |
278 |
+ MSG_SYN = 0x400, |
279 |
+#define MSG_SYN MSG_SYN |
280 |
+ MSG_CONFIRM = 0x800, /* Confirm path validity. */ |
281 |
+#define MSG_CONFIRM MSG_CONFIRM |
282 |
+ MSG_RST = 0x1000, |
283 |
+#define MSG_RST MSG_RST |
284 |
+ MSG_ERRQUEUE = 0x2000, /* Fetch message from error queue. */ |
285 |
+#define MSG_ERRQUEUE MSG_ERRQUEUE |
286 |
+ MSG_NOSIGNAL = 0x4000, /* Do not generate SIGPIPE. */ |
287 |
+#define MSG_NOSIGNAL MSG_NOSIGNAL |
288 |
+ MSG_MORE = 0x8000, /* Sender will send more. */ |
289 |
+#define MSG_MORE MSG_MORE |
290 |
+ |
291 |
+ MSG_CMSG_CLOEXEC = 0x40000000 /* Set close_on_exit for file |
292 |
+ descriptor received through |
293 |
+ SCM_RIGHTS. */ |
294 |
+#define MSG_CMSG_CLOEXEC MSG_CMSG_CLOEXEC |
295 |
+ }; |
296 |
+ |
297 |
+ |
298 |
+/* Structure describing messages sent by |
299 |
+ `sendmsg' and received by `recvmsg'. */ |
300 |
+struct msghdr |
301 |
+ { |
302 |
+ void *msg_name; /* Address to send to/receive from. */ |
303 |
+ socklen_t msg_namelen; /* Length of address data. */ |
304 |
+ |
305 |
+ struct iovec *msg_iov; /* Vector of data to send/receive into. */ |
306 |
+ size_t msg_iovlen; /* Number of elements in the vector. */ |
307 |
+ |
308 |
+ void *msg_control; /* Ancillary data (eg BSD filedesc passing). */ |
309 |
+ size_t msg_controllen; /* Ancillary data buffer length. |
310 |
+ !! The type should be socklen_t but the |
311 |
+ definition of the kernel is incompatible |
312 |
+ with this. */ |
313 |
+ |
314 |
+ int msg_flags; /* Flags on received message. */ |
315 |
+ }; |
316 |
+ |
317 |
+/* Structure used for storage of ancillary data object information. */ |
318 |
+struct cmsghdr |
319 |
+ { |
320 |
+ size_t cmsg_len; /* Length of data in cmsg_data plus length |
321 |
+ of cmsghdr structure. |
322 |
+ !! The type should be socklen_t but the |
323 |
+ definition of the kernel is incompatible |
324 |
+ with this. */ |
325 |
+ int cmsg_level; /* Originating protocol. */ |
326 |
+ int cmsg_type; /* Protocol specific type. */ |
327 |
+#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L |
328 |
+ __extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */ |
329 |
+#endif |
330 |
+ }; |
331 |
+ |
332 |
+/* Ancillary data object manipulation macros. */ |
333 |
+#if (!defined __STRICT_ANSI__ && __GNUC__ >= 2) || __STDC_VERSION__ >= 199901L |
334 |
+# define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data) |
335 |
+#else |
336 |
+# define CMSG_DATA(cmsg) ((unsigned char *) ((struct cmsghdr *) (cmsg) + 1)) |
337 |
+#endif |
338 |
+#define CMSG_NXTHDR(mhdr, cmsg) __cmsg_nxthdr (mhdr, cmsg) |
339 |
+#define CMSG_FIRSTHDR(mhdr) \ |
340 |
+ ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) \ |
341 |
+ ? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) 0) |
342 |
+#define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) \ |
343 |
+ & (size_t) ~(sizeof (size_t) - 1)) |
344 |
+#define CMSG_SPACE(len) (CMSG_ALIGN (len) \ |
345 |
+ + CMSG_ALIGN (sizeof (struct cmsghdr))) |
346 |
+#define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len)) |
347 |
+ |
348 |
+extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr, |
349 |
+ struct cmsghdr *__cmsg) __THROW; |
350 |
+#ifdef __USE_EXTERN_INLINES |
351 |
+# ifndef _EXTERN_INLINE |
352 |
+# define _EXTERN_INLINE __extern_inline |
353 |
+# endif |
354 |
+_EXTERN_INLINE struct cmsghdr * |
355 |
+__NTH (__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg)) |
356 |
+{ |
357 |
+ if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) |
358 |
+ /* The kernel header does this so there may be a reason. */ |
359 |
+ return 0; |
360 |
+ |
361 |
+ __cmsg = (struct cmsghdr *) ((unsigned char *) __cmsg |
362 |
+ + CMSG_ALIGN (__cmsg->cmsg_len)); |
363 |
+ if ((unsigned char *) (__cmsg + 1) > ((unsigned char *) __mhdr->msg_control |
364 |
+ + __mhdr->msg_controllen) |
365 |
+ || ((unsigned char *) __cmsg + CMSG_ALIGN (__cmsg->cmsg_len) |
366 |
+ > ((unsigned char *) __mhdr->msg_control + __mhdr->msg_controllen))) |
367 |
+ /* No more entries. */ |
368 |
+ return 0; |
369 |
+ return __cmsg; |
370 |
+} |
371 |
+#endif /* Use `extern inline'. */ |
372 |
+ |
373 |
+/* Socket level message types. This must match the definitions in |
374 |
+ <linux/socket.h>. */ |
375 |
+enum |
376 |
+ { |
377 |
+ SCM_RIGHTS = 0x01 /* Transfer file descriptors. */ |
378 |
+#define SCM_RIGHTS SCM_RIGHTS |
379 |
+#ifdef __USE_GNU |
380 |
+ , SCM_CREDENTIALS = 0x02 /* Credentials passing. */ |
381 |
+# define SCM_CREDENTIALS SCM_CREDENTIALS |
382 |
+#endif |
383 |
+ }; |
384 |
+ |
385 |
+#ifdef __USE_GNU |
386 |
+/* User visible structure for SCM_CREDENTIALS message */ |
387 |
+struct ucred |
388 |
+{ |
389 |
+ pid_t pid; /* PID of sending process. */ |
390 |
+ uid_t uid; /* UID of sending process. */ |
391 |
+ gid_t gid; /* GID of sending process. */ |
392 |
+}; |
393 |
+#endif |
394 |
+ |
395 |
+/* Ugly workaround for unclean kernel headers. */ |
396 |
+#if !defined __USE_MISC && !defined __USE_GNU |
397 |
+# ifndef FIOGETOWN |
398 |
+# define __SYS_SOCKET_H_undef_FIOGETOWN |
399 |
+# endif |
400 |
+# ifndef FIOSETOWN |
401 |
+# define __SYS_SOCKET_H_undef_FIOSETOWN |
402 |
+# endif |
403 |
+# ifndef SIOCATMARK |
404 |
+# define __SYS_SOCKET_H_undef_SIOCATMARK |
405 |
+# endif |
406 |
+# ifndef SIOCGPGRP |
407 |
+# define __SYS_SOCKET_H_undef_SIOCGPGRP |
408 |
+# endif |
409 |
+# ifndef SIOCGSTAMP |
410 |
+# define __SYS_SOCKET_H_undef_SIOCGSTAMP |
411 |
+# endif |
412 |
+# ifndef SIOCGSTAMPNS |
413 |
+# define __SYS_SOCKET_H_undef_SIOCGSTAMPNS |
414 |
+# endif |
415 |
+# ifndef SIOCSPGRP |
416 |
+# define __SYS_SOCKET_H_undef_SIOCSPGRP |
417 |
+# endif |
418 |
+#endif |
419 |
+ |
420 |
+/* Get socket manipulation related informations from kernel headers. */ |
421 |
+#include <asm/socket.h> |
422 |
+ |
423 |
+#if !defined __USE_MISC && !defined __USE_GNU |
424 |
+# ifdef __SYS_SOCKET_H_undef_FIOGETOWN |
425 |
+# undef __SYS_SOCKET_H_undef_FIOGETOWN |
426 |
+# undef FIOGETOWN |
427 |
+# endif |
428 |
+# ifdef __SYS_SOCKET_H_undef_FIOSETOWN |
429 |
+# undef __SYS_SOCKET_H_undef_FIOSETOWN |
430 |
+# undef FIOSETOWN |
431 |
+# endif |
432 |
+# ifdef __SYS_SOCKET_H_undef_SIOCATMARK |
433 |
+# undef __SYS_SOCKET_H_undef_SIOCATMARK |
434 |
+# undef SIOCATMARK |
435 |
+# endif |
436 |
+# ifdef __SYS_SOCKET_H_undef_SIOCGPGRP |
437 |
+# undef __SYS_SOCKET_H_undef_SIOCGPGRP |
438 |
+# undef SIOCGPGRP |
439 |
+# endif |
440 |
+# ifdef __SYS_SOCKET_H_undef_SIOCGSTAMP |
441 |
+# undef __SYS_SOCKET_H_undef_SIOCGSTAMP |
442 |
+# undef SIOCGSTAMP |
443 |
+# endif |
444 |
+# ifdef __SYS_SOCKET_H_undef_SIOCGSTAMPNS |
445 |
+# undef __SYS_SOCKET_H_undef_SIOCGSTAMPNS |
446 |
+# undef SIOCGSTAMPNS |
447 |
+# endif |
448 |
+# ifdef __SYS_SOCKET_H_undef_SIOCSPGRP |
449 |
+# undef __SYS_SOCKET_H_undef_SIOCSPGRP |
450 |
+# undef SIOCSPGRP |
451 |
+# endif |
452 |
+#endif |
453 |
+ |
454 |
+/* Structure used to manipulate the SO_LINGER option. */ |
455 |
+struct linger |
456 |
+ { |
457 |
+ int l_onoff; /* Nonzero to linger on close. */ |
458 |
+ int l_linger; /* Time to linger. */ |
459 |
+ }; |
460 |
+ |
461 |
+#endif /* bits/socket.h */ |
462 |
-- |
463 |
1.6.1.3 |
464 |
|
465 |
|
466 |
|
467 |
|
468 |
1.1 src/patchsets/glibc/2.11.2/6031_all_alpha-glibc-2.12-epoll_create1.patch |
469 |
|
470 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/2.11.2/6031_all_alpha-glibc-2.12-epoll_create1.patch?rev=1.1&view=markup |
471 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/2.11.2/6031_all_alpha-glibc-2.12-epoll_create1.patch?rev=1.1&content-type=text/plain |
472 |
|
473 |
Index: 6031_all_alpha-glibc-2.12-epoll_create1.patch |
474 |
=================================================================== |
475 |
https://bugs.gentoo.org/331639 |
476 |
|
477 |
From 3fe89ea4365a2294f56ddba91f3a84086fd15d42 Mon Sep 17 00:00:00 2001 |
478 |
From: Mike Frysinger <vapier@g.o> |
479 |
Date: Tue, 31 Aug 2010 16:06:02 -0400 |
480 |
Subject: [PATCH] linux/alpha: convert from epoll_create2 to epoll_create1 |
481 |
|
482 |
Alpha's epoll.h was missed when epoll_create2 was changed to epoll_create1. |
483 |
|
484 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
485 |
|
486 |
2010-08-31 Mike Frysinger <vapier@g.o> |
487 |
|
488 |
* sysdeps/unix/sysv/linux/alpha/sys/epoll.h (epoll_create2): Delete. |
489 |
(epoll_create1): Add. |
490 |
--- |
491 |
sysdeps/unix/sysv/linux/alpha/sys/epoll.h | 9 +++++---- |
492 |
1 files changed, 5 insertions(+), 4 deletions(-) |
493 |
|
494 |
diff --git a/sysdeps/unix/sysv/linux/alpha/sys/epoll.h b/sysdeps/unix/sysv/linux/alpha/sys/epoll.h |
495 |
index 9f983a5..9177c31 100644 |
496 |
--- ports/sysdeps/unix/sysv/linux/alpha/sys/epoll.h |
497 |
+++ ports/sysdeps/unix/sysv/linux/alpha/sys/epoll.h |
498 |
@@ -31,7 +31,7 @@ typedef __sigset_t sigset_t; |
499 |
#endif |
500 |
|
501 |
|
502 |
-/* Flags to be passed to epoll_create2. */ |
503 |
+/* Flags to be passed to epoll_create1. */ |
504 |
enum |
505 |
{ |
506 |
EPOLL_CLOEXEC = 010000000, |
507 |
@@ -101,8 +101,9 @@ __BEGIN_DECLS |
508 |
returned by epoll_create() should be closed with close(). */ |
509 |
extern int epoll_create (int __size) __THROW; |
510 |
|
511 |
-/* Same as epoll_create but with an additional FLAGS parameter. */ |
512 |
-extern int epoll_create2 (int __size, int __flags) __THROW; |
513 |
+/* Same as epoll_create but with an FLAGS parameter. The unused SIZE |
514 |
+ parameter has been dropped. */ |
515 |
+extern int epoll_create1 (int __flags) __THROW; |
516 |
|
517 |
|
518 |
/* Manipulate an epoll instance "epfd". Returns 0 in case of success, |
519 |
-- |
520 |
1.7.2 |