[kaffe] CVS kaffe (robilad): use AC_TYPE_SSIZE_T

Kaffe CVS cvs-commits at kaffe.org
Mon Nov 6 16:59:58 PST 2006


PatchSet 7436 
Date: 2006/11/07 00:59:08
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
use AC_TYPE_SSIZE_T

2006-11-06  Dalibor Topic  <robilad at kaffe.org>

        * configure.ac: Use AC_TYPE_SSIZE_T instead of checking for
        ssize_t manually.

        * config/m68k/sunos4/md.h,
        config/sparc/sunos4/md.h,
        kaffe/kaffeh/support.c,
        kaffe/kaffevm/debug.c,
        kaffe/kaffevm/findInJar.c,
        kaffe/kaffevm/jar.c,
        kaffe/kaffevm/kaffe-gc/gc-incremental.c,
        kaffe/kaffevm/systems/beos-native/syscalls.c,
        kaffe/kaffevm/systems/drops-l4threads/syscalls.c,
        kaffe/kaffevm/systems/oskit-pthreads/syscalls.c,
        kaffe/kaffevm/systems/unix-jthreads/jthread.h,
        kaffe/kaffevm/systems/unix-jthreads/syscalls.c,
        kaffe/kaffevm/systems/unix-pthreads/syscalls.c,
        libraries/clib/net/PlainDatagramSocketImpl.c,
        libraries/clib/net/PlainSocketImpl.c,
        libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c:
        Make sure sys/types.h is included for ssize_t.

Members: 
	ChangeLog:1.4936->1.4937 
	configure:1.577->1.578 
	configure.ac:1.255->1.256 
	config/m68k/sunos4/md.h:1.4->1.5 
	config/sparc/sunos4/md.h:1.11->1.12 
	kaffe/kaffeh/support.c:1.54->1.55 
	kaffe/kaffevm/debug.c:1.66->1.67 
	kaffe/kaffevm/findInJar.c:1.73->1.74 
	kaffe/kaffevm/jar.c:1.42->1.43 
	kaffe/kaffevm/kaffe-gc/gc-incremental.c:1.37->1.38 
	kaffe/kaffevm/systems/beos-native/syscalls.c:1.13->1.14 
	kaffe/kaffevm/systems/drops-l4threads/syscalls.c:1.4->1.5 
	kaffe/kaffevm/systems/oskit-pthreads/syscalls.c:1.13->1.14 
	kaffe/kaffevm/systems/unix-jthreads/jthread.h:1.71->1.72 
	kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.22->1.23 
	kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.40->1.41 
	libraries/clib/net/PlainDatagramSocketImpl.c:1.56->1.57 
	libraries/clib/net/PlainSocketImpl.c:1.58->1.59 
	libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c:1.8->1.9 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4936 kaffe/ChangeLog:1.4937
--- kaffe/ChangeLog:1.4936	Mon Nov  6 21:53:25 2006
+++ kaffe/ChangeLog	Tue Nov  7 00:59:08 2006
@@ -1,5 +1,28 @@
 2006-11-06  Dalibor Topic  <robilad at kaffe.org>
 
+        * configure.ac: Use AC_TYPE_SSIZE_T instead of checking for
+	ssize_t manually.
+
+	* config/m68k/sunos4/md.h,
+        config/sparc/sunos4/md.h,
+        kaffe/kaffeh/support.c,
+        kaffe/kaffevm/debug.c,
+        kaffe/kaffevm/findInJar.c,
+        kaffe/kaffevm/jar.c,
+        kaffe/kaffevm/kaffe-gc/gc-incremental.c,
+        kaffe/kaffevm/systems/beos-native/syscalls.c,
+        kaffe/kaffevm/systems/drops-l4threads/syscalls.c,
+        kaffe/kaffevm/systems/oskit-pthreads/syscalls.c,
+        kaffe/kaffevm/systems/unix-jthreads/jthread.h,
+        kaffe/kaffevm/systems/unix-jthreads/syscalls.c,
+        kaffe/kaffevm/systems/unix-pthreads/syscalls.c,
+        libraries/clib/net/PlainDatagramSocketImpl.c,
+        libraries/clib/net/PlainSocketImpl.c,
+        libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c:
+	Make sure sys/types.h is included for ssize_t.
+
+2006-11-06  Dalibor Topic  <robilad at kaffe.org>
+
 	* configure.ac: Use AC_CHECK_HEADERS_ONCE instead of AC_CHECK_HEADERS
 	to speed up configure's function checks where possible.
 
