/opensource.apple.com/source/ntp/ntp-70/ntpdc/ntpdc-opts.def
Module-Definition | 152 lines | 136 code | 16 blank | 0 comment | 0 complexity | 0eddf35157d5754b05ccad4d283eaf0f MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, GPL-2.0, BSD-3-Clause, GPL-3.0, MPL-2.0, LGPL-2.0, LGPL-2.1, CC-BY-SA-3.0, IPL-1.0, ISC, AGPL-1.0, AGPL-3.0, JSON, Apache-2.0, 0BSD
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>ntpdc-opts.def</title>
- <style type="text/css">
- .enscript-comment { font-style: italic; color: rgb(178,34,34); }
- .enscript-function-name { font-weight: bold; color: rgb(0,0,255); }
- .enscript-variable-name { font-weight: bold; color: rgb(184,134,11); }
- .enscript-keyword { font-weight: bold; color: rgb(160,32,240); }
- .enscript-reference { font-weight: bold; color: rgb(95,158,160); }
- .enscript-string { font-weight: bold; color: rgb(188,143,143); }
- .enscript-builtin { font-weight: bold; color: rgb(218,112,214); }
- .enscript-type { font-weight: bold; color: rgb(34,139,34); }
- .enscript-highlight { text-decoration: underline; color: 0; }
- </style>
- </head>
- <body id="top">
- <h1 style="margin:8px;" id="f1">ntpdc-opts.def <span style="font-weight: normal; font-size: 0.5em;">[<a href="?txt">plain text</a>]</span></h1>
- <hr/>
- <div></div>
- <pre>
- /* -*- Mode: Text -*- */
- autogen definitions options;
- prog-name = "ntpdc";
- prog-title = "vendor-specific NTP query program";
- argument = '[ host ...]';
- #include copyright.def
- #include homerc.def
- #include autogen-version.def
- test-main;
- flag = {
- name = ipv4;
- value = 4;
- flags-cant = ipv6;
- descrip = "Force IPv4 DNS name resolution";
- doc = <<- _EndOfDoc_
- Force DNS resolution of following host names on the command line
- to the IPv4 namespace.
- _EndOfDoc_;
- };
- flag = {
- name = ipv6;
- value = 6;
- flags-cant = ipv4;
- descrip = "Force IPv6 DNS name resolution";
- doc = <<- _EndOfDoc_
- Force DNS resolution of following host names on the command line
- to the IPv6 namespace.
- _EndOfDoc_;
- };
- flag = {
- name = command;
- value = c;
- arg-type = string;
- descrip = "run a command and exit";
- max = NOLIMIT;
- arg-name = cmd;
- stack-arg;
- doc = <<- _EndOfDoc_
- The following argument is interpreted as an interactive format command
- and is added to the list of commands to be executed on the specified
- host(s).
- _EndOfDoc_;
- };
- flag = {
- name = listpeers;
- value = l;
- descrip = "Print a list of the peers";
- flags-cant = command;
- doc = <<- _EndOfDoc_
- Print a list of the peers known to the server as well as a summary of
- their state. This is equivalent to the 'listpeers' interactive command.
- _EndOfDoc_;
- };
- flag = {
- name = peers;
- value = p;
- descrip = "Print a list of the peers";
- flags-cant = command;
- doc = <<- _EndOfDoc_
- Print a list of the peers known to the server as well as a summary
- of their state. This is equivalent to the 'peers' interactive command.
- _EndOfDoc_;
- };
- flag = {
- name = showpeers;
- value = s;
- descrip = "Show a list of the peers";
- flags-cant = command;
- doc = <<- _EndOfDoc_
- Print a list of the peers known to the server as well as a summary
- of their state. This is equivalent to the 'dmpeers' interactive command.
- _EndOfDoc_;
- };
- flag = {
- name = interactive;
- value = i;
- flags-cant = command, listpeers, peers, showpeers;
- descrip = "Force ntpq to operate in interactive mode";
- doc = <<- _EndOfDoc_
- Force ntpq to operate in interactive mode. Prompts will be written
- to the standard output and commands read from the standard input.
- _EndOfDoc_;
- };
- #include debug-opt.def
- flag = {
- name = numeric;
- value = n;
- descrip = "numeric host addresses";
- doc = <<- _EndOfDoc_
- Output all host addresses in dotted-quad numeric format rather than
- converting to the canonical host names.
- _EndOfDoc_;
- };
- detail = <<- _END_DETAIL
- The
- [= prog-name =]
- utility program is used to query an NTP daemon about its
- current state and to request changes in that state.
- It uses NTP mode 7 control message formats described in the source code.
- The program may
- be run either in interactive mode or controlled using command line
- arguments.
- Extensive state and statistics information is available
- through the
- [= prog-name =]
- interface.
- In addition, nearly all the
- configuration options which can be specified at startup using
- ntpd's configuration file may also be specified at run time using
- [= prog-name =] .
- _END_DETAIL;
- </pre>
- <hr />
- </body></html>