aboutsummaryrefslogtreecommitdiff
path: root/pk/file.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2011-04-08 01:57:38 -0700
committerAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2011-04-08 02:11:57 -0700
commit666ae0c9e5355e578c2487b81f48b4b74cc16dda (patch)
treec8e5ddbb6cd1dfe2c4fe0e5995c57efaf65d4299 /pk/file.h
parentc6fef75003abf36c618b9fff4f64f3bda76af804 (diff)
downloadpk-666ae0c9e5355e578c2487b81f48b4b74cc16dda.zip
pk-666ae0c9e5355e578c2487b81f48b4b74cc16dda.tar.gz
pk-666ae0c9e5355e578c2487b81f48b4b74cc16dda.tar.bz2
[pk,fesvr] pk now loads elfs itself
this allows it to detect 32b binaries
Diffstat (limited to 'pk/file.h')
-rw-r--r--pk/file.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pk/file.h b/pk/file.h
index b98092c..55637a3 100644
--- a/pk/file.h
+++ b/pk/file.h
@@ -15,8 +15,11 @@ extern file_t *stdin, *stdout, *stderr;
file_t* file_get(int fd);
sysret_t file_open(const char* fn, size_t len, int flags, int mode);
+void file_decref(file_t*);
int file_dup(file_t*);
+sysret_t file_pwrite(file_t* f, const char* buf, size_t n, off_t off);
+sysret_t file_pread(file_t* f, char* buf, size_t n, off_t off);
sysret_t file_write(file_t* f, const char* buf, size_t n);
sysret_t file_read(file_t* f, char* buf, size_t n);
sysret_t file_stat(file_t* f, struct stat* s);