*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: uname | Section: 2 | Source: Digital UNIX | File: uname.2.gz
uname(2) System Calls Manual uname(2) NAME uname - Gets the name of the current system SYNOPSIS #include <sys/utsname.h> int uname( struct utsname *name); STANDARDS Interfaces documented on this reference page conform to industry stan- dards as follows: uname(): XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about in- dustry standards and associated tags. PARAMETERS Points to a utsname structure. DESCRIPTION The uname() function stores information identifying the current system in the structure pointed to by the name parameter. The uname() function uses the utsname structure, which is defined in the sys/utsname.h file and contains the following members: char sys- name[_SYS_NMLN]; char nodename[_SYS_NMLN]; char release[_SYS_NMLN]; char version[_SYS_NMLN]; char machine[_SYS_NMLN]; The uname() function returns a null-terminated character string naming the current system in the sysname character array. The nodename array contains the name that the system is known by on a communications net- work. The release and version arrays further identify the system. The machine array identifies the CPU hardware being used. RETURN VALUES Upon successful completion, a nonnegative value is returned. Other- wise, -1 is returned and errno is set to indicate the error. ERRORS If the uname() function fails, errno may be set to the following value: [Digital] The name parameter points outside of the process address space. RELATED INFORMATION Commands: uname(1) Standards: standards(5) delim off uname(2)

Navigation Options