Returns the requested information about the system or the NLM.
#include <sys/utsname.h> int uname2 ( void *handle, struct utsname *info, unsigned long bits);
(IN) Points to a handle for the NLM which you are requesting information. If set to NULL, only the NLM information that is the same for all NLM applications is returned, at most: UNAME_LIBVERSION, UNAME_FSVERSION, UNAME_NETWAREVERSION, UNAME_SERVERNAME, UNAME_CLUSTERNAME, UNAME_POSIXFIELDS, UNAME_LANGINFO, UNAME_NDSTREENAME.
(OUT) Points to a structure which contains the requested information.
(IN) Contains a bit mask that specifies the requested information. The following flags can be ORed together to request that specific fields in the utsname structure return with data.
If successful, returns 0. In a successful return if the information is unavailable, the affected field will be 0, NULL, or zero-length.
If unsuccessful, returns a non-zero error code.
The uname2 function returns the requested information about the operating system, LibC, the NLM, or the NetWare server. For a description of the fields, see the utsname structure.
The uname2 function has the following advantages over the uname function:
The information returned can be restricted to a few fields, thus saving time by not retrieving unneeded information.
The information can be returned about an NLM other than the calling NLM. Use the findnlmhandle function to obtain an NLM handle.