003 File Manager
Current Path:
/usr/src/contrib/ntp/ntpq
usr
/
src
/
contrib
/
ntp
/
ntpq
/
📁
..
📄
Makefile.am
(4.02 KB)
📄
Makefile.in
(47.1 KB)
📄
README
(317 B)
📄
invoke-ntpq.menu
(49 B)
📄
invoke-ntpq.texi
(38.49 KB)
📄
libntpq.c
(20.19 KB)
📄
libntpq.h
(3.46 KB)
📄
libntpq_subs.c
(1.22 KB)
📄
ntpq-opts.c
(43.64 KB)
📄
ntpq-opts.def
(29.14 KB)
📄
ntpq-opts.h
(10.23 KB)
📄
ntpq-subs.c
(92.54 KB)
📄
ntpq.1ntpqman
(40.3 KB)
📄
ntpq.1ntpqmdoc
(31.63 KB)
📄
ntpq.c
(86.18 KB)
📄
ntpq.h
(4.77 KB)
📄
ntpq.html
(93.21 KB)
📄
ntpq.man.in
(40.3 KB)
📄
ntpq.mdoc.in
(31.63 KB)
📄
ntpq.texi
(24.92 KB)
Editing: libntpq_subs.c
/***************************************************************************** * * libntpq_subs.c * * This is the second part of the wrapper library for ntpq, the NTP query utility. * This library reuses the sourcecode from ntpq and exports a number * of useful functions in a library that can be linked against applications * that need to query the status of a running ntpd. The whole * communcation is based on mode 6 packets. * * This source file exports the (private) functions from ntpq-subs.c * ****************************************************************************/ #include "ntpq-subs.c" #include "libntpq.h" int ntpq_dogetassoc(void) { if (dogetassoc(NULL)) return numassoc; else return 0; } /* the following functions are required internally by a number of libntpq functions * and since they are defined as static in ntpq-subs.c, they need to be exported here */ char ntpq_decodeaddrtype(sockaddr_u *sock) { return decodeaddrtype(sock); } int ntpq_doquerylist( struct ntpq_varlist *vlist, int op, associd_t associd, int auth, u_short *rstatus, size_t *dsize, const char **datap ) { return doquerylist((struct varlist *)vlist, op, associd, auth, rstatus, dsize, datap); }
Upload File
Create Folder