MentOS  0.8.0
The Mentoring Operating System
Classes | Macros | Typedefs | Functions
utsname.h File Reference

Functions used to provide information about the machine & OS. More...

Go to the source code of this file.

Classes

struct  utsname_t
 Holds information concerning the machine and the os. More...
 

Macros

#define SYS_LEN   257
 Maximum length of the string used by utsname.
 

Typedefs

typedef struct utsname_t utsname_t
 Holds information concerning the machine and the os.
 

Functions

int uname (utsname_t *buf)
 Returns system information in the structure pointed to by buf. More...
 

Detailed Description

Functions used to provide information about the machine & OS.

Function Documentation

◆ uname()

int uname ( utsname_t buf)

Returns system information in the structure pointed to by buf.

Parameters
bufBuffer where the info will be placed.
Returns
0 on success, a negative value on failure.