mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Rename BeOS' time.h to beostime.h to prevent collision in Be's CodeWarrior.
This commit is contained in:
@@ -26,4 +26,4 @@ if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "BeOS|Haiku")
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_sources(attr.c deleted.c dirdepth.c filename.c files.c frag.c links.c os.c perms.c perms.h rsrcfork.c sparse.c time.c time.h volume.c volume.h xattr.c xattr.h)
|
||||
add_sources(attr.c deleted.c dirdepth.c filename.c files.c frag.c links.c os.c perms.c perms.h rsrcfork.c sparse.c time.c beostime.h volume.c volume.h xattr.c xattr.h)
|
||||
|
||||
@@ -39,26 +39,20 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char* filename;
|
||||
time_t access;
|
||||
time_t modification;
|
||||
char type[13];
|
||||
char message[32];
|
||||
char* filename;
|
||||
time_t access;
|
||||
time_t modification;
|
||||
char type[13];
|
||||
char message[32];
|
||||
} beos_time_tests_t;
|
||||
|
||||
#define KNOWN_BEOS_TIMES 10
|
||||
|
||||
static const beos_time_tests_t beos_times[KNOWN_BEOS_TIMES] = {
|
||||
"MAXATIME", MAXTIMESTAMP, 0, "access", MAXDATETIME,
|
||||
"MAXMTIME", 0, MAXTIMESTAMP, "modification", MAXDATETIME,
|
||||
"MINATIME", MINTIMESTAMP, 0, "access", MINDATETIME,
|
||||
"MINMTIME", 0, MINTIMESTAMP, "modification", MINDATETIME,
|
||||
"Y1KATIME", Y1KTIMESTAMP, 0, "access", Y1KDATETIME,
|
||||
"Y1KMTIME", 0, Y1KTIMESTAMP, "modification", Y1KDATETIME,
|
||||
"Y2KATIME", Y2KTIMESTAMP, 0, "access", Y2KDATETIME,
|
||||
"Y2KMTIME", 0, Y2KTIMESTAMP, "modification", Y2KDATETIME,
|
||||
"LESSATIME", LESSTIMESTAMP, 0, "access", LESSDATETIME,
|
||||
"LESSMTIME", 0, LESSTIMESTAMP, "modification", LESSDATETIME
|
||||
};
|
||||
"MAXATIME", MAXTIMESTAMP, 0, "access", MAXDATETIME, "MAXMTIME", 0, MAXTIMESTAMP, "modification", MAXDATETIME,
|
||||
"MINATIME", MINTIMESTAMP, 0, "access", MINDATETIME, "MINMTIME", 0, MINTIMESTAMP, "modification", MINDATETIME,
|
||||
"Y1KATIME", Y1KTIMESTAMP, 0, "access", Y1KDATETIME, "Y1KMTIME", 0, Y1KTIMESTAMP, "modification", Y1KDATETIME,
|
||||
"Y2KATIME", Y2KTIMESTAMP, 0, "access", Y2KDATETIME, "Y2KMTIME", 0, Y2KTIMESTAMP, "modification", Y2KDATETIME,
|
||||
"LESSATIME", LESSTIMESTAMP, 0, "access", LESSDATETIME, "LESSMTIME", 0, LESSTIMESTAMP, "modification", LESSDATETIME};
|
||||
|
||||
#endif // AARU_FSTESTER_SETTER_SRC_BEOS_TIME_H_
|
||||
@@ -30,10 +30,9 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
#include <unistd.h>
|
||||
#include <utime.h>
|
||||
|
||||
#include "time.h"
|
||||
|
||||
#include "../include/defs.h"
|
||||
#include "../log.h"
|
||||
#include "beostime.h"
|
||||
|
||||
void Timestamps(const char* path)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user