unsigned int val;
size_t outidx = 0;
- while (1)
+ while (true)
{
if (inlen == 0)
{
FTS *fts = xfts_open (files, bit_flags, NULL);
- while (1)
+ while (true)
{
FTSENT *ent;
FTS *fts = xfts_open (files, bit_flags, NULL);
- while (1)
+ while (true)
{
FTSENT *ent;
FTS *fts = xfts_open (files, bit_flags | stat_flags, NULL);
- while (1)
+ while (true)
{
FTSENT *ent;
if (bytes_wanted < hold_count)
bytes_wanted = hold_count;
- while (1)
+ while (true)
{
b = get_new_buffer (bytes_wanted);
bytes_avail = b->bytes_alloc; /* Size of buffer returned. */
That is because a non-delimited line has exactly one field. */
buffer_first_field = (suppress_non_delimited ^ !print_kth (1));
- while (1)
+ while (true)
{
if (field_idx == 1 && buffer_first_field)
{
line = NULL;
buflen = 0;
ok = true;
- while (1)
+ while (true)
{
ssize_t line_length = getline (&line, &buflen, in_stream);
if (line_length < 0)
alloc_ibuf ();
alloc_obuf ();
- while (1)
+ while (true)
{
if (status_level == STATUS_PROGRESS)
{
if (term == NULL || *term == '\0')
term = "none";
- while (1)
+ while (true)
{
char *keywd, *arg;
bool unrecognized;
{
FTS *fts = xfts_open (files, bit_flags, NULL);
- while (1)
+ while (true)
{
FTSENT *ent;
trace ("eval5");
#endif
l = eval6 (evaluate);
- while (1)
+ while (true)
{
if (nextarg (":"))
{
trace ("eval4");
#endif
l = eval5 (evaluate);
- while (1)
+ while (true)
{
if (nextarg ("*"))
fxn = multiply;
trace ("eval3");
#endif
l = eval4 (evaluate);
- while (1)
+ while (true)
{
if (nextarg ("+"))
fxn = plus;
trace ("eval2");
#endif
l = eval3 (evaluate);
- while (1)
+ while (true)
{
VALUE *r;
enum
trace ("eval1");
#endif
l = eval2 (evaluate);
- while (1)
+ while (true)
{
if (nextarg ("&"))
{
trace ("eval");
#endif
l = eval1 (evaluate);
- while (1)
+ while (true)
{
if (nextarg ("|"))
{
/* Always read into a fresh buffer.
Read, (producing no output) until we've accumulated at least
n_elide newlines, or until EOF, whichever comes first. */
- while (1)
+ while (true)
{
n_read = safe_read (fd, tmp->buffer, BUFSIZ);
if (n_read == 0 || n_read == SAFE_READ_ERROR)
if (n_lines && bytes_read && buffer[bytes_read - 1] != line_end)
--n_lines;
- while (1)
+ while (true)
{
/* Scan backward, counting the newlines in this bufferfull. */
const struct outlist *o;
o = outlist;
- while (1)
+ while (true)
{
if (o->file == 0)
{
/* Read the directory entries, and insert the subfiles into the 'cwd_file'
table. */
- while (1)
+ while (true)
{
/* Set errno to zero so we can distinguish between a readdir failure
and when readdir simply finds that there are no more entries. */
size_t pos = 0;
/* Print the next row. */
- while (1)
+ while (true)
{
struct fileinfo const *f = sorted_file[filesno];
size_t name_length = length_of_file_name_and_frills (f);
enum nproc_query mode = NPROC_CURRENT_OVERRIDABLE;
- while (1)
+ while (true)
{
int c = getopt_long (argc, argv, "", longopts, NULL);
if (c == -1)
if (limit_bytes_to_format)
{
- while (1)
+ while (true)
{
size_t n_needed;
if (current_offset >= end_offset)
}
else
{
- while (1)
+ while (true)
{
ok &= read_block (bytes_per_block, block[idx], &n_bytes_read);
if (n_bytes_read < bytes_per_block)
uintmax_t address = n_bytes_to_skip;
bool ok = true;
- while (1)
+ while (true)
{
size_t i;
int c;
/* Read and process a single input line or sentence, one word at a
time. */
- while (1)
+ while (true)
{
if (word_regex.string)
use_lstat = (parent_sb.st_dev != dot_sb->st_dev);
found = false;
- while (1)
+ while (true)
{
struct dirent const *dp;
struct stat ent_sb;
if (stat (".", &dot_sb) < 0)
die (EXIT_FAILURE, errno, _("failed to stat %s"), quoteaf ("."));
- while (1)
+ while (true)
{
/* If we've reached the root, we're done. */
if (SAME_INODE (dot_sb, *root_dev_ino))
atexit (close_stdout);
- while (1)
+ while (true)
{
int c = getopt_long (argc, argv, "LP", longopts, NULL);
if (c == -1)
atexit (close_stdout);
- while (1)
+ while (true)
{
int c = getopt_long (argc, argv, "eLmPqsz", longopts, NULL);
if (c == -1)
FTS *fts = xfts_open (file, bit_flags, NULL);
- while (1)
+ while (true)
{
FTSENT *ent;
bool ok = true;
strip_trailing_slashes (dir);
- while (1)
+ while (true)
{
slash = strrchr (dir, '/');
if (slash == NULL)
atexit (close_stdout);
- while (1)
+ while (true)
{
int option_index = 0;
int c = getopt_long (argc, argv, "+r:t:u:l:c", long_options,
merge_loop (struct merge_node_queue *queue,
size_t total_lines, FILE *tfp, char const *temp_output)
{
- while (1)
+ while (true)
{
struct merge_node *node = queue_pop (queue);
}
}
- while (1)
+ while (true)
{
size_t bytes_read = safe_read (fd, buf, sizeof buf);
static inline struct dirent const *
readdir_ignoring_dot_and_dotdot (DIR *dirp)
{
- while (1)
+ while (true)
{
struct dirent const *dp = readdir (dirp);
if (dp == NULL || ! dot_or_dotdot (dp->d_name))
#define OBS (&(x->obs))
obstack_init (OBS);
- while (1)
+ while (true)
{
char *buf = (char *) malloc (BUFFER_SIZE);
size_t bytes_read;
tmp = line_ptr_decrement (x, last_bol);
last_bol_ptr = tmp.ptr;
i = tmp.i;
- while (1)
+ while (true)
{
char *nl = memrchr (x->p[i].start, last_bol_ptr, eol_byte);
if (nl)
bol.i = x.n_bufs - 1;
bol.ptr = ONE_PAST_END (&x, bol.i);
- while (1)
+ while (true)
{
Line_ptr new_bol;
if (! find_bol (&x, &bol, &new_bol, eol_byte))
if (!temp_stream (&fp, &file_name))
return -1;
- while (1)
+ while (true)
{
size_t bytes_read = safe_read (input_fd, G_buffer, read_size);
if (bytes_read == 0)
uintmax_t n_remaining = n_bytes;
n_written = 0;
- while (1)
+ while (true)
{
char buffer[BUFSIZ];
size_t n = MIN (n_remaining, BUFSIZ);
tmp = xmalloc (sizeof (LBUFFER));
/* Input is always read into a fresh buffer. */
- while (1)
+ while (true)
{
n_read = safe_read (fd, tmp->buffer, BUFSIZ);
if (n_read == 0 || n_read == SAFE_READ_ERROR)
tmp = xmalloc (sizeof (CBUFFER));
/* Input is always read into a fresh buffer. */
- while (1)
+ while (true)
{
n_read = safe_read (fd, tmp->buffer, BUFSIZ);
if (n_read == 0 || n_read == SAFE_READ_ERROR)
if (n_lines == 0)
return 0;
- while (1)
+ while (true)
{
char buffer[BUFSIZ];
size_t bytes_read = safe_read (fd, buffer, BUFSIZ);
last = n_files - 1;
- while (1)
+ while (true)
{
size_t i;
bool any_input = false;
ensure that watched files can be re-added when following by name.
This loop blocks on the 'safe_read' call until a new event is notified.
But when --pid=P is specified, tail usually waits via the select. */
- while (1)
+ while (true)
{
struct File_spec *fspec;
struct inotify_event *ev;
init_tokenbuffer (&tokenbuffer);
- while (1)
+ while (true)
{
/* T2. Next Relation. */
size_t len = readtoken (stdin, DELIM, sizeof (DELIM) - 1, &tokenbuffer);