[kaffe] CVS kaffe (robilad): removed lseek from syscall interface

Kaffe CVS cvs-commits at kaffe.org
Tue Jan 22 06:44:07 PST 2008


PatchSet 7717 
Date: 2008/01/22 14:40:57
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
removed lseek from syscall interface

Members: 
	ChangeLog:1.5218->1.5219 
	include/jsyscall.h:1.33->1.34 
	kaffe/kaffeh/support.c:1.57->1.58 
	kaffe/kaffevm/systems/beos-native/syscalls.c:1.15->1.16 
	kaffe/kaffevm/systems/drops-l4threads/syscalls.c:1.6->1.7 
	kaffe/kaffevm/systems/oskit-pthreads/syscalls.c:1.15->1.16 
	kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.25->1.26 
	kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.43->1.44 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.5218 kaffe/ChangeLog:1.5219
--- kaffe/ChangeLog:1.5218	Mon Jan 21 16:25:41 2008
+++ kaffe/ChangeLog	Tue Jan 22 14:40:57 2008
@@ -1,4 +1,16 @@
-2008-01-21  Dalibor Topic  <topic at quad-damage>
+2008-01-21  Dalibor Topic  <robilad at kaffe.org>
+
+	* include/jsyscall.h,
+	kaffe/kaffeh/support.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/syscalls.c,
+	kaffe/kaffevm/systems/unix-pthreads/syscalls.c:
+	Removed lseek from syscall interface and the threading
+	implementations.
+
+2008-01-21  Dalibor Topic  <robilad at kaffe.org>
 
 	* TODO: Updated.
 	
Index: kaffe/include/jsyscall.h
diff -u kaffe/include/jsyscall.h:1.33 kaffe/include/jsyscall.h:1.34
--- kaffe/include/jsyscall.h:1.33	Mon Jan 21 16:25:42 2008
+++ kaffe/include/jsyscall.h	Tue Jan 22 14:41:00 2008
@@ -55,7 +55,6 @@
 
 	int	(*_open)(const char *, int, int, int *);
 	int	(*_read)(int, void *, size_t, ssize_t *);
-	int	(*_lseek)(int, off_t, int, off_t *);
 	int	(*_close)(int);
 	int	(*_fstat)(int, struct stat *);
 	int	(*_stat)(const char *, struct stat *);
Index: kaffe/kaffe/kaffeh/support.c
diff -u kaffe/kaffe/kaffeh/support.c:1.57 kaffe/kaffe/kaffeh/support.c:1.58
--- kaffe/kaffe/kaffeh/support.c:1.57	Mon Jan 21 01:04:36 2008
+++ kaffe/kaffe/kaffeh/support.c	Tue Jan 22 14:41:00 2008
@@ -71,13 +71,6 @@
 	return (*out == -1) ? errno : 0;
 }
 
-static int
-klseek(int fd, off_t off, int whence, off_t *out)
-{
-	*out = lseek(fd, off, whence);
-	return (*out == -1) ? errno : 0;
-}
-
 /* With Tru64, stat and fstat() are silly macros, convert them to functions.  */
 #if defined(stat)
 static int
@@ -108,7 +101,6 @@
 {
 	binary_open,
         kread,
-        klseek,
         close,
         kfstat,
         kstat,
Index: kaffe/kaffe/kaffevm/systems/beos-native/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/beos-native/syscalls.c:1.15 kaffe/kaffe/kaffevm/systems/beos-native/syscalls.c:1.16
--- kaffe/kaffe/kaffevm/systems/beos-native/syscalls.c:1.15	Wed Jan  2 20:34:02 2008
+++ kaffe/kaffe/kaffevm/systems/beos-native/syscalls.c	Tue Jan 22 14:41:00 2008
@@ -57,13 +57,6 @@
 }
 
 static int
