003 File Manager
Current Path:
/usr/src/contrib/ntp/ntpdc
usr
/
src
/
contrib
/
ntp
/
ntpdc
/
📁
..
📄
Makefile.am
(4.68 KB)
📄
Makefile.in
(43.64 KB)
📄
README
(321 B)
📄
invoke-ntpdc.menu
(50 B)
📄
invoke-ntpdc.texi
(11.3 KB)
📄
layout.std
(9.86 KB)
📄
nl.pl
(1 KB)
📄
nl.pl.in
(1018 B)
📄
nl_in.c
(64 B)
📄
ntpdc-layout.c
(327 B)
📄
ntpdc-opts.c
(42.35 KB)
📄
ntpdc-opts.def
(22.19 KB)
📄
ntpdc-opts.h
(9.93 KB)
📄
ntpdc.1ntpdcman
(27.72 KB)
📄
ntpdc.1ntpdcmdoc
(24.05 KB)
📄
ntpdc.c
(41.82 KB)
📄
ntpdc.h
(1.51 KB)
📄
ntpdc.html
(24.97 KB)
📄
ntpdc.man.in
(27.72 KB)
📄
ntpdc.mdoc.in
(24.05 KB)
📄
ntpdc.texi
(2.41 KB)
📄
ntpdc_ops.c
(74.55 KB)
Editing: ntpdc.h
/* * ntpdc.h - definitions of interest to ntpdc */ #include "ntp_fp.h" #include "ntp.h" #include "ntp_request.h" #include "ntp_string.h" #include "ntp_malloc.h" /* * Maximum number of arguments */ #define MAXARGS 4 #define MOREARGS 10 /* * Flags for forming descriptors. */ #define OPT 0x80 /* this argument is optional, or'd with type */ #define NO 0x0 #define NTP_STR 0x1 /* string argument */ #define NTP_UINT 0x2 /* unsigned integer */ #define NTP_INT 0x3 /* signed integer */ #define NTP_ADD 0x4 /* IP network address */ #define IP_VERSION 0x5 /* IP version */ /* * Arguments are returned in a struct - no * union space saving is attempted. */ typedef struct { u_char type; char *string; long ival; u_long uval; sockaddr_u netnum; } arg_v; /* * Structure for passing parsed command line */ struct parse { char *keyword; arg_v argval[MAXARGS + MOREARGS]; size_t nargs; }; /* * ntpdc includes a command parser which could charitably be called * crude. The following structure is used to define the command * syntax. */ struct xcmd { const char *keyword; /* command key word */ void (*handler) (struct parse *, FILE *); /* command handler */ u_char arg[MAXARGS]; /* descriptors for arguments */ const char *desc[MAXARGS]; /* descriptions for arguments */ const char *comment; }; extern int impl_ver; extern int showhostnames; extern int s_port; extern int doquery (int, int, int, size_t, size_t, const char *, size_t *, size_t *, const char **, int, int); extern const char * nntohost (sockaddr_u *);
Upload File
Create Folder