Update contrib.
1 /** @file ../include/sys/utsname.h
5 /** @fn uname(struct utsname *buf)
7 @return Upon successful completion, a non-negative value is returned. Otherwise,
8 -1 is returned and errno is set to indicate the error.
11 sysname Name of the operating system implementation.
12 nodename Network name of this machine.
13 release Release level of the operating system.
14 version Version level of the operating system.
15 machine Machine hardware platform.
18 The uname function stores NULL -terminated strings of information identifying the current system
19 into the structure referenced by name .
21 The utsname structure is defined in the \#include \<sys/utsname.h\> header file, and contains
22 the following members: sysname Name of the operating system implementation. nodename Network name of this machine. release Release level of the operating system. version Version level of the operating system. machine Machine hardware platform.
26 #include <sys/utsname.h>
32 retVal = uname( &name; );
42 printf("uname passed");
71 Contains the following members,
77 /** @var utsname::sysname
81 /** @var utsname::nodename
82 Name of this network node.
85 /** @var utsname::release
89 /** @var utsname::version
93 /** @var utsname::machine