mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-15 14:39:26 +02:00
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
This commit is contained in:
@@ -327,7 +327,7 @@ show_dev (const char *disk, const char *mount_point, const char *fstype)
|
||||
#endif
|
||||
printf (" %s", mount_point);
|
||||
}
|
||||
putchar ('\n');
|
||||
PUTCHAR ('\n');
|
||||
}
|
||||
|
||||
/* Identify the directory, if any, that device
|
||||
|
||||
+5
-5
@@ -397,7 +397,7 @@ dc_parse_file (const char *filename)
|
||||
|
||||
err = dc_parse_stream (fp, filename);
|
||||
|
||||
if (fp != stdin && fclose (fp) == EOF)
|
||||
if (fp != stdin && FCLOSE (fp) == EOF)
|
||||
{
|
||||
error (0, errno, "%s", filename);
|
||||
return 1;
|
||||
@@ -472,8 +472,8 @@ dircolors' internal database"));
|
||||
int i;
|
||||
for (i = 0; i < G_N_LINES; i++)
|
||||
{
|
||||
fwrite (G_line[i], 1, G_line_length[i], stdout);
|
||||
fputc ('\n', stdout);
|
||||
FWRITE (G_line[i], 1, G_line_length[i], stdout);
|
||||
FPUTC ('\n', stdout);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -513,14 +513,14 @@ dircolors' internal database"));
|
||||
suffix = "'\n";
|
||||
}
|
||||
fputs (prefix, stdout);
|
||||
fwrite (s, 1, len, stdout);
|
||||
FWRITE (s, 1, len, stdout);
|
||||
fputs (suffix, stdout);
|
||||
}
|
||||
}
|
||||
|
||||
close_stdout ();
|
||||
|
||||
if (have_read_stdin && fclose (stdin) == EOF)
|
||||
if (have_read_stdin && FCLOSE (stdin) == EOF)
|
||||
error (EXIT_FAILURE, errno, _("standard input"));
|
||||
|
||||
exit (err == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
|
||||
@@ -425,7 +425,7 @@ print_size (uintmax_t n_blocks, const char *string)
|
||||
human_readable (n_blocks, buf, ST_NBLOCKSIZE, output_units,
|
||||
human_readable_base),
|
||||
string);
|
||||
fflush (stdout);
|
||||
FFLUSH (stdout);
|
||||
}
|
||||
|
||||
/* Recursively print the sizes of the directories (and, if selected, files)
|
||||
|
||||
@@ -569,7 +569,7 @@ static char const *const time_args[] =
|
||||
and later output themselves. */
|
||||
static size_t dired_pos;
|
||||
|
||||
#define DIRED_PUTCHAR(c) do {putchar ((c)); ++dired_pos;} while (0)
|
||||
#define DIRED_PUTCHAR(c) do {PUTCHAR ((c)); ++dired_pos;} while (0)
|
||||
|
||||
/* Write S to STREAM and increment DIRED_POS by S_LEN. */
|
||||
#define DIRED_FPUTS(s, stream, s_len) \
|
||||
@@ -2139,7 +2139,7 @@ print_current_files (void)
|
||||
for (i = 0; i < files_index; i++)
|
||||
{
|
||||
print_file_name_and_frills (files + i);
|
||||
putchar ('\n');
|
||||
PUTCHAR ('\n');
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -2375,7 +2375,7 @@ quote_name (FILE *out, const char *p, struct quoting_options const *options)
|
||||
buf[i] = '?';
|
||||
}
|
||||
|
||||
fwrite (buf, 1, len, out);
|
||||
FWRITE (buf, 1, len, out);
|
||||
return len;
|
||||
}
|
||||
|
||||
@@ -2542,7 +2542,7 @@ put_indicator (const struct bin_str *ind)
|
||||
p = ind->string;
|
||||
|
||||
for (i = ind->len; i > 0; --i)
|
||||
putchar (*(p++));
|
||||
PUTCHAR (*(p++));
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -2660,7 +2660,7 @@ print_many_per_line (void)
|
||||
indent (pos + name_length, pos + max_name_length);
|
||||
pos += max_name_length;
|
||||
}
|
||||
putchar ('\n');
|
||||
PUTCHAR ('\n');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2729,7 +2729,7 @@ print_horizontal (void)
|
||||
|
||||
if (col == 0)
|
||||
{
|
||||
putchar ('\n');
|
||||
PUTCHAR ('\n');
|
||||
pos = 0;
|
||||
}
|
||||
else
|
||||
@@ -2743,7 +2743,7 @@ print_horizontal (void)
|
||||
name_length = length_of_file_name_and_frills (files + filesno);
|
||||
max_name_length = line_fmt->col_arr[col];
|
||||
}
|
||||
putchar ('\n');
|
||||
PUTCHAR ('\n');
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -2764,18 +2764,18 @@ print_with_commas (void)
|
||||
|
||||
if (old_pos != 0 && pos >= line_length)
|
||||
{
|
||||
putchar ('\n');
|
||||
PUTCHAR ('\n');
|
||||
pos -= old_pos;
|
||||
}
|
||||
|
||||
print_file_name_and_frills (files + filesno);
|
||||
if (filesno + 1 < files_index)
|
||||
{
|
||||
putchar (',');
|
||||
putchar (' ');
|
||||
PUTCHAR (',');
|
||||
PUTCHAR (' ');
|
||||
}
|
||||
}
|
||||
putchar ('\n');
|
||||
PUTCHAR ('\n');
|
||||
}
|
||||
|
||||
/* Assuming cursor is at position FROM, indent up to position TO.
|
||||
@@ -2788,12 +2788,12 @@ indent (int from, int to)
|
||||
{
|
||||
if (tabsize > 0 && to / tabsize > (from + 1) / tabsize)
|
||||
{
|
||||
putchar ('\t');
|
||||
PUTCHAR ('\t');
|
||||
from += tabsize - from % tabsize;
|
||||
}
|
||||
else
|
||||
{
|
||||
putchar (' ');
|
||||
PUTCHAR (' ');
|
||||
from++;
|
||||
}
|
||||
}
|
||||
|
||||
+4
-4
@@ -155,7 +155,7 @@ print_nth_dir (FILE *stream, unsigned int depth)
|
||||
sum += length[i];
|
||||
}
|
||||
|
||||
fwrite (dir_name, 1, sum, stream);
|
||||
FWRITE (dir_name, 1, sum, stream);
|
||||
}
|
||||
|
||||
static inline struct active_dir_ent *
|
||||
@@ -801,10 +801,10 @@ NOTIFY YOUR SYSTEM MANAGER.\n\
|
||||
The following two directories have the same inode number:\n"));
|
||||
/* FIXME: test this!! */
|
||||
print_nth_dir (stderr, current_depth ());
|
||||
fputc ('\n', stderr);
|
||||
FPUTC ('\n', stderr);
|
||||
print_nth_dir (stderr, old_ent->depth);
|
||||
fputc ('\n', stderr);
|
||||
fflush (stderr);
|
||||
FPUTC ('\n', stderr);
|
||||
FFLUSH (stderr);
|
||||
|
||||
free (old_ent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user