projects
/
nestedvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6b824fa
)
more syscall stubs
author
brian
<brian@brianweb.net>
Wed, 4 Aug 2004 11:50:11 +0000
(
04:50
-0700)
committer
brian
<brian@brianweb.net>
Wed, 4 Aug 2004 11:50:11 +0000
(
04:50
-0700)
darcs-hash:
20040804115011
-24bed-
8f1f28bdf2f433d9eba667b3e0971623d8f74bd8
.gz
src/org/ibex/nestedvm/UnixRuntime.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/nestedvm/UnixRuntime.java
b/src/org/ibex/nestedvm/UnixRuntime.java
index
f156603
..
71368d8
100644
(file)
--- a/
src/org/ibex/nestedvm/UnixRuntime.java
+++ b/
src/org/ibex/nestedvm/UnixRuntime.java
@@
-169,7
+169,12
@@
public abstract class UnixRuntime extends Runtime implements Cloneable {
case SYS_select: return sys_select(a,b,c,d,e);
case SYS_access: return sys_access(a,b);
case SYS_realpath: return sys_realpath(a,b);
case SYS_select: return sys_select(a,b,c,d,e);
case SYS_access: return sys_access(a,b);
case SYS_realpath: return sys_realpath(a,b);
-
+ case SYS_chown: return sys_chown(a,b,c);
+ case SYS_lchown: return sys_chown(a,b,c);
+ case SYS_fchown: return sys_fchown(a,b,c);
+ case SYS_chmod: return sys_chmod(a,b,c);
+ case SYS_fchmod: return sys_fchmod(a,b,c);
+
default: return super._syscall(syscall,a,b,c,d,e,f);
}
}
default: return super._syscall(syscall,a,b,c,d,e,f);
}
}
@@
-182,10
+187,26
@@
public abstract class UnixRuntime extends Runtime implements Cloneable {
return parent == null ? 1 : parent.pid;
}
return parent == null ? 1 : parent.pid;
}
+ private int sys_chown(int fileAddr, int uid, int gid) {
+ return 0;
+ }
+ private int sys_lchown(int fileAddr, int uid, int gid) {
+ return 0;
+ }
+ private int sys_fchown(int fd, int uid, int gid) {
+ return 0;
+ }
+ private int sys_chmod(int fileAddr, int uid, int gid) {
+ return 0;
+ }
+ private int sys_fchmod(int fd, int uid, int gid) {
+ return 0;
+ }
+
- private int sys_access(int cstring, int mode) {
+ private int sys_access(int cstring, int mode) throws ErrnoException, ReadFaultException {
// FEATURE: sys_access
// FEATURE: sys_access
- return 0;
+ return gs.stat(this,cstring(cstring)) == null ? -ENOENT : 0;
}
private int sys_realpath(int inAddr, int outAddr) throws FaultException {
}
private int sys_realpath(int inAddr, int outAddr) throws FaultException {