Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
macros in each C file, and making generated/globals.h from that. Rename
"toy" to "this" along the way to avoid toy/toys confusion.
|
|
|
|
toys/*.c. Move relevant info into comment at the top of each toys/*.c. Also
convert more of Makefile into a thin wrapper around shell scripts that actually
do the work. (Makefile is only still there for the user interface.)
|
|
|
|
understanding zero-context hunks.
|
|
|
|
|
|
|
|
|
|
default and have [p]error_exit() always return nonzero anyway.
|
|
|
|
|
|
|
|
|
|
|
|
tweaks.
|
|
unused portion of the buffer to 0, which can touch and allocate physical
pages for a large virtual mapping.)
|
|
as a yottabyte suffix. Also, the shift increment needs to be a long constant
on 64-bit platforms for the top three suffixes to mean anything.
|
|
|
|
message when called
from get_optflags().
|
|
|
|
|
|
|
|
|
|
isn't portable (with ppc 4xx as an example of a platform it doesn't work
on). This is why va_copy exists.
|
|
|
|
compiler so much.
|
|
|
|
|
|
|
|
index blocks).
|
|
|
|
|
|
CFG_TOYSH_DEBUG to shut up the spurious "gcc can't tell that this is never
actually used uninitialized because gcc is stupid" warnings.
|
|
|
|
|
|
doesn't work on some devices, and we can't always tell _when_ it failed), so
go to the binary search for now.
|
|
|
|
|
|
|
|
|
|
4 bytes and reduces running time by one half of one percent.
|
|
based handling of a 6-byte header with with two 24-bit integer reads. Use
xmalloc() and xzalloc().
|
|
shouldn't be a problem if we register signal handlers with sigaction(SA_RESTART)
Straighten out count and len (I generally consistently use "count" for the
current progress and "len" for the total, but this time I got them backwards
for some reason and don't want to confuse myself in future.)
|
|
for limit[] to move a test out of a loop. Unroll a single-bit get_bits()
to avoid a function call in the common case on a hot path. And one more
application of the old "two tests in one via typecasting and/or math" trick.
|
|
|