This file is indexed.

/usr/share/shedskin/lib/time.hpp is in shedskin 0.9.4-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* Copyright 2005-2011 Mark Dufour and contributors; License Expat (See LICENSE) */

#ifndef TIME_HPP
#define TIME_HPP

#include "builtin.hpp"
#include <ctime>
#ifdef WIN32
   #include <windows.h>
   #include <time.h>
   #include <sys/timeb.h>
#else
   #include <sys/time.h>
#endif

using namespace __shedskin__;
namespace __time__ {
#ifdef WIN32
   struct  __ss_timezone {
       int     tz_minuteswest;
       int     tz_dsttime;
   };
   __ss_int gettimeofday (struct timeval *tv, struct __ss_timezone *tz);
#endif

extern __ss_int timezone;
extern tuple2<str *, str *> *tzname;

double clock();
double time();
void *sleep(double s);

extern str *const_0, *const_1;

class struct_time;

extern str *__name__;

extern class_ *cl_struct_time;
class struct_time : public pyobj {
public:
    __ss_int tm_sec;
    __ss_int tm_hour;
    __ss_int tm_mday;
    __ss_int tm_isdst;
    __ss_int tm_year;
    __ss_int tm_mon;
    __ss_int tm_yday;
    __ss_int tm_wday;
    __ss_int tm_min;

    struct_time() {
        __class__ = cl_struct_time;
    }
    __ss_int __getitem__(__ss_int n);
    struct_time(tuple2<__ss_int, __ss_int> *_tuple);
    str *__repr__();
};


double mktime(struct_time *tuple);
double mktime(tuple2<__ss_int, __ss_int> *tuple);

struct_time *localtime();
struct_time *localtime(const double timep);

struct_time *gmtime();
struct_time *gmtime(const double seconds);

str *asctime();
str *asctime(struct_time *tuple);

str *ctime();
str *ctime(const double seconds);

str *strftime(str *format, struct_time* tuple);
str *strftime(str *format);
str *strftime(str *format, tuple2<__ss_int, __ss_int> *tuple);

struct_time *strptime(str *string, str *format);
#ifdef WIN32
char *strptime(const char *, const char *, struct tm *);
#endif

void __init();

} // module namespace
#endif