summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorkaashoek <kaashoek>2006-08-12 04:33:50 +0000
committerkaashoek <kaashoek>2006-08-12 04:33:50 +0000
commit1f544842ceb5af73b1f2b13222d72dd4ad7cd08a (patch)
tree49ad1096c0ad43c591c493166ff752a3e7cfd7cd /defs.h
parent0633b9715e106ac97fafcf3a68c06da1f0cf873a (diff)
downloadxv6-labs-1f544842ceb5af73b1f2b13222d72dd4ad7cd08a.tar.gz
xv6-labs-1f544842ceb5af73b1f2b13222d72dd4ad7cd08a.tar.bz2
xv6-labs-1f544842ceb5af73b1f2b13222d72dd4ad7cd08a.zip
fstat
primitive ls
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/defs.h b/defs.h
index 566380d..3674c45 100644
--- a/defs.h
+++ b/defs.h
@@ -85,12 +85,14 @@ int pipe_write(struct pipe *p, char *addr, int n);
int pipe_read(struct pipe *p, char *addr, int n);
// fd.c
+struct stat;
void fd_init(void);
int fd_ualloc(void);
struct fd * fd_alloc(void);
void fd_close(struct fd *);
int fd_read(struct fd *fd, char *addr, int n);
int fd_write(struct fd *fd, char *addr, int n);
+int fd_stat(struct fd *fd, struct stat *);
void fd_incref(struct fd *fd);
// ide.c
@@ -115,6 +117,7 @@ void iunlock(struct inode *ip);
void idecref(struct inode *ip);
void iput(struct inode *ip);
struct inode * namei(char *path, uint *);
+void stati(struct inode *ip, struct stat *st);
int readi(struct inode *ip, char *xdst, uint off, uint n);
int writei(struct inode *ip, char *addr, uint off, uint n);
struct inode *mknod(char *, short, short, short);