Main Page | Modules | Data Structures | File List | Data Fields | Globals

Initialization and utilities
[Core module]


Functions

int fsf_init ()
int fsf_strerror (int error, char *message, size_t size)

Function Documentation

int fsf_init  ) 
 

We cannot call any fsf functions before fsf_init. After calling fsf_init, the main will be executing in the background. Then, it can do the negotiations, create the threads and, if needed, activate them via some user-specified synchronization mechanism. It may also create a contract for itself. The second time this function is called it fails.

Return values:
0 if the system is initialized
FSF_ERR_SYSTEM_ALREADY_INITIALIZED if the function has already been called before
others It may also return any of the errors that may be returned by the underlying operating system primitives required to perform the FSF system start up

int fsf_strerror int  error,
char *  message,
size_t  size
 

This function converts an error code to an error message that is stored in the buffer starting at the location pointed to by message. The size of this buffer is specified by the size argument. If the error message is longer than size-1, it is truncated to that length. Regardless of whether the message is truncated or not, a final zero character that marks the end of the string is stored in the buffer. The function fails if the error code passed does not correspond to any of the fsf error codes.

Return values:
FSF_ERR_BAD_ARGUMENT error is not a valid value


Generated on Tue Apr 5 17:01:26 2005 for FSF by doxygen 1.3.4