[Wisp-cvs] wisp/modules linux.wrti,1.20,1.21
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2002-09-18 21:01:22
|
Update of /cvsroot/wisp/wisp/modules In directory usw-pr-cvs1:/tmp/cvs-serv27827/modules Modified Files: linux.wrti Log Message: Converted sys.c to Worth code. Index: linux.wrti =================================================================== RCS file: /cvsroot/wisp/wisp/modules/linux.wrti,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- linux.wrti 18 Sep 2002 20:59:59 -0000 1.20 +++ linux.wrti 18 Sep 2002 21:00:49 -0000 1.21 @@ -91,7 +91,6 @@ (macro sys.setsid (conform) 66 \sys (believe %eax)) (macro sys.setreuid (conform %ebx %ecx) 70 \sys (believe %eax)) (macro sys.setregid (conform %ebx %ecx) 71 \sys (believe %eax)) - (macro sys.select (conform %eax %ebx %ecx %esi %edi) 82 \sys (believe %eax)) (macro sys.symlink (conform %ebx %ecx) 83 \sys (believe %eax)) (macro sys.swapon (conform %ebx %ecx) 87 \sys (believe %eax)) (macro sys.truncate (conform %ebx %ecx) 92 \sys (believe %eax)) @@ -105,6 +104,14 @@ (macro sys.fsync (conform %ebx) 118 \sys (believe %eax)) (macro sys.getpgid (conform %ebx) 132 \sys (believe %eax)) (macro sys.fchdir (conform %ebx) 133 \sys (believe %eax)) + (macro sys.getdents (conform %ebx %ecx %edx) 141 \sys (believe %eax)) + (macro sys.select + (->reg 0 %edi) + (->reg 1 %esi) + (->reg 2 %edx) + (->reg 3 %ecx) + (->reg 4 %ebx) + 142 \sys (believe %eax)) (macro sys.flock (conform %ebx %ecx) 143 \sys (believe %eax)) (macro sys.getsid (conform %ebx) 147 \sys (believe %eax)) (macro sys.fdatasync (conform %ebx) 148 \sys (believe %eax)) @@ -337,6 +344,22 @@ swap #x1F and swap (register %eax %ebx %ecx %edx) ,(bt (tetra ,1 ,3) ,2) ,(mov ,0 %?c) nip nip nip) + + ;;;; <linux/dirent.h> + (macro dirent.ino@ 0 + tetra@) + (macro dirent.off@ 4 + tetra@) + (macro dirent.reclen@ 8 + wyde@) + (macro dirent.name 10 +) + (macro sizeof.struct-dirent 268) + (macro sizeof.struct-dirent.aligned 268) + + ;;;; <sys/time.h> + (macro sizeof.struct-timeval 8) + (macro sizeof.struct-timeval.aligned 8) + (macro timeval.sec@ 0 + tetra@) + (macro timeval.usec@ 4 + tetra@) + (macro timeval.sec! 0 + tetra!) + (macro timeval.usec! 4 + tetra!) ;;;; <linux/socket.h> (macro AF_UNSPEC 0) (macro PF_UNSPEC 0) |