BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kexit_handler - adds an kexit handler

LIBRARY CALL

int kexit_handler(
   kfunc_void handler,
   kaddr      client_data)

INPUT

OUTPUT

none

RETURN VALUE

TRUE on success, FALSE on failure

DESCRIPTION

kexit_handler adds an handler so that upon call of kexit(), the handler is called. kexit_handler() can be called several times, in which case the termination handlers will be called in reverse order of their instantiation. The handlers should be declared as follows:

void handler( int status, kaddr client_data)

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/ktransport.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.