KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
POSIX

POSIX-standard system-level APIs More...

Files

file  limits.h
 Limits.
 
file  utsname.h
 Definitions for the uname() function.
 

Data Structures

struct  utsname
 Kernel name/information structure. More...
 

Macros

#define NAME_MAX   256
 Max filename length.
 
#define MAX_FN_LEN   NAME_MAX
 
#define PATH_MAX   4096
 Max path length.
 
#define SYMLOOP_MAX   16
 Max number of symlinks resolved.
 
#define _UTSNAME_LENGTH   64
 

Functions

int uname (struct utsname *n)
 Retrieve version and other similar information about the kernel.
 

Detailed Description

POSIX-standard system-level APIs

Macro Definition Documentation

◆ _UTSNAME_LENGTH

#define _UTSNAME_LENGTH   64

◆ MAX_FN_LEN

#define MAX_FN_LEN   NAME_MAX

◆ NAME_MAX

#define NAME_MAX   256

Max filename length.

◆ PATH_MAX

#define PATH_MAX   4096

Max path length.

◆ SYMLOOP_MAX

#define SYMLOOP_MAX   16

Max number of symlinks resolved.

Function Documentation

◆ uname()

int uname ( struct utsname * n)

Retrieve version and other similar information about the kernel.

This function retrieves information about the current version of the kernel that is running, storing it in the provided buffer.

Parameters
nThe buffer to store version information in.
Returns
0 on success, -1 on error (setting errno appropriately).