~ps10gel/ubuntu/xenial/trafficserver/6.2.0

« back to all changes in this revision

Viewing changes to mgmt/Rollback.h

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2013-05-09 01:00:04 UTC
  • mto: (1.1.11) (5.3.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20130509010004-9fqq9n0adseg3f8w
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#define ACTIVE_VERSION 0
43
43
#define INVALID_VERSION -1
44
44
 
 
45
#if HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
 
46
#define TS_ARCHIVE_STAT_MTIME(t)    ((t).st_mtime * 1000000000 + (t).st_mtimespec.tv_nsec)
 
47
#elif HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
 
48
#define TS_ARCHIVE_STAT_MTIME(t)    ((t).st_mtime * 1000000000 + (t).st_mtim.tv_nsec)
 
49
#else
 
50
#define TS_ARCHIVE_STAT_MTIME(t)    ((t).st_mtime * 1000000000)
 
51
#endif
 
52
 
45
53
typedef int version_t;
46
54
 
47
55
enum RollBackCodes