diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
| commit | e0737c56c1e384e05064a0c6e1ac46979371041b (patch) | |
| tree | a0123d694a2d36c43dabdf0a3907392fce11d457 /boost/tools/build/src/engine/timestamp.h | |
| parent | b4aebf2d137b892f53503b13785ecae900062ff7 (diff) | |
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'boost/tools/build/src/engine/timestamp.h')
| -rw-r--r-- | boost/tools/build/src/engine/timestamp.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/boost/tools/build/src/engine/timestamp.h b/boost/tools/build/src/engine/timestamp.h new file mode 100644 index 00000000..e9b41753 --- /dev/null +++ b/boost/tools/build/src/engine/timestamp.h @@ -0,0 +1,47 @@ +/* + * Copyright 1993, 1995 Christopher Seiwald. + * + * This file is part of Jam - see jam.c for Copyright information. + */ + +/* + * timestamp.h - get the timestamp of a file or archive member + */ + +#ifndef TIMESTAMP_H_SW_2011_11_18 +#define TIMESTAMP_H_SW_2011_11_18 + +#include "object.h" + +#ifdef OS_NT +# include <windows.h> +#endif + +#include <time.h> + +typedef struct timestamp +{ + time_t secs; + int nsecs; +} timestamp; + +void timestamp_clear( timestamp * const ); +int timestamp_cmp( timestamp const * const lhs, timestamp const * const rhs ); +void timestamp_copy( timestamp * const target, timestamp const * const source ); +void timestamp_current( timestamp * const ); +int timestamp_empty( timestamp const * const ); +void timestamp_from_path( timestamp * const, OBJECT * const path ); +void timestamp_init( timestamp * const, time_t const secs, int const nsecs ); +void timestamp_max( timestamp * const max, timestamp const * const lhs, + timestamp const * const rhs ); +char const * timestamp_str( timestamp const * const ); +char const * timestamp_timestr( timestamp const * const ); + +#ifdef OS_NT +void timestamp_from_filetime( timestamp * const, FILETIME const * const ); +#endif + +void timestamp_done(); +double timestamp_delta_seconds( timestamp const * const, timestamp const * const ); + +#endif |
