mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-12 07:57:22 +00:00
2ac6b62df2
darcs-hash:20051006115416-ac50b-ab0a1be946f758cfdeaa5dfe172f417acb9b6e79.gz
36 lines
714 B
C
36 lines
714 B
C
/** \file signal.h
|
|
|
|
The library for various signal related issues
|
|
|
|
*/
|
|
|
|
/**
|
|
Get the integer signal value representing the specified signal, or
|
|
-1 of no signal was found
|
|
*/
|
|
int wcs2sig( const wchar_t *str );
|
|
|
|
/**
|
|
Get string representation of a signal
|
|
*/
|
|
const wchar_t *sig2wcs( int sig );
|
|
|
|
/**
|
|
Returns a description of the specified signal.
|
|
*/
|
|
const wchar_t *sig_description( int sig );
|
|
|
|
/**
|
|
Set all signal handlers to SIG_DFL
|
|
*/
|
|
void signal_reset_handlers();
|
|
|
|
/**
|
|
Set signal handlers to fish default handlers
|
|
*/
|
|
void signal_set_handlers();
|
|
|
|
/**
|
|
Tell fish to catch the specified signal and fire an event, instead of performing the default action
|
|
*/
|
|
void signal_handle( int sig, int do_handle );
|