uname-obsd.1 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. .\" $OpenBSD: uname.1,v 1.17 2011/10/21 14:48:02 ajacoutot Exp $
  2. .\"
  3. .\" Copyright (c) 1990 The Regents of the University of California.
  4. .\" All rights reserved.
  5. .\"
  6. .\" Redistribution and use in source and binary forms, with or without
  7. .\" modification, are permitted provided that the following conditions
  8. .\" are met:
  9. .\" 1. Redistributions of source code must retain the above copyright
  10. .\" notice, this list of conditions and the following disclaimer.
  11. .\" 2. Redistributions in binary form must reproduce the above copyright
  12. .\" notice, this list of conditions and the following disclaimer in the
  13. .\" documentation and/or other materials provided with the distribution.
  14. .\" 3. Neither the name of the University nor the names of its contributors
  15. .\" may be used to endorse or promote products derived from this software
  16. .\" without specific prior written permission.
  17. .\"
  18. .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  19. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  20. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  21. .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  22. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  23. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  24. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  25. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  26. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  27. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  28. .\" SUCH DAMAGE.
  29. .\"
  30. .\" from: @(#)du.1 6.13 (Berkeley) 6/20/91
  31. .\"
  32. .Dd $Mdocdate: October 21 2011 $
  33. .Dt UNAME-OBSD 1
  34. .Os
  35. .Sh NAME
  36. .Nm uname-obsd
  37. .Nd print operating system name as if it were OpenBSD
  38. .Sh SYNOPSIS
  39. .Nm uname-obsd
  40. .Op Fl amnprsv
  41. .Sh DESCRIPTION
  42. The
  43. .Nm uname-obsd
  44. utility operates in exactly the same way as
  45. .Xr uname 1
  46. except that the operating system name is printed as "OpenBSD".
  47. .Pp
  48. This is useful when building software that checks the operating
  49. system's name using
  50. .Xr uname 1
  51. but doesn't know about LibertyBSD. And example of this is the GNU
  52. build system's config.guess/config.sub files.
  53. .Pp
  54. To use uname-obsd when building, simply issue the command
  55. .D1 alias uname=/usr/bin/uname-obsd
  56. .Pp
  57. The options are as follows:
  58. .Bl -tag -width Ds
  59. .It Fl a
  60. Behave as though all of the options
  61. .Fl mnrsv
  62. were specified.
  63. .It Fl m
  64. Print the machine hardware name.
  65. .It Fl n
  66. Print the nodename (the nodename may be a name
  67. that the system is known by to a communications
  68. network).
  69. .It Fl p
  70. Print the machine processor architecture name.
  71. .It Fl r
  72. Print the operating system release.
  73. .It Fl s
  74. Print "OpenBSD".
  75. .It Fl v
  76. Print the operating system version.
  77. .El
  78. .Pp
  79. If no options are specified,
  80. .Nm uname
  81. prints "OpenBSD", as if the
  82. .Fl s
  83. option had been specified.
  84. .Sh EXIT STATUS
  85. .Ex -std uname-obsd
  86. .Sh SEE ALSO
  87. .Xr uname-obsd 1
  88. .Sh HISTORY
  89. The
  90. .Nm
  91. command first appeared in LibertyBSD 5.8.