[kaffe] CVS kaffe (guilhem): Adapted l4 port to new interface.

Kaffe CVS cvs-commits at kaffe.org
Fri Nov 25 13:15:24 PST 2005


PatchSet 6971 
Date: 2005/11/25 21:05:48
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Adapted l4 port to new interface.

        * kaffe/kaffevm/systems/drops-l4threads/syscalls.c
        (drops_sockshutdown): New function.

Members: 
	ChangeLog:1.4493->1.4494 
	kaffe/kaffevm/systems/drops-l4threads/syscalls.c:1.1->1.2 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4493 kaffe/ChangeLog:1.4494
--- kaffe/ChangeLog:1.4493	Fri Nov 25 21:01:51 2005
+++ kaffe/ChangeLog	Fri Nov 25 21:05:48 2005
@@ -1,5 +1,10 @@
 2005-11-25  Guilhem Lavaux  <guilhem at kaffe.org>
 
+	* kaffe/kaffevm/systems/drops-l4threads/syscalls.c
+	(drops_sockshutdown): New function.
+
+2005-11-25  Guilhem Lavaux  <guilhem at kaffe.org>
+
 	* include/jsyscall.h
 	(sockShutdown): New syscall to support.
 	(KSOCKSHUTDOWN): New macro.
Index: kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c:1.1 kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c:1.2
--- kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c:1.1	Fri Nov 25 13:41:28 2005
+++ kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c	Fri Nov 25 21:05:55 2005
@@ -287,6 +287,16 @@
   return nReturn;
 }
 
+static int drops_sockshutdown(int fd)
+{
+  int nReturn = shutdown(fd, 2);
+
+  if (nReturn < 0)
+    nReturn = errno;
+
+  return nReturn;
+}
+
 static int drops_gethostbyname(const char *name UNUSED,
                                struct hostent ** out2 UNUSED)
 {
@@ -397,6 +407,7 @@
 	drops_getsockname, 
 	drops_getpeername,
 	drops_sockclose,
+	drops_sockshutdown,
 	drops_gethostbyname,
 	drops_gethostbyaddr,
 	drops_select,	




More information about the kaffe mailing list