utsname

Contains information about the operating system, LibC, the calling NLM™, and the NetWare® server.

Service:General C Services

Syntax

  #include <sys/utsname.h>
  
  struct utsname
  {
     int    userspec;
     int    libmajor;
     int    libminor;
     int    librevision;
  
     int    major;
     int    minor;
     int    revision;
     int    reserved1;
  
     int    servicepack;
     int    netware_major;
     int    netware_minor;
     int    netware_revision;
  
     char   servername[64];
     char   clustername[64];
     char   languagename[32];
     char   altlanguagename[32];
  
     int    languageid;
     int    altlanguageid;
     int    codepage; 
     int    reserved2;
     int    reserved3[4];
  
     void  *nlmmodule;
     int    nlmmajor;
     int    nlmminor;
     int    nlmrevision;
     time_t nlmtimer;
     char  *nlmcommandline;
     size_t nlmmessagecount;
     char **nlmmessagetable;
     char   nlmname[36];
     char   nlmloadpath[256]; 
     char   nlmcopyright[256];
     char   nlmdescription[128];
     int    nlmloadflags;
     int    reserved4;
  
     char   release[16]; 
     char   version[16];
     char   sysname[16];
     char   machine[16];
     char   nodename[16];
  
     char   treename[96];
  
     void  *codeoffset;
     size_t codelength;
     void  *dataoffset;
     size_t datalength;
     int    reserved5[28];
  };
  

Fields

userspec

Contains information about the user. This field in untouched by the uname function.

libmajor

Contains the major version number of LibC.

libminor

Contains the minor version number of LibC.

librevision

Contains the revision number of LibC.

major

Contains the Novell® internal major number of the NetWare operating system. See the netware_major field for the product release number.

minor

Contains the Novell internal minor number of the NetWare operating system.See the netware_minor field for the product release number.

revision

Contains the Novell internal revision number of the NetWare operating system. See the netware_revision field for the product release number.

reserved1

Reserved.

servicepack

Contains the service pack number.

netware_major

Contains the major version number of the NetWare operating system for a product release.

netware_minor

Contains the minor version number of the NetWare operating system for a product release.

netware_revision

Contains the revision number of the NetWare operating system for a product release.

servername

Contains the name of the NetWare server.

clustername

Contains the NetWare cluster node name.

languagename

Contains the current language name for the NetWare server.

altlanguagename

Contains the current language name for the calling NLM.

languageid

Contains the current language identity for the NetWare server

altlanguageid

Contains the current language identity for the calling NLM when it differs from the operating system.

codepage

Contains the code page of the display for the NetWare server.

reserved2

Reserved.

reserved3

Reserved.

nlmmodule

Contains the module handle for the NLM.

nlmmajor

Contains the major version number of the calling NLM.

nlmminor

Contains the minor version number of the calling NLM.

nlmrevision

Contains the revision number of the calling NLM.

nlmtimer

Contains the date and time stamp in UTC for the calling NLM.

nlmcommandline

Contains the command line at startup for the calling NLM. Unless the caller was linked with libcpre.o (so that LibC performed start up for the caller's first thread), this field is always 0.

nlmmessagecount

Contains a count of the messages in the NLM.

nlmmessagetable

Contains a pointer to the message table in the NLM.

nlmname

Contains the name of the NLM.

nlmloadpath

Contains the path used to load the NLM.

nlmcopyright

Contains the copyright string for the NLM.

nlmdescription

Contains the description string for the NLM.

nlmloadflags

Contains a bit mask of the flags used to load the NLM. See Section 30.1, Load Options.

reserved4

Reserved.

release

Contains the release level of this implementation. This is a POSIX defined field.

version

Contains the version level of this release. This is a POSIX defined field.

sysname

Contains the name of the operating system. This is a POSIX defined field.

machine

Contains the hardware type the NetWare server is running on. This is a POSIX defined field.

nodename

Contains the name of this node within the network. This is a POSIX defined field.

treename

Contains the name of the NDS tree in which the NetWare server is a node.

codeoffset

Contains the starting address of the code for the NLM.

codelength

Contains the length of the code segment.

dataoffset

Contains the starting address of the global or static data in the NLM.

datalength

Contains the length of the global or static data used by the NLM.

reserved5

Reserved for future use.