aboutsummaryrefslogtreecommitdiff
path: root/toys.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 /toys.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 'toys.h')
-rw-r--r--toys.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys.h b/toys.h
index c810123a..b7acc270 100644
--- a/toys.h
+++ b/toys.h
@@ -113,9 +113,9 @@ extern struct toy_context {
jmp_buf *rebound; // longjmp here instead of exit when do_rebound set
} toys;
-// One big temporary buffer, for use by commands (not library functions).
+// Two big temporary buffers: one for use by commands, one for library functions
-extern char toybuf[4096];
+extern char toybuf[4096], libbuf[4096];
extern char **environ;