From ed22941d3e10e5723ead8381d79b55ba8a36981c Mon Sep 17 00:00:00 2001 From: eteo Date: Wed, 16 Jan 2008 15:41:28 +0000 Subject: 2008-01-16 Eugene Teo * stapfuncs.5.in: Document signal.stp tapset functions. 2008-01-16 Eugene Teo * signal.stp (get_sa_flags, get_sa_handler): New functions to return addresses of sa_flags and sa_handler of struct k_sigaction. (sigset_mask_str): New function. Returns a string containing the set of signals to be blocked when executing the signal handler. (is_sig_blocked): New function. Checks task_struct->blocked signal mask for signals that are currently blocked. (signal_str): New function. Translates a signal number. (sa_flags_str): New function. Translates the sa_flags. (sa_handler_str): New function. Returns the signal action or handler associated to the signal. 2008-01-16 Eugene Teo * buildok/signal-embedded.stp: Add all new embedded C functions in signal. --- stapfuncs.5.in | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'stapfuncs.5.in') diff --git a/stapfuncs.5.in b/stapfuncs.5.in index 3802117a..85a00b37 100644 --- a/stapfuncs.5.in +++ b/stapfuncs.5.in @@ -444,6 +444,29 @@ Convert from host to network byte order, 32-bit. htons:long (x:long) Convert from host to network byte order, 16-bit. +.SS SIGNAL +.TP +get_sa_flags:long (act:long) +Returns the numeric value of sa_flags. +.TP +get_sa_handler:long (act:long) +Returns the numeric value of sa_handler. +.TP +sigset_mask_str:string (mask:long) +Returns the string representation of the sigset sa_mask. +.TP +is_sig_blocked:long (task:long, sig:long) +Returns 1 if the signal is currently blocked, or 0 if it is not. +.TP +sa_flags_str:string (sa_flags:long) +Returns the string representation of sa_flags. +.TP +sa_handler_str(handler) +Returns the string representation of sa_handler. If it is not SIG_DFL, SIG_IGN +or SIG_ERR, it will return the address of the handler. +.TP +signal_str(num) +Returns the string representation of the given signal number. .SH FILES .nh -- cgit