uname - get name of current PARASITE system


#include <utsname_p.h>

int uname(name)
struct utsname *name;


uname stores information identifying the current PARASITE system in the structure pointed to by name.

uname uses the structure defined in utsname_p.h:

	struct utsname {
		char	sysname[9];
		char	nodename[9];
		char	release[9];
		char	version[9];
	extern struct utsname utsname;
uname returns a null-terminated character string naming the current PARASITE system in the character array sysname. Similarly, nodename contains the name that the system is know by on a communications network. release and version futher identify the PARASITE system.

uname will fail if name points to an invalid address. [EFAULT]


Upon successful completion, a non-negative value is returned. Otherwise, -1 is returned and errno is set to indicate the error.