/usr/include/diet/skalibs/caltimedate.h is in skalibs-dev 0.47-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 | /* Public domain. */
#ifndef CALTIMEDATE_H
#define CALTIMEDATE_H
#include "gccattributes.h"
#include "tai.h"
struct caldate
{
long year ;
int month ;
int day ;
} ;
extern unsigned int caldate_fmt (char *, struct caldate const *) ;
extern unsigned int caldate_scan (char const *, struct caldate *) ;
extern void caldate_frommjd (struct caldate *, long, int *, int *) ;
extern long caldate_mjd (struct caldate const *) gccattr_pure ;
extern void caldate_normalize (struct caldate *) ;
extern void caldate_easter (struct caldate *) ;
struct caltime {
struct caldate date ;
int hour ;
int minute ;
int second ;
long offset ;
} ;
extern unsigned int caltime_fmt (char *, struct caltime const *) ;
extern unsigned int caltime_scan (char const *, struct caltime *) ;
extern void caltime_tai (struct caltime const *, struct tai *) ;
extern void caltime_utc (struct caltime *, struct tai const *, int *, int *) ;
extern int leapsecs_init (void) ;
extern int leapsecs_readf_r (char const *, struct tai **) ;
extern int leapsecs_read_r (struct tai **) ;
extern int leapsecs_read (void) ;
extern void leapsecs_add (struct tai *, int) ;
extern int leapsecs_sub (struct tai *) ;
#endif
|