Synch with 2.4.4
Andreas Jaeger
aj@suse.de
Sun Apr 29 05:33:00 GMT 2001
I merged some changes from Linux 2.4.4 with glibc. I've committed the
appended patch.
Hans-Peter, kernel-features doesn't contain any information about
cris. Can you look into this, please?
Andreas
2001-04-29 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
Define for Arm, PowerPC and SH if kernel is 2.4.4 or newer.
* sysdeps/unix/sysv/linux/bits/socket.h (PF_WANPIPE): New, from
Linux 2.4.4.
(AF_WANPIPE): Likewise.
(MSG_MORE): New.
* sysdeps/unix/sysv/linux/alpha/bits/socket.h: Add same changes as
for Linux generic version.
* sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
* sysdeps/gnu/netinet/tcp.h (TCP_QUICKACK): New.
============================================================
Index: sysdeps/unix/sysv/linux/kernel-features.h
--- sysdeps/unix/sysv/linux/kernel-features.h 2001/04/25 20:16:46 1.25
+++ sysdeps/unix/sysv/linux/kernel-features.h 2001/04/29 12:29:32
@@ -146,6 +146,15 @@
# define __ASSUME_FCNTL64 1
#endif
+/* Arm got fcntl64 in 2.4.4, PowerPC and SH have it also in 2.4.4 (I
+ don't know when it got introduced). */
+#if __LINUX_KERNEL_VERSION >= 132100
+ && (defined __arm__ || defined __powerpc__ || defined __sh__)
+# define __ASSUME_FCNTL64 1
+#endif
+
/* The getdents64 syscall was introduced in 2.4.0-test7. We test for
2.4.1 for the earliest version we know the syscall is available. */
#if __LINUX_KERNEL_VERSION >= 132097
============================================================
Index: sysdeps/unix/sysv/linux/bits/socket.h
--- sysdeps/unix/sysv/linux/bits/socket.h 2001/01/27 21:25:32 1.44
+++ sysdeps/unix/sysv/linux/bits/socket.h 2001/04/29 12:29:33
@@ -87,6 +87,7 @@
#define PF_SNA 22 /* Linux SNA Project */
#define PF_IRDA 23 /* IRDA sockets. */
#define PF_PPPOX 24 /* PPPoX sockets. */
+#define PF_WANPIPE 25 /* Wanpipe API sockets. */
#define PF_MAX 32 /* For now.. */
/* Address families. */
@@ -117,6 +118,7 @@
#define AF_SNA PF_SNA
#define AF_IRDA PF_IRDA
#define AF_PPPOX PF_PPPOX
+#define AF_WANPIPE PF_WANPIPE
#define AF_MAX PF_MAX
/* Socket level values. Others are defined in the appropriate headers.
@@ -199,8 +201,10 @@
#define MSG_RST MSG_RST
MSG_ERRQUEUE = 0x2000, /* Fetch message from error queue. */
#define MSG_ERRQUEUE MSG_ERRQUEUE
- MSG_NOSIGNAL = 0x4000 /* Do not generate SIGPIPE. */
+ MSG_NOSIGNAL = 0x4000, /* Do not generate SIGPIPE. */
#define MSG_NOSIGNAL MSG_NOSIGNAL
+ MSG_MORE = 0x8000 /* Sender will send more. */
+#define MSG_MORE MSG_MORE
};
============================================================
Index: sysdeps/unix/sysv/linux/alpha/bits/socket.h
--- sysdeps/unix/sysv/linux/alpha/bits/socket.h 2001/01/27 21:23:45 1.1
+++ sysdeps/unix/sysv/linux/alpha/bits/socket.h 2001/04/29 12:29:33
@@ -87,6 +87,7 @@
#define PF_SNA 22 /* Linux SNA Project */
#define PF_IRDA 23 /* IRDA sockets. */
#define PF_PPPOX 24 /* PPPoX sockets. */
+#define PF_WANPIPE 25 /* Wanpipe API sockets. */
#define PF_MAX 32 /* For now.. */
/* Address families. */
@@ -117,6 +118,7 @@
#define AF_SNA PF_SNA
#define AF_IRDA PF_IRDA
#define AF_PPPOX PF_PPPOX
+#define AF_WANPIPE PF_WANPIPE
#define AF_MAX PF_MAX
/* Socket level values. Others are defined in the appropriate headers.
@@ -199,8 +201,10 @@
#define MSG_RST MSG_RST
MSG_ERRQUEUE = 0x2000, /* Fetch message from error queue. */
#define MSG_ERRQUEUE MSG_ERRQUEUE
- MSG_NOSIGNAL = 0x4000 /* Do not generate SIGPIPE. */
+ MSG_NOSIGNAL = 0x4000, /* Do not generate SIGPIPE. */
#define MSG_NOSIGNAL MSG_NOSIGNAL
+ MSG_MORE = 0x8000 /* Sender will send more. */
+#define MSG_MORE MSG_MORE
};
============================================================
Index: sysdeps/unix/sysv/linux/ia64/bits/socket.h
--- sysdeps/unix/sysv/linux/ia64/bits/socket.h 2001/01/27 21:23:56 1.1
+++ sysdeps/unix/sysv/linux/ia64/bits/socket.h 2001/04/29 12:29:33
@@ -87,6 +87,7 @@
#define PF_SNA 22 /* Linux SNA Project */
#define PF_IRDA 23 /* IRDA sockets. */
#define PF_PPPOX 24 /* PPPoX sockets. */
+#define PF_WANPIPE 25 /* Wanpipe API sockets. */
#define PF_MAX 32 /* For now.. */
/* Address families. */
@@ -117,6 +118,7 @@
#define AF_SNA PF_SNA
#define AF_IRDA PF_IRDA
#define AF_PPPOX PF_PPPOX
+#define AF_WANPIPE PF_WANPIPE
#define AF_MAX PF_MAX
/* Socket level values. Others are defined in the appropriate headers.
@@ -199,8 +201,10 @@
#define MSG_RST MSG_RST
MSG_ERRQUEUE = 0x2000, /* Fetch message from error queue. */
#define MSG_ERRQUEUE MSG_ERRQUEUE
- MSG_NOSIGNAL = 0x4000 /* Do not generate SIGPIPE. */
+ MSG_NOSIGNAL = 0x4000, /* Do not generate SIGPIPE. */
#define MSG_NOSIGNAL MSG_NOSIGNAL
+ MSG_MORE = 0x8000 /* Sender will send more. */
+#define MSG_MORE MSG_MORE
};
============================================================
Index: sysdeps/unix/sysv/linux/mips/bits/socket.h
--- sysdeps/unix/sysv/linux/mips/bits/socket.h 2001/01/27 21:25:38 1.18
+++ sysdeps/unix/sysv/linux/mips/bits/socket.h 2001/04/29 12:29:33
@@ -87,6 +87,7 @@
#define PF_SNA 22 /* Linux SNA Project */
#define PF_IRDA 23 /* IRDA sockets. */
#define PF_PPPOX 24 /* PPPoX sockets. */
+#define PF_WANPIPE 25 /* Wanpipe API sockets. */
#define PF_MAX 32 /* For now.. */
/* Address families. */
@@ -117,6 +118,7 @@
#define AF_SNA PF_SNA
#define AF_IRDA PF_IRDA
#define AF_PPPOX PF_PPPOX
+#define AF_WANPIPE PF_WANPIPE
#define AF_MAX PF_MAX
/* Socket level values. Others are defined in the appropriate headers.
@@ -199,8 +201,10 @@
#define MSG_RST MSG_RST
MSG_ERRQUEUE = 0x2000, /* Fetch message from error queue. */
#define MSG_ERRQUEUE MSG_ERRQUEUE
- MSG_NOSIGNAL = 0x4000 /* Do not generate SIGPIPE. */
+ MSG_NOSIGNAL = 0x4000, /* Do not generate SIGPIPE. */
#define MSG_NOSIGNAL MSG_NOSIGNAL
+ MSG_MORE = 0x8000 /* Sender will send more. */
+#define MSG_MORE MSG_MORE
};
============================================================
Index: sysdeps/unix/sysv/linux/sparc/bits/socket.h
--- sysdeps/unix/sysv/linux/sparc/bits/socket.h 2001/04/25 20:46:36 1.1
+++ sysdeps/unix/sysv/linux/sparc/bits/socket.h 2001/04/29 12:29:33
@@ -87,6 +87,7 @@
#define PF_SNA 22 /* Linux SNA Project */
#define PF_IRDA 23 /* IRDA sockets. */
#define PF_PPPOX 24 /* PPPoX sockets. */
+#define PF_WANPIPE 25 /* Wanpipe API sockets. */
#define PF_MAX 32 /* For now.. */
/* Address families. */
@@ -117,6 +118,7 @@
#define AF_SNA PF_SNA
#define AF_IRDA PF_IRDA
#define AF_PPPOX PF_PPPOX
+#define AF_WANPIPE PF_WANPIPE
#define AF_MAX PF_MAX
/* Socket level values. Others are defined in the appropriate headers.
@@ -199,8 +201,10 @@
#define MSG_RST MSG_RST
MSG_ERRQUEUE = 0x2000, /* Fetch message from error queue. */
#define MSG_ERRQUEUE MSG_ERRQUEUE
- MSG_NOSIGNAL = 0x4000 /* Do not generate SIGPIPE. */
+ MSG_NOSIGNAL = 0x4000, /* Do not generate SIGPIPE. */
#define MSG_NOSIGNAL MSG_NOSIGNAL
+ MSG_MORE = 0x8000 /* Sender will send more. */
+#define MSG_MORE MSG_MORE
};
============================================================
Index: sysdeps/gnu/netinet/tcp.h
--- sysdeps/gnu/netinet/tcp.h 2001/02/07 18:43:52 1.8
+++ sysdeps/gnu/netinet/tcp.h 2001/04/29 12:29:33
@@ -48,6 +48,7 @@
#define TCP_DEFER_ACCEPT 9 /* Wake up listener only when data arrive */
#define TCP_WINDOW_CLAMP 10 /* Bound advertised window */
#define TCP_INFO 11 /* Information about this connection. */
+#define TCP_QUICKACK 12 /* Bock/reenable quick ACKs. */
#ifdef __USE_MISC
# include <sys/types.h>
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list