PageRenderTime 45ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <title>ntpdc-opts.def</title>
  6. <style type="text/css">
  7. .enscript-comment { font-style: italic; color: rgb(178,34,34); }
  8. .enscript-function-name { font-weight: bold; color: rgb(0,0,255); }
  9. .enscript-variable-name { font-weight: bold; color: rgb(184,134,11); }
  10. .enscript-keyword { font-weight: bold; color: rgb(160,32,240); }
  11. .enscript-reference { font-weight: bold; color: rgb(95,158,160); }
  12. .enscript-string { font-weight: bold; color: rgb(188,143,143); }
  13. .enscript-builtin { font-weight: bold; color: rgb(218,112,214); }
  14. .enscript-type { font-weight: bold; color: rgb(34,139,34); }
  15. .enscript-highlight { text-decoration: underline; color: 0; }
  16. </style>
  17. </head>
  18. <body id="top">
  19. <h1 style="margin:8px;" id="f1">ntpdc-opts.def&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; font-size: 0.5em;">[<a href="?txt">plain text</a>]</span></h1>
  20. <hr/>
  21. <div></div>
  22. <pre>
  23. /* -*- Mode: Text -*- */
  24. autogen definitions options;
  25. prog-name = &quot;ntpdc&quot;;
  26. prog-title = &quot;vendor-specific NTP query program&quot;;
  27. argument = '[ host ...]';
  28. #include copyright.def
  29. #include homerc.def
  30. #include autogen-version.def
  31. test-main;
  32. flag = {
  33. name = ipv4;
  34. value = 4;
  35. flags-cant = ipv6;
  36. descrip = &quot;Force IPv4 DNS name resolution&quot;;
  37. doc = &lt;&lt;- _EndOfDoc_
  38. Force DNS resolution of following host names on the command line
  39. to the IPv4 namespace.
  40. _EndOfDoc_;
  41. };
  42. flag = {
  43. name = ipv6;
  44. value = 6;
  45. flags-cant = ipv4;
  46. descrip = &quot;Force IPv6 DNS name resolution&quot;;
  47. doc = &lt;&lt;- _EndOfDoc_
  48. Force DNS resolution of following host names on the command line
  49. to the IPv6 namespace.
  50. _EndOfDoc_;
  51. };
  52. flag = {
  53. name = command;
  54. value = c;
  55. arg-type = string;
  56. descrip = &quot;run a command and exit&quot;;
  57. max = NOLIMIT;
  58. arg-name = cmd;
  59. stack-arg;
  60. doc = &lt;&lt;- _EndOfDoc_
  61. The following argument is interpreted as an interactive format command
  62. and is added to the list of commands to be executed on the specified
  63. host(s).
  64. _EndOfDoc_;
  65. };
  66. flag = {
  67. name = listpeers;
  68. value = l;
  69. descrip = &quot;Print a list of the peers&quot;;
  70. flags-cant = command;
  71. doc = &lt;&lt;- _EndOfDoc_
  72. Print a list of the peers known to the server as well as a summary of
  73. their state. This is equivalent to the 'listpeers' interactive command.
  74. _EndOfDoc_;
  75. };
  76. flag = {
  77. name = peers;
  78. value = p;
  79. descrip = &quot;Print a list of the peers&quot;;
  80. flags-cant = command;
  81. doc = &lt;&lt;- _EndOfDoc_
  82. Print a list of the peers known to the server as well as a summary
  83. of their state. This is equivalent to the 'peers' interactive command.
  84. _EndOfDoc_;
  85. };
  86. flag = {
  87. name = showpeers;
  88. value = s;
  89. descrip = &quot;Show a list of the peers&quot;;
  90. flags-cant = command;
  91. doc = &lt;&lt;- _EndOfDoc_
  92. Print a list of the peers known to the server as well as a summary
  93. of their state. This is equivalent to the 'dmpeers' interactive command.
  94. _EndOfDoc_;
  95. };
  96. flag = {
  97. name = interactive;
  98. value = i;
  99. flags-cant = command, listpeers, peers, showpeers;
  100. descrip = &quot;Force ntpq to operate in interactive mode&quot;;
  101. doc = &lt;&lt;- _EndOfDoc_
  102. Force ntpq to operate in interactive mode. Prompts will be written
  103. to the standard output and commands read from the standard input.
  104. _EndOfDoc_;
  105. };
  106. #include debug-opt.def
  107. flag = {
  108. name = numeric;
  109. value = n;
  110. descrip = &quot;numeric host addresses&quot;;
  111. doc = &lt;&lt;- _EndOfDoc_
  112. Output all host addresses in dotted-quad numeric format rather than
  113. converting to the canonical host names.
  114. _EndOfDoc_;
  115. };
  116. detail = &lt;&lt;- _END_DETAIL
  117. The
  118. [= prog-name =]
  119. utility program is used to query an NTP daemon about its
  120. current state and to request changes in that state.
  121. It uses NTP mode 7 control message formats described in the source code.
  122. The program may
  123. be run either in interactive mode or controlled using command line
  124. arguments.
  125. Extensive state and statistics information is available
  126. through the
  127. [= prog-name =]
  128. interface.
  129. In addition, nearly all the
  130. configuration options which can be specified at startup using
  131. ntpd's configuration file may also be specified at run time using
  132. [= prog-name =] .
  133. _END_DETAIL;
  134. </pre>
  135. <hr />
  136. </body></html>