Index: kaffe/configure
diff -u kaffe/configure:1.577 kaffe/configure:1.578
--- kaffe/configure:1.577	Mon Nov  6 21:53:25 2006
+++ kaffe/configure	Tue Nov  7 00:59:09 2006
@@ -31410,8 +31410,6 @@
 
 fi
 
-
-
 { echo "$as_me:$LINENO: checking for ssize_t" >&5
 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
 if test "${ac_cv_type_ssize_t+set}" = set; then
@@ -31491,8 +31489,6 @@
 _ACEOF
 
 fi
-
-
 
 
 
Index: kaffe/configure.ac
diff -u kaffe/configure.ac:1.255 kaffe/configure.ac:1.256
--- kaffe/configure.ac:1.255	Mon Nov  6 21:53:25 2006
+++ kaffe/configure.ac	Tue Nov  7 00:59:09 2006
@@ -1050,11 +1050,7 @@
 fi
 
 AC_TYPE_SIZE_T
-pushdef([AC_DEFINE_SAVED],defn([AC_DEFINE]))
-pushdef([AC_DEFINE],[AC_DEFINE_SAVED([$1],[$2],[Define to $2 if $1 is not defined])])
-AC_CHECK_TYPE(ssize_t, int)
-popdef([AC_DEFINE])
-popdef([AC_DEFINE_SAVED])
+AC_TYPE_SSIZE_T
 
 dnl -------------------------------------------------------------------------
 
Index: kaffe/config/m68k/sunos4/md.h
diff -u kaffe/config/m68k/sunos4/md.h:1.4 kaffe/config/m68k/sunos4/md.h:1.5
--- kaffe/config/m68k/sunos4/md.h:1.4	Fri Dec 12 15:58:54 2003
+++ kaffe/config/m68k/sunos4/md.h	Tue Nov  7 00:59:09 2006
@@ -5,6 +5,9 @@
  * Copyright (c) 1996, 1997
  *	Transvirtual Technologies, Inc.  All rights reserved.
  *
+ * Copyright (c) 2006
+ *      Kaffe.org contributors. See ChangeLog for details.
+ *
  * See the file "license.terms" for information on usage and redistribution 
  * of this file. 
  *
@@ -13,6 +16,12 @@
 
 #ifndef __m68k_sunos4_md_h
 #define __m68k_sunos4_md_h
+
+#include "config.h"
+
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
 
 #include "m68k/common.h"
 #include "m68k/threads.h"
Index: kaffe/config/sparc/sunos4/md.h
diff -u kaffe/config/sparc/sunos4/md.h:1.11 kaffe/config/sparc/sunos4/md.h:1.12
--- kaffe/config/sparc/sunos4/md.h:1.11	Mon Jun 27 12:01:27 2005
+++ kaffe/config/sparc/sunos4/md.h	Tue Nov  7 00:59:09 2006
@@ -12,6 +12,12 @@
 #ifndef __sparc_sunos_md_h
 #define __sparc_sunos_md_h
 
+#include "config.h"
+
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 #include "sparc/common.h"
 #include "sparc/threads.h"
 #if defined(HAVE_SYS_RESOURCE_H)
Index: kaffe/kaffe/kaffeh/support.c
diff -u kaffe/kaffe/kaffeh/support.c:1.54 kaffe/kaffe/kaffeh/support.c:1.55
--- kaffe/kaffe/kaffeh/support.c:1.54	Sun Sep 24 18:25:23 2006
+++ kaffe/kaffe/kaffeh/support.c	Tue Nov  7 00:59:09 2006
@@ -29,6 +29,10 @@
 #include "kaffeh-support.h"
 #include "utf8const.h"
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 #if defined(__WIN32__) || defined (__amigaos__)
 #define	PATHSEP	';'
 #else
Index: kaffe/kaffe/kaffevm/debug.c
diff -u kaffe/kaffe/kaffevm/debug.c:1.66 kaffe/kaffe/kaffevm/debug.c:1.67
--- kaffe/kaffe/kaffevm/debug.c:1.66	Tue Apr 18 13:02:10 2006
+++ kaffe/kaffe/kaffevm/debug.c	Tue Nov  7 00:59:10 2006
@@ -29,6 +29,10 @@
 #include <stdarg.h>
 #endif /* defined(HAVE_STDARG_H) */
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 #include <stdio.h>
 
 #include "lerrno.h"
Index: kaffe/kaffe/kaffevm/findInJar.c
diff -u kaffe/kaffe/kaffevm/findInJar.c:1.73 kaffe/kaffe/kaffevm/findInJar.c:1.74
--- kaffe/kaffe/kaffevm/findInJar.c:1.73	Tue Apr 18 10:06:38 2006
+++ kaffe/kaffe/kaffevm/findInJar.c	Tue Nov  7 00:59:10 2006
@@ -40,6 +40,10 @@
 #include "binreloc.h"
 #endif
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 #ifdef __riscos__
 #include <unixlib/local.h>
 #endif
Index: kaffe/kaffe/kaffevm/jar.c
diff -u kaffe/kaffe/kaffevm/jar.c:1.42 kaffe/kaffe/kaffevm/jar.c:1.43
--- kaffe/kaffe/kaffevm/jar.c:1.42	Sat Sep 30 20:21:52 2006
+++ kaffe/kaffe/kaffevm/jar.c	Tue Nov  7 00:59:10 2006
@@ -24,6 +24,10 @@
 
 #include <zlib.h>
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 /* Undefine this to make jar files mutable during the vm lifetime */
 /* #define STATIC_JAR_FILES */
 
Index: kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c
diff -u kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c:1.37 kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c:1.38
--- kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c:1.37	Mon Sep 25 18:24:21 2006
+++ kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c	Tue Nov  7 00:59:10 2006
@@ -34,6 +34,10 @@
 #include "gc-refs.h"
 #include "jvmpi_kaffe.h"
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 static struct _gcStats {
         uint32  totalmem;
         uint32  totalobj;
Index: kaffe/kaffe/kaffevm/systems/beos-native/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/beos-native/syscalls.c:1.13 kaffe/kaffe/kaffevm/systems/beos-native/syscalls.c:1.14
--- kaffe/kaffe/kaffevm/systems/beos-native/syscalls.c:1.13	Sun Sep 24 18:26:40 2006
+++ kaffe/kaffe/kaffevm/systems/beos-native/syscalls.c	Tue Nov  7 00:59:10 2006
@@ -34,6 +34,10 @@
 #include "jthread.h"
 #include "jsyscall.h"
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 #include <sys/wait.h>
 #include <stdlib.h>
 #include <errno.h>
Index: kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c:1.4 kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c:1.5
--- kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c:1.4	Sun Sep 24 18:27:45 2006
+++ kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c	Tue Nov  7 00:59:10 2006
@@ -21,6 +21,10 @@
 #include "jthread.h"
 #include "jsyscall.h"
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 static int drops_open(const char *path,
                       int f, int m,
                       int *outfd) {
Index: kaffe/kaffe/kaffevm/systems/oskit-pthreads/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/oskit-pthreads/syscalls.c:1.13 kaffe/kaffe/kaffevm/systems/oskit-pthreads/syscalls.c:1.14
--- kaffe/kaffe/kaffevm/systems/oskit-pthreads/syscalls.c:1.13	Sun Sep 24 18:28:49 2006
+++ kaffe/kaffe/kaffevm/systems/oskit-pthreads/syscalls.c	Tue Nov  7 00:59:10 2006
@@ -27,6 +27,10 @@
 #include "jthread.h"
 #include "jsyscall.h"
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 #include <oskit/time.h>
 #include <oskit/com/listener.h>
 #include <oskit/dev/clock.h>
Index: kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.h
diff -u kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.h:1.71 kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.h:1.72
--- kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.h:1.71	Sat Apr 22 18:40:42 2006
+++ kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.h	Tue Nov  7 00:59:10 2006
@@ -41,6 +41,10 @@
 #include "md.h"
 #include "threadData.h"
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 #include <sys/resource.h>
 
 #if defined (HAVE_SYS_POLL_H) || defined(HAVE_POLL_H)
Index: kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.22 kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.23
--- kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.22	Sun Sep 24 18:30:29 2006
+++ kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c	Tue Nov  7 00:59:10 2006
@@ -18,6 +18,10 @@
 #include "jsyscall.h"
 #include "nets.h"
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 /*
  * This file contains thread-safe version of various POSIXy functions.
  * Other functions that use or interact with asynchronous I/O, are in jthread.c.
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.40 kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.41
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.40	Sun Sep 24 18:31:19 2006
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c	Tue Nov  7 00:59:10 2006
@@ -21,6 +21,10 @@
 #include "nets.h"
 #include "lock-impl.h"
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 #if defined(HAVE_SYS_WAIT_H)
 #include <sys/wait.h>
 #endif
Index: kaffe/libraries/clib/net/PlainDatagramSocketImpl.c
diff -u kaffe/libraries/clib/net/PlainDatagramSocketImpl.c:1.56 kaffe/libraries/clib/net/PlainDatagramSocketImpl.c:1.57
--- kaffe/libraries/clib/net/PlainDatagramSocketImpl.c:1.56	Wed Aug 31 02:42:29 2005
+++ kaffe/libraries/clib/net/PlainDatagramSocketImpl.c	Tue Nov  7 00:59:11 2006
@@ -36,6 +36,10 @@
 
 #include "dummyin6.h"
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 /*
  * Supported socket options
  */
Index: kaffe/libraries/clib/net/PlainSocketImpl.c
diff -u kaffe/libraries/clib/net/PlainSocketImpl.c:1.58 kaffe/libraries/clib/net/PlainSocketImpl.c:1.59
--- kaffe/libraries/clib/net/PlainSocketImpl.c:1.58	Sat Aug 19 22:14:10 2006
+++ kaffe/libraries/clib/net/PlainSocketImpl.c	Tue Nov  7 00:59:11 2006
@@ -31,6 +31,10 @@
 
 #include "dummyin6.h"
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 #define IPV4_ADDRESS_SIZE 4
 #define IPV6_ADDRESS_SIZE 16
 
Index: kaffe/libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c
diff -u kaffe/libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c:1.8 kaffe/libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c:1.9
--- kaffe/libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c:1.8	Sun Sep 24 18:32:42 2006
+++ kaffe/libraries/clib/nio/gnu_java_nio_channels_FileChannelImpl.c	Tue Nov  7 00:59:11 2006
@@ -60,6 +60,10 @@
 #include <sys/mman.h>
 #endif /* HAVE_SYS_MMAN_H */
 
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif /* defined(HAVE_SYS_TYPES_H) */
+
 /* These values must be kept in sync with FileChannelImpl.java.  */
 #define FILECHANNELIMPL_READ   1
 #define FILECHANNELIMPL_WRITE  2




More information about the kaffe mailing list