extern char *getpwd ();
-extern char * my_strerror PROTO ((int));
-
static void usage PROTO ((void)) ATTRIBUTE_NORETURN;
static void aux_info_corrupted PROTO ((void)) ATTRIBUTE_NORETURN;
static void declare_source_confusing PROTO ((const char *)) ATTRIBUTE_NORETURN;
static const char *shortpath ();
\f
char *
-my_strerror(e)
- int e;
+xstrerror(e)
+ int e;
{
#ifdef HAVE_STRERROR
continue;
#endif
fprintf (stderr, "%s: error writing file `%s': %s\n",
- pname, shortpath (NULL, out_fname), my_strerror (errno_val));
+ pname, shortpath (NULL, out_fname), xstrerror (errno_val));
return;
}
ptr += written;
int errno_val = errno;
fprintf (stderr, "%s: %s: can't get status: %s\n",
pname, shortpath (NULL, filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
stat_buf.st_mtime = (time_t) -1;
}
}
int errno_val = errno;
fprintf (stderr, "%s: ", pname);
fprintf (stderr, errmsg_fmt, errmsg_arg);
- fprintf (stderr, ": %s\n", my_strerror (errno_val));
+ fprintf (stderr, ": %s\n", xstrerror (errno_val));
return 0;
}
pid = pwait (pid, &wait_status, 0);
if (pid == -1)
{
- fprintf (stderr, "%s: wait: %s\n", pname, my_strerror (errno));
+ fprintf (stderr, "%s: wait: %s\n", pname, xstrerror (errno));
return 0;
}
if (WIFSIGNALED (wait_status))
int errno_val = errno;
fprintf (stderr, "%s: can't read aux info file `%s': %s\n",
pname, shortpath (NULL, aux_info_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
errors++;
return;
}
int errno_val = errno;
fprintf (stderr, "%s: can't read aux info file `%s': %s\n",
pname, shortpath (NULL, aux_info_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
errors++;
return;
}
int errno_val = errno;
fprintf (stderr, "%s: can't get status of aux info file `%s': %s\n",
pname, shortpath (NULL, aux_info_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
errors++;
return;
}
int errno_val = errno;
fprintf (stderr, "%s: can't get status of aux info file `%s': %s\n",
pname, shortpath (NULL, base_source_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
errors++;
return;
}
int errno_val = errno;
fprintf (stderr, "%s: can't open aux info file `%s' for reading: %s\n",
pname, shortpath (NULL, aux_info_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
return;
}
int errno_val = errno;
fprintf (stderr, "%s: error reading aux info file `%s': %s\n",
pname, shortpath (NULL, aux_info_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
free (aux_info_base);
close (aux_info_file);
return;
int errno_val = errno;
fprintf (stderr, "%s: error closing aux info file `%s': %s\n",
pname, shortpath (NULL, aux_info_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
free (aux_info_base);
close (aux_info_file);
return;
int errno_val = errno;
fprintf (stderr, "%s: can't delete aux info file `%s': %s\n",
pname, shortpath (NULL, aux_info_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
}
/* Save a pointer into the first line of the aux_info file which
int errno_val = errno;
fprintf (stderr, "%s: can't delete file `%s': %s\n",
pname, shortpath (NULL, aux_info_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
return;
}
must_create = 1;
int errno_val = errno;
fprintf (stderr, "%s: warning: can't link file `%s' to `%s': %s\n",
pname, shortpath (NULL, filename),
- shortpath (NULL, new_filename), my_strerror (errno_val));
+ shortpath (NULL, new_filename), xstrerror (errno_val));
errors++;
return;
}
{
int errno_val = errno;
fprintf (stderr, "%s: warning: can't delete file `%s': %s\n",
- pname, shortpath (NULL, filename), my_strerror (errno_val));
+ pname, shortpath (NULL, filename), xstrerror (errno_val));
errors++;
return;
}
int errno_val = errno;
fprintf (stderr, "%s: can't get status for file `%s': %s\n",
pname, shortpath (NULL, convert_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
return;
}
orig_size = stat_buf.st_size;
int errno_val = errno;
fprintf (stderr, "%s: can't open file `%s' for reading: %s\n",
pname, shortpath (NULL, convert_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
return;
}
close (input_file);
fprintf (stderr, "\n%s: error reading input file `%s': %s\n",
pname, shortpath (NULL, convert_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
return;
}
int errno_val = errno;
fprintf (stderr, "%s: can't create/open clean file `%s': %s\n",
pname, shortpath (NULL, clean_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
return;
}
pname,
shortpath (NULL, convert_filename),
shortpath (NULL, new_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
return;
}
}
int errno_val = errno;
fprintf (stderr, "%s: can't delete file `%s': %s\n",
pname, shortpath (NULL, convert_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
return;
}
int errno_val = errno;
fprintf (stderr, "%s: can't create/open output file `%s': %s\n",
pname, shortpath (NULL, convert_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
return;
}
int errno_val = errno;
fprintf (stderr, "%s: can't change mode of file `%s': %s\n",
pname, shortpath (NULL, convert_filename),
- my_strerror (errno_val));
+ xstrerror (errno_val));
}
/* Note: We would try to change the owner and group of the output file
if (!cwd_buffer)
{
fprintf (stderr, "%s: cannot get working directory: %s\n",
- pname, my_strerror(errno));
+ pname, xstrerror(errno));
exit (FATAL_EXIT_CODE);
}