diff options
-rw-r--r-- | doc/man3/usctest.3 | 17 | ||||
-rw-r--r-- | include/usctest.h | 20 |
2 files changed, 6 insertions, 31 deletions
diff --git a/doc/man3/usctest.3 b/doc/man3/usctest.3 index c3a838817..df3c5ad12 100644 --- a/doc/man3/usctest.3 +++ b/doc/man3/usctest.3 @@ -45,8 +45,6 @@ char *\fBparse_opts(\fI...\fB)\fR .br \fBTEST_PAUSE\fR .br -\fBTEST_PAUSEF(\fIhand\fB)\fR -.br \fBTEST(\fIsyscall\fB)\fR .br .\"\fBTEST_CALLER(\fIsyscall\fB, \fIpid\fB)\fR @@ -77,11 +75,6 @@ The \fBTEST_PAUSE\fR macro checks if the global variable STD_PAUSE is set. If s pauses for a SIGUSR1 before continuing execution. The signal handler used does nothing. After the signal is processed, the previous action is replaced for SIGUSR1. .sp -The \fBTEST_PAUSEF(\fIhand\fB)\fR macro checks if the global variable STD_PAUSE is set. If so, it -pauses for a SIGUSR1 before continuing execution. The \fIhand\fR argument is a function to be used -to handle the SIGUSR1 signal when it is received. -After the signal is processed, the previous action is replaced for SIGUSR1. -.sp The \fBTEST(\fIsyscall\fB)\fR macro executes (\fIsyscall\fR) and times its execution. It saves the max time, min time, accumulated time, and execution count, if STD_TIMING_ON is set. @@ -163,7 +156,9 @@ int main(int argc, char *argv[]) parse_opts(3). .SH "RETURN VALUES" -The TEST_LOOPING macro evaluates to TRUE (1) or FALSE (0), and is intended for use in while or -for loops. The TEST macro places the return value from \fIsyscall\fR in the global variable TEST_RETURN -and the errno in the global variable TEST_ERRNO. The \fBTEST_PAUSE\fR, \fBTEST_PAUSEF\fR, -\fBTEST_CLEANUP\fR, \fBTEST_ERROR_LOG\fR, and \fBTEST_EXP_ENOS\fR macros do not have any return values. +The TEST_LOOPING macro evaluates to TRUE (1) or FALSE (0), and is intended for +use in while or for loops. The TEST macro places the return value from +\fIsyscall\fR in the global variable TEST_RETURN and the errno in the global +variable TEST_ERRNO. The \fBTEST_PAUSE\fR, \fBTEST_CLEANUP\fR, +\fBTEST_ERROR_LOG\fR, and \fBTEST_EXP_ENOS\fR macros do not have any return +values. diff --git a/include/usctest.h b/include/usctest.h index d91ea3b22..67ccb5721 100644 --- a/include/usctest.h +++ b/include/usctest.h @@ -103,10 +103,8 @@ struct tblock { ***********************************************************************/ extern struct tblock tblock; extern void STD_go(); -extern int (*_TMP_FUNC)(void); extern void STD_opts_help(); - /*********************************************************************** * TEST: calls a system call * @@ -159,24 +157,6 @@ do { \ } while (0) /*********************************************************************** - * TEST_PAUSEF: Pause for SIGUSR1 if the pause flag is set. - * Set the user specified function as the interrupt - * handler instead of "STD_go" - * - * parameters: - * none - * - ***********************************************************************/ -#define TEST_PAUSEF(HANDLER) \ -do { \ - if (STD_PAUSE) { \ - _TMP_FUNC = (int (*)())signal(SIGUSR1, HANDLER); \ - pause(); \ - signal(SIGUSR1, (void (*)())_TMP_FUNC); \ - } \ -} while (0) - -/*********************************************************************** * TEST_PAUSE: Pause for SIGUSR1 if the pause flag is set. * Just continue when signal comes in. * |