From 16a7a80446f7373a627523f58ca01910db3a18ca Mon Sep 17 00:00:00 2001 From: levine Date: Fri, 27 Feb 1998 22:00:10 +0000 Subject: update Linux posix_types.h patch --- ACE-INSTALL.html | 64 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'ACE-INSTALL.html') diff --git a/ACE-INSTALL.html b/ACE-INSTALL.html index babcbf3e457..d39b960783f 100644 --- a/ACE-INSTALL.html +++ b/ACE-INSTALL.html @@ -247,21 +247,21 @@ the platform_linux.GNu. Otherwise, this patch can be applied to the binutils gas source. Then, rebuild and install as.

-//--- ecoff.c.ORIGINAL	Mon May 26 12:32:47 1997
-//+++ ecoff.c	Thu Jan 15 09:21:08 1998
-//@@ -769,7 +769,11 @@
-//    can't be represented (assuming there are strings > 4096 bytes).  */
-//
-// #ifndef PAGE_SIZE
-//-#define PAGE_SIZE 4096		/* size of varray pages */
-//+// Thu Jan 15 09:21:03 CST 1998  David L. Levine  <levine@cs.wustl.edu>
-//+// Raised PAGE_SIZE to 8192 from 4096 to avoid "String too big"
-//+// errors on Linux/Alpha, with -g.  The OS page size is 8192, so this
-//+// should be OK.
-//+#define PAGE_SIZE 8192		/* size of varray pages */
-// #endif
-//
-// #define PAGE_USIZE ((unsigned long) PAGE_SIZE)
+--- ecoff.c.ORIGINAL	Mon May 26 12:32:47 1997
++++ ecoff.c	Thu Jan 15 09:21:08 1998
+@@ -769,7 +769,11 @@
+    can't be represented (assuming there are strings > 4096 bytes).  */
+
+ #ifndef PAGE_SIZE
+-#define PAGE_SIZE 4096		/* size of varray pages */
++// Thu Jan 15 09:21:03 CST 1998  David L. Levine  <levine@cs.wustl.edu>
++// Raised PAGE_SIZE to 8192 from 4096 to avoid "String too big"
++// errors on Linux/Alpha, with -g.  The OS page size is 8192, so this
++// should be OK.
++#define PAGE_SIZE 8192		/* size of varray pages */
+ #endif
+
+ #define PAGE_USIZE ((unsigned long) PAGE_SIZE)
 

In addition, you'll need to patch @@ -269,23 +269,23 @@ In addition, you'll need to patch to avoid compilation errors:

-//--- posix_types.h.ORIGINAL	Wed Nov 12 12:01:56 1997
-//+++ posix_types.h	Wed Jan 14 13:07:47 1998
-//@@ -41,9 +41,13 @@
-// #undef __FDMASK
-// #define	__FDMASK(d)	(1UL << ((d) % __NFDBITS))
-//
-//-typedef struct fd_set {
-//+#include <gnu/types.h>
-//+typedef __fd_set __kernel_fd_set;
-//+#if 0
-//+typedef struct kernel_fd_set {
-// 	unsigned long fds_bits [__FDSET_LONGS];
-// } __kernel_fd_set;
-//+#endif
-//
-// /* Type of a signal handler.  */
-// typedef void (*__kernel_sighandler_t)(int);
+--- posix_types.h.ORIGINAL	Wed Nov 12 12:01:56 1997
++++ posix_types.h	Fri Feb 27 14:13:16 1998
+@@ -41,9 +41,14 @@
+ #undef __FDMASK
+ #define	__FDMASK(d)	(1UL << ((d) % __NFDBITS))
+ 
++#if defined (__KERNEL__)
+ typedef struct fd_set {
+ 	unsigned long fds_bits [__FDSET_LONGS];
+ } __kernel_fd_set;
++#else  /* ! __KERNEL__ */
++#include <gnu/types.h>
++typedef __fd_set __kernel_fd_set;
++#endif /* ! __KERNEL__ */
+ 
+ /* Type of a signal handler.  */
+ typedef void (*__kernel_sighandler_t)(int);
 

Finally, on Alpha only, I removed wrapsyscall from the LinuxThreads -- cgit v1.2.1