logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

uname.1p (6262B)


  1. '\" et
  2. .TH UNAME "1P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. uname
  12. \(em return system name
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. uname \fB[\fR-amnrsv\fB]\fR
  17. .fi
  18. .SH DESCRIPTION
  19. By default, the
  20. .IR uname
  21. utility shall write the operating system name to standard output. When
  22. options are specified, symbols representing one or more system
  23. characteristics shall be written to the standard output. The format
  24. and contents of the symbols are implementation-defined. On systems
  25. conforming to the System Interfaces volume of POSIX.1\(hy2017, the symbols written shall be those supported
  26. by the
  27. \fIuname\fR()
  28. function as defined in the System Interfaces volume of POSIX.1\(hy2017.
  29. .SH OPTIONS
  30. The
  31. .IR uname
  32. utility shall conform to the Base Definitions volume of POSIX.1\(hy2017,
  33. .IR "Section 12.2" ", " "Utility Syntax Guidelines".
  34. .P
  35. The following options shall be supported:
  36. .IP "\fB\-a\fP" 10
  37. Behave as though all of the options
  38. .BR \-mnrsv
  39. were specified.
  40. .IP "\fB\-m\fP" 10
  41. Write the name of the hardware type on which the system is running to
  42. standard output.
  43. .IP "\fB\-n\fP" 10
  44. Write the name of this node within an implementation-defined
  45. communications network.
  46. .IP "\fB\-r\fP" 10
  47. Write the current release level of the operating system
  48. implementation.
  49. .IP "\fB\-s\fP" 10
  50. Write the name of the implementation of the operating system.
  51. .IP "\fB\-v\fP" 10
  52. Write the current version level of this release of the operating system
  53. implementation.
  54. .P
  55. If no options are specified, the
  56. .IR uname
  57. utility shall write the operating system name, as if the
  58. .BR \-s
  59. option had been specified.
  60. .SH OPERANDS
  61. None.
  62. .SH STDIN
  63. Not used.
  64. .SH "INPUT FILES"
  65. None.
  66. .SH "ENVIRONMENT VARIABLES"
  67. The following environment variables shall affect the execution of
  68. .IR uname :
  69. .IP "\fILANG\fP" 10
  70. Provide a default value for the internationalization variables that are
  71. unset or null. (See the Base Definitions volume of POSIX.1\(hy2017,
  72. .IR "Section 8.2" ", " "Internationalization Variables"
  73. for the precedence of internationalization variables used to determine
  74. the values of locale categories.)
  75. .IP "\fILC_ALL\fP" 10
  76. If set to a non-empty string value, override the values of all the
  77. other internationalization variables.
  78. .IP "\fILC_CTYPE\fP" 10
  79. Determine the locale for the interpretation of sequences of bytes of
  80. text data as characters (for example, single-byte as opposed to
  81. multi-byte characters in arguments).
  82. .IP "\fILC_MESSAGES\fP" 10
  83. .br
  84. Determine the locale that should be used to affect the format and
  85. contents of diagnostic messages written to standard error.
  86. .IP "\fINLSPATH\fP" 10
  87. Determine the location of message catalogs for the processing of
  88. .IR LC_MESSAGES .
  89. .SH "ASYNCHRONOUS EVENTS"
  90. Default.
  91. .SH STDOUT
  92. By default, the output shall be a single line of the following form:
  93. .sp
  94. .RS 4
  95. .nf
  96. "%s\en", <\fIsysname\fR>
  97. .fi
  98. .P
  99. .RE
  100. .P
  101. If the
  102. .BR \-a
  103. option is specified, the output shall be a single line of the following
  104. form:
  105. .sp
  106. .RS 4
  107. .nf
  108. "%s %s %s %s %s\en", <\fIsysname\fR>, <\fInodename\fR>, <\fIrelease\fR>,
  109. <\fIversion\fR>, <\fImachine\fR>
  110. .fi
  111. .P
  112. .RE
  113. .P
  114. Additional implementation-defined symbols may be written; all such
  115. symbols shall be written at the end of the line of output before the
  116. <newline>.
  117. .P
  118. If options are specified to select different combinations of the
  119. symbols, only those symbols shall be written, in the order shown above
  120. for the
  121. .BR \-a
  122. option. If a symbol is not selected for writing, its corresponding
  123. trailing
  124. <blank>
  125. characters also shall not be written.
  126. .SH STDERR
  127. The standard error shall be used only for diagnostic messages.
  128. .SH "OUTPUT FILES"
  129. None.
  130. .SH "EXTENDED DESCRIPTION"
  131. None.
  132. .SH "EXIT STATUS"
  133. The following exit values shall be returned:
  134. .IP "\00" 6
  135. The requested information was successfully written.
  136. .IP >0 6
  137. An error occurred.
  138. .SH "CONSEQUENCES OF ERRORS"
  139. Default.
  140. .LP
  141. .IR "The following sections are informative."
  142. .SH "APPLICATION USAGE"
  143. Note that any of the symbols could include embedded
  144. <space>
  145. characters, which may affect parsing algorithms if multiple options are
  146. selected for output.
  147. .P
  148. The node name is typically a name that the system uses to identify
  149. itself for inter-system communication addressing.
  150. .SH EXAMPLES
  151. The following command:
  152. .sp
  153. .RS 4
  154. .nf
  155. uname -sr
  156. .fi
  157. .P
  158. .RE
  159. .P
  160. writes the operating system name and release level, separated by one or
  161. more
  162. <blank>
  163. characters.
  164. .SH RATIONALE
  165. It was suggested that this utility cannot be used portably since the
  166. format of the symbols is implementation-defined. The POSIX.1 working
  167. group could not achieve consensus on defining these formats in the
  168. underlying
  169. \fIuname\fR()
  170. function, and there was no expectation that this volume of POSIX.1\(hy2017 would be any more
  171. successful. Some applications may still find this historical utility of
  172. value. For example, the symbols could be used for system log entries or
  173. for comparison with operator or user input.
  174. .SH "FUTURE DIRECTIONS"
  175. None.
  176. .SH "SEE ALSO"
  177. The Base Definitions volume of POSIX.1\(hy2017,
  178. .IR "Chapter 8" ", " "Environment Variables",
  179. .IR "Section 12.2" ", " "Utility Syntax Guidelines"
  180. .P
  181. The System Interfaces volume of POSIX.1\(hy2017,
  182. .IR "\fIuname\fR\^(\|)"
  183. .\"
  184. .SH COPYRIGHT
  185. Portions of this text are reprinted and reproduced in electronic form
  186. from IEEE Std 1003.1-2017, Standard for Information Technology
  187. -- Portable Operating System Interface (POSIX), The Open Group Base
  188. Specifications Issue 7, 2018 Edition,
  189. Copyright (C) 2018 by the Institute of
  190. Electrical and Electronics Engineers, Inc and The Open Group.
  191. In the event of any discrepancy between this version and the original IEEE and
  192. The Open Group Standard, the original IEEE and The Open Group Standard
  193. is the referee document. The original Standard can be obtained online at
  194. http://www.opengroup.org/unix/online.html .
  195. .PP
  196. Any typographical or formatting errors that appear
  197. in this page are most likely
  198. to have been introduced during the conversion of the source files to
  199. man page format. To report such errors, see
  200. https://www.kernel.org/doc/man-pages/reporting_bugs.html .