This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history] / lib / libutil / osname.3
CommitLineData
b26c9235
GW
1.\" $Id: osname.3,v 1.2 1994/02/23 09:56:52 rgrimes Exp $
2.\"
3.\" This file is in the public domain.
8ca81eb5 4.\"
bdf737ca
GW
5.Dd February 3, 1994
6.Dt OSNAME 3
7.Os
8.Sh NAME
9.Nm _osname
10.Nd get name of running operating system
11.br
12.Nm _osnamever
13.Nd get name and version of running operating system
14.Sh SYNOPSIS
15.Ft char *
16.Fn _osname void
17.Ft char *
18.Fn _osnamever void
19.Sh DESCRIPTION
20The
21.Fn _osname
22and
23.Fn _osnamever
24functions return the name of the running operating system and a string
25giving the name and version thereof, respectively.
26The information is retrieved from the kernel using the
27.Xr uname 2
28system call, which is then copied into a static buffer which is
29returned to the caller.
30.Sh DIAGNOSTICS
31If the
32.Xr uname 2
33system call returns an error,
34.Dq unknown
35is returned.
36.Sh SEE ALSO
37.Xr uname 1 ,
38.Xr uname 2
39.Sh HISTORY
40The
41.Fn _osname
42and
43.Fn _osnamever
44functions appreared in
45.Fx 1.1 .
46.Sh AUTHOR
47Garrett A. Wollman