next up previous contents index
Next: 11.2.2 oskit_clientos_sethostname: Set the Up: 11.2 Initialization Previous: 11.2 Initialization

11.2.1 oskit_clientos_init, oskit_clientos_init_pthreads: Initialize the Client Operating System Library

 

SYNOPSIS

#include <oskit/clientos.h>

oskit_error_t oskit_clientos_init(void);
oskit_error_t oskit_clientos_init_pthreads(void);

DESCRIPTION

Initialize the Client Operating System library. This routine must be called immediately in the application's main program. In multi threaded applications, use the oskit_clientos_init_pthreads interface instead. As an example, consider the trivial ``Hello World'' program:
        void main()
        {
                oskit_clientos_init();

                printf("Hello, World\n");
        }

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.

Several convenience functions are exported from the clientos library that make it easy to initialize the oskit_libcenv object as the application continues to initialize devices and interfaces. They are:



Utah Flux Research Group