#include "bfd.h"
#include "libiberty.h"
#include "filenames.h"
-
-#include <time.h> /* ctime, maybe time_t */
+#include <time.h>
#include <assert.h>
#include "bucomm.h"
-
-#ifndef HAVE_TIME_T_IN_TIME_H
-#ifndef HAVE_TIME_T_IN_TYPES_H
-typedef long time_t;
-#endif
-#endif
\f
/* Error reporting. */
Mode User\tGroup\tSize\tDate Name */
void
-print_arelt_descr (FILE *file, bfd *abfd, bfd_boolean verbose, bfd_boolean offsets)
+print_arelt_descr (FILE *file, bfd *abfd, bool verbose, bool offsets)
{
struct stat buf;
#if defined (_WIN32) && !defined (__CYGWIN__)
else if (statbuf.st_size == 0)
{
- /* MS-Windows 'stat' doesn't reports the null device as a
- regular file; fix that. */
+ /* MS-Windows 'stat' reports the null device as a regular file;
+ fix that. */
int fd = open (file_name, O_RDONLY | O_BINARY);
if (isatty (fd))
{
is valid for writing. For security reasons absolute paths
and paths containing /../ are not allowed. See PR 17533. */
-bfd_boolean
+bool
is_valid_archive_path (char const * pathname)
{
const char * n = pathname;
if (IS_ABSOLUTE_PATH (n))
- return FALSE;
+ return false;
while (*n)
{
if (*n == '.' && *++n == '.' && ( ! *++n || IS_DIR_SEPARATOR (*n)))
- return FALSE;
+ return false;
while (*n && ! IS_DIR_SEPARATOR (*n))
n++;
n++;
}
- return TRUE;
+ return true;
}