aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-09-03 17:56:28 -0500
committerRob Landley <rob@landley.net>2013-09-03 17:56:28 -0500
commit8fdcfdb4479dff7a993a25a63253f0e749fd99fe (patch)
tree99c94cfa5e698ff01b2dcdbb9a45d1f9a0abec21 /lib/lib.h
parentf538f420deffc242742ce2d0661a39fa9a3b5399 (diff)
downloadtoybox-8fdcfdb4479dff7a993a25a63253f0e749fd99fe.tar.gz
Introduce libbuf analogous to toybuf but for use by lib/*.c. Change readfile() semantics to be able to read into an existing buffer, or malloc its own if that's NULL.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 14e14e91..26465ad4 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -135,7 +135,7 @@ ssize_t readall(int fd, void *buf, size_t len);
ssize_t writeall(int fd, void *buf, size_t len);
off_t lskip(int fd, off_t offset);
struct string_list **splitpath(char *path, struct string_list **list);
-char *readfile(char *name);
+char *readfile(char *name, char *buf, off_t len);
void msleep(long miliseconds);
int64_t peek(void *ptr, int size);
void poke(void *ptr, uint64_t val, int size);