/usr/include/uclmmbase/ntp.h is in libuclmmbase1-dev 1.2.16.0-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 | /*
* FILE: ntp.h
* AUTHOR: O.Hodson
*
* NTP utility functions to make rtp and rtp round time calculation
* a little less painful.
*
* Copyright (c) 2000 University College London
* All rights reserved.
*
* $Id: ntp.h,v 1.3 2000/03/07 14:51:45 ucacoxh Exp $
*/
#ifndef _NTP_H
#define _NTP_H
#if defined(__cplusplus)
extern "C" {
#endif
#define ntp64_to_ntp32(ntp_sec, ntp_frac) \
((((ntp_sec) & 0x0000ffff) << 16) | \
(((ntp_frac) & 0xffff0000) >> 16))
#define ntp32_sub(now, then) ((now) > (then)) ? ((now) - (then)) : (((now) - (then)) + 0x7fffffff)
void ntp64_time(uint32_t *ntp_sec, uint32_t *ntp_frac);
#if defined(__cplusplus)
}
#endif
#endif /* _NTP_H */
|