diff options
author | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2011-04-08 01:57:38 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2011-04-08 02:11:57 -0700 |
commit | 666ae0c9e5355e578c2487b81f48b4b74cc16dda (patch) | |
tree | c8e5ddbb6cd1dfe2c4fe0e5995c57efaf65d4299 /pk/file.h | |
parent | c6fef75003abf36c618b9fff4f64f3bda76af804 (diff) | |
download | pk-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |