diff options
| author | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
|---|---|---|
| committer | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
| commit | a16f65c7d117419bd266c28a1901ef129a337569 (patch) | |
| tree | 2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /lib/libutil/osname.3 | |
| parent | 8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff) | |
Release FreeBSD 1.1upstream/1.1.0_cvsrelease/1.1.0_cvs
This commit was manufactured to restore the state of the 1.1-RELEASE image.
Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
Diffstat (limited to 'lib/libutil/osname.3')
| -rw-r--r-- | lib/libutil/osname.3 | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/lib/libutil/osname.3 b/lib/libutil/osname.3 new file mode 100644 index 000000000000..14a1739e8642 --- /dev/null +++ b/lib/libutil/osname.3 @@ -0,0 +1,47 @@ +.\" $Id: osname.3,v 1.3 1994/02/23 15:55:45 wollman Exp $ +.\" +.\" This file is in the public domain. +.\" +.Dd February 3, 1994 +.Dt OSNAME 3 +.Os +.Sh NAME +.Nm _osname +.Nd get name of running operating system +.br +.Nm _osnamever +.Nd get name and version of running operating system +.Sh SYNOPSIS +.Ft char * +.Fn _osname void +.Ft char * +.Fn _osnamever void +.Sh DESCRIPTION +The +.Fn _osname +and +.Fn _osnamever +functions return the name of the running operating system and a string +giving the name and version thereof, respectively. +The information is retrieved from the kernel using the +.Xr uname 2 +system call, which is then copied into a static buffer which is +returned to the caller. +.Sh DIAGNOSTICS +If the +.Xr uname 2 +system call returns an error, +.Dq unknown +is returned. +.Sh SEE ALSO +.Xr uname 1 , +.Xr uname 2 +.Sh HISTORY +The +.Fn _osname +and +.Fn _osnamever +functions appreared in +.Fx 1.1 . +.Sh AUTHOR +Garrett A. Wollman |