-beos_native_lseek(int f, off_t o, int w, off_t *out)
-{
-	*out = lseek(f, o, w);
-	return (*out < 0) ? errno : 0;
-}
-
-static int
 beos_native_close(int f)
 {
 	return (close(f) < 0) ? errno : 0;
@@ -84,7 +77,6 @@
 SystemCallInterface Kaffe_SystemCallInterface = {
 	beos_native_open,
 	beos_native_read,
-	beos_native_lseek,
 	beos_native_close,
 	beos_native_fstat,
 	beos_native_stat,
Index: kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c:1.6 kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c:1.7
--- kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c:1.6	Wed Jan  2 20:34:02 2008
+++ kaffe/kaffe/kaffevm/systems/drops-l4threads/syscalls.c	Tue Jan 22 14:41:01 2008
@@ -48,18 +48,6 @@
   return nReturn;
 }
 
-static int drops_lseek(int fd, off_t o, int type,
-                       off_t *out) {
-  int nReturn = 0;
-
-  *out = lseek(fd, o, type);
-
-  if (*out == -1)
-    nReturn = errno;
- 
-  return nReturn;
-}
-
 static int drops_close(int fd) {
   int nReturn = 0;
 
@@ -90,7 +78,6 @@
 SystemCallInterface Kaffe_SystemCallInterface = {
 	drops_open,
 	drops_read,
-	drops_lseek,
 	drops_close,
 	drops_fstat,
 	drops_stat,
Index: kaffe/kaffe/kaffevm/systems/oskit-pthreads/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/oskit-pthreads/syscalls.c:1.15 kaffe/kaffe/kaffevm/systems/oskit-pthreads/syscalls.c:1.16
--- kaffe/kaffe/kaffevm/systems/oskit-pthreads/syscalls.c:1.15	Wed Jan  2 20:34:02 2008
+++ kaffe/kaffe/kaffevm/systems/oskit-pthreads/syscalls.c	Tue Jan 22 14:41:01 2008
@@ -54,13 +54,6 @@
 }
 
 static int
-oskit_pthread_lseek(int f, off_t o, int w, off_t *out)
-{
-	*out = lseek(f, o, w);
-	return (*out == -1) ? errno : 0;
-}
-
-static int
 oskit_pthread_close(int f)
 {
 	return (close(f) == -1) ? errno : 0;
@@ -81,7 +74,6 @@
 SystemCallInterface Kaffe_SystemCallInterface = {
 	oskit_pthread_open,
 	oskit_pthread_read,
-	oskit_pthread_lseek,
 	oskit_pthread_close,
 	oskit_pthread_fstat,
 	oskit_pthread_stat,
Index: kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.25 kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.26
--- kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.25	Wed Jan  2 21:05:34 2008
+++ kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c	Tue Jan 22 14:41:01 2008
@@ -39,20 +39,6 @@
 }
 
 static int
-jthreadedLSeek(int fd, off_t offset, int whence, off_t *out)
-{
-	int rc = 0;
-
-	jthread_spinon(0);
-	*out = lseek(fd, offset, whence);
-	if (*out == -1) {
-		rc = errno;
-	}
-	jthread_spinoff(0);
-	return (rc);
-}
-
-static int
 jthreadedFStat(int fd, struct stat *sb)
 {
 	int rc = 0;
@@ -84,7 +70,6 @@
 SystemCallInterface Kaffe_SystemCallInterface = {
         jthreadedOpen,
         jthreadedRead,	
-        jthreadedLSeek,
         jthreadedClose,
         jthreadedFStat,
         jthreadedStat,
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.43 kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.44
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.43	Wed Jan  2 21:05:34 2008
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c	Tue Jan 22 14:41:01 2008
@@ -91,18 +91,6 @@
 }
 
 static int
-jthreadedLSeek(int fd, off_t offset, int whence, off_t *out)
-{
-	int rc = 0;
-
-	*out = lseek(fd, offset, whence);
-	if (*out == -1) {
-		rc = errno;
-	}
-	return (rc);
-}
-
-static int
 jthreadedFStat(int fd, struct stat *sb)
 {
 	int rc = 0;
@@ -143,7 +131,6 @@
 SystemCallInterface Kaffe_SystemCallInterface = {
         jthreadedOpen,
         jthreadedRead,	
-        jthreadedLSeek,
         jthreadedClose,
         jthreadedFStat,
         jthreadedStat,




More information about the kaffe mailing list