KERNSTATUS(2)                    System Calls                    KERNSTATUS(2)




NAME

       kernStatus, kernVersion - detect presence and version of GNO kernel


SYNOPSIS

       #include <gno/gno.h>

       int kernStatus (void);
       int kernVersion (void);


DESCRIPTION

       kernStatus  can  be  used to determine whether or not the GNO kernel is
       active.  You may use this function to abort programs that use  GNO-spe‐
       cific features, or to allow them to enable non-GNO environment-specific
       code.

       If the GNO kernel is not active, the global variable _toolErr  will  be
       non-zero  on  return  from  kernStatus.   This value is also accessible
       through the function toolerror(3).  C programmers  may  prefer  to  use
       needsgno(3) for brevity.

       kernVersion returns the kernel version in the same fashion as the stan‐
       dard IIgs ToolBox calls.  For example, a return value of  0x0201  indi‐
       cates a version of 2.1.

       Note that both of these functions are inline system calls; you must in‐
       clude the <gno/gno.h> header or they will wind up as  being  unresolved
       symbols when your program is linked.


SEE ALSO

       needsgno(2), toolerror(3), the GNO Kernel Reference Manual.



GNO                             29 January 1997                  KERNSTATUS(2)

Man(1) output converted with man2html