Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>uname</b> http://www.ousob.com [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
uname
=====

Syntax
------

     #include <sys/utsname.h>
     
     #int uname(struct utsname *u);

Description
-----------

Fills in the structure with information about the system.

     struct utsname {
       char machine[9];
       char nodename[32];
       char release[9];
       char sysname[9];
       char version[9];
     };

`machine'
     "pc"

`nodename'
     The name of your PC (if networking is installed), else "pc".

`release'
     The minor release of dos.  For example, dos 1.23 would return "23"
     here.

`sysname'
     The flavor of the OS.

`version'
     The major release of dos.  For example, dos 1.23 would return "1"
     here.

Return Value
------------

Zero on success, else nonzero.


Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson