diff options
author | Rob Landley <rob@landley.net> | 2013-09-03 17:56:28 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-09-03 17:56:28 -0500 |
commit | 8fdcfdb4479dff7a993a25a63253f0e749fd99fe (patch) | |
tree | 99c94cfa5e698ff01b2dcdbb9a45d1f9a0abec21 /toys.h | |
parent | f538f420deffc242742ce2d0661a39fa9a3b5399 (diff) | |
download | toybox-8fdcfdb4479dff7a993a25a63253f0e749fd99fe.tar.gz toybox-8fdcfdb4479dff7a993a25a63253f0e749fd99fe.tar.bz2 toybox-8fdcfdb4479dff7a993a25a63253f0e749fd99fe.zip |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |