38 lines
1.4 KiB
HTML
38 lines
1.4 KiB
HTML
<html><!-- This HTML file has been created by texi2html 1.29
|
|
from syscalls.texi on 4 June 1994 -->
|
|
|
|
<TITLE>Syscall specifications of Linux - uname</TITLE>
|
|
<P>Go to the <A HREF="syscalls_109.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_109.html">previous</A>, <A HREF="syscalls_111.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_111.html">next</A> section.<P>
|
|
<H2><A NAME="SEC110" HREF="syscalls_toc.html#SEC110" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC110">uname</A></H2>
|
|
<P>
|
|
<H3>SYNOPSIS</H3>
|
|
<P>
|
|
<CODE>int uname(struct utsname *<VAR>buf</VAR>);</CODE>
|
|
|
|
<H3>PARAMETERS</H3>
|
|
<P>
|
|
<VAR>buf</VAR>: [out] where to store the information.
|
|
<P>
|
|
<H3>DESCRIPTION</H3>
|
|
<P>
|
|
Retreives some information on the system. The structure <CODE>utsname</CODE>
|
|
has the following layout:
|
|
<P>
|
|
<PRE>
|
|
struct utsname {
|
|
char sysname[65];
|
|
char nodename[65];
|
|
char release[65];
|
|
char version[65];
|
|
char machine[65];
|
|
char domainname[65];
|
|
};
|
|
</PRE>
|
|
<P>
|
|
<H3>RETURN VALUE</H3>
|
|
<P>
|
|
On success zero is returned. On error -1 is returned and <CODE>errno</CODE> is
|
|
set to <CODE>EFAULT</CODE>.
|
|
<P>
|
|
<P>Go to the <A HREF="syscalls_109.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_109.html">previous</A>, <A HREF="syscalls_111.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_111.html">next</A> section.<P>
|