Lines Matching refs:bytes
31 -s Size in bytes per command line
42 long entries, bytes;
47 // If !entry count TT.bytes and TT.entries, stopping at max.
73 // We ought to add sizeof(char *) to TT.bytes to be correct, but we don't
77 if (++TT.bytes >= TT.s && TT.s) return save;
88 TT.bytes += sizeof(char *)+strlen(data)+1;
89 if ((TT.s && TT.bytes >= TT.s) || (TT.n && TT.entries >= TT.n)) return data;
100 int entries, bytes, done = 0, ran_once = 0, status;
105 // with -s. POSIX also says we have to reserve 2048 bytes "to guarantee
109 bytes = sysconf(_SC_ARG_MAX) - environ_bytes() - 2048;
110 if (!TT.s || TT.s > bytes) TT.s = bytes;
122 for (entries = 0, bytes = -1; entries < toys.optc; entries++, bytes++)
123 bytes += strlen(toys.optargs[entries]);
124 if (bytes >= TT.s) error_exit("argument too long");
129 TT.bytes = bytes;
165 TT.bytes = bytes;