Home | History | Annotate | Download | only in posix

Lines Matching refs:TT

54 // If out==NULL count TT.bytes and TT.entries, stopping at max.
64 if (TT.delim) {
76 if (TT.max_entries && TT.entries >= TT.max_entries)
83 if (++TT.bytes >= TT.max_bytes && TT.max_bytes) return save;
87 if (TT.eofstr) {
89 if (len == strlen(TT.eofstr) && !strncmp(save, TT.eofstr, len))
92 if (entry) entry[TT.entries] = save;
93 ++TT.entries;
98 TT.bytes += strlen(data)+1;
99 if (TT.max_bytes && TT.bytes >= TT.max_bytes) return data;
100 if (TT.max_entries && TT.entries >= TT.max_entries)
102 if (entry) entry[TT.entries] = data;
103 TT.entries++;
116 if (!(toys.optflags & FLAG_0)) TT.delim = '\n';
130 TT.entries = 0;
131 TT.bytes = bytes;
139 l = getdelim(&data, (size_t *)&l, TT.delim, stdin);
161 if (data && !TT.entries) error_exit("argument too long");
162 out = xzalloc((entries+TT.entries+1)*sizeof(char *));
166 TT.entries = 0;
167 TT.bytes = bytes;