sl@0: /** @file ../include/sys/utsname.h sl@0: @internalComponent sl@0: */ sl@0: sl@0: /** @fn uname(struct utsname *buf) sl@0: @param buf sl@0: @return Upon successful completion, a non-negative value is returned. Otherwise, sl@0: -1 is returned and errno is set to indicate the error. sl@0: sl@0: @code sl@0: sysname Name of the operating system implementation. sl@0: nodename Network name of this machine. sl@0: release Release level of the operating system. sl@0: version Version level of the operating system. sl@0: machine Machine hardware platform. sl@0: sl@0: @endcode sl@0: The uname function stores NULL -terminated strings of information identifying the current system sl@0: into the structure referenced by name . sl@0: sl@0: The utsname structure is defined in the \#include \ header file, and contains sl@0: the following members: sysname Name of the operating system implementation. nodename Network name of this machine. release Release level of the operating system. version Version level of the operating system. machine Machine hardware platform. sl@0: sl@0: Examples: sl@0: @code sl@0: #include sl@0: #include sl@0: int test_uname() sl@0: { sl@0: int retVal; sl@0: struct utsname name ; sl@0: retVal = uname( &name; ); sl@0: if( !retVal ) sl@0: { sl@0: printf("Sysname: %s sl@0: Nodename:%s sl@0: Release: sl@0: %s sl@0: Version: %s sl@0: Machine:%s sl@0: "); sl@0: printf("uname passed"); sl@0: return 0; sl@0: } sl@0: else sl@0: { sl@0: printf("failed"); sl@0: return -1; sl@0: } sl@0: } sl@0: sl@0: @endcode sl@0: Output sl@0: @code sl@0: Sysname: Symbian sl@0: Nodename: localhost sl@0: Release: sl@0: Version: 2:0:1055 sl@0: Machine: sl@0: uname passed sl@0: sl@0: @endcode sl@0: sl@0: sl@0: @publishedAll sl@0: @externallyDefinedApi sl@0: */ sl@0: sl@0: /** @struct utsname sl@0: sl@0: Contains the following members, sl@0: sl@0: @publishedAll sl@0: @externallyDefinedApi sl@0: */ sl@0: sl@0: /** @var utsname::sysname sl@0: Name of this OS. sl@0: */ sl@0: sl@0: /** @var utsname::nodename sl@0: Name of this network node. sl@0: */ sl@0: sl@0: /** @var utsname::release sl@0: Release level. sl@0: */ sl@0: sl@0: /** @var utsname::version sl@0: Version level. sl@0: */ sl@0: sl@0: /** @var utsname::machine sl@0: Hardware type. sl@0: */ sl@0: