File: time.h

package info (click to toggle)
openntpd 1%3A6.2p3-4.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,472 kB
  • sloc: ansic: 9,413; sh: 4,425; yacc: 692; makefile: 310
file content (25 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (4)
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
/*
 * Public domain
 * time.h compatibility shim
 */

#include_next <time.h>

#ifndef LIBCOMPAT_TIME_H
#define LIBCOMPAT_TIME_H

#ifndef CLOCK_REALTIME
typedef int clockid_t;
#define CLOCK_REALTIME  1
#define CLOCK_MONOTONIC 2	
#endif

#ifndef HAVE_CLOCK_GETRES
int clock_getres(clockid_t clk_id, struct timespec *res);
#endif

#ifndef HAVE_CLOCK_GETTIME
int clock_gettime(clockid_t clk_id, struct timespec *ts);
#endif

#endif