next up previous contents index
Next: 11.3.4 getconsolesetconsole: Get Up: 11.3 C Library Environment Previous: 11.3.2 gethostnamesethostname: Get

11.3.3 exit, setexit: Get and Set the system hostname

 

SYNOPSIS

#include <oskit/com/libcenv.h>

void oskit_libcenv_exit(oskit_libcenv_t *c, oskit_u32_t status);
oskit_error_t oskit_libcenv_setexit(oskit_libcenv_t *c, void (*exitfunc)(int));

DESCRIPTION

Call (or set) the exit function for the application. This function is default to the OSKit kernel exit routine, which causes a reboot.

PARAMETERS

c
The oskit_libcenv object to operate on.
status
The exit value.
exitfunc
The new exit function.

RETURNS

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



Utah Flux Research Group