GCC Code Coverage Report | |||||||||||||||||||||
|
|||||||||||||||||||||
Line | Branch | Exec | Source |
1 |
/* $OpenBSD: pause.c,v 1.6 2005/08/08 08:05:34 espie Exp $ */ |
||
2 |
|||
3 |
/* |
||
4 |
* Written by Todd C. Miller <Todd.Miller@courtesan.com> |
||
5 |
* Public domain. |
||
6 |
*/ |
||
7 |
|||
8 |
#include <signal.h> |
||
9 |
#include <unistd.h> |
||
10 |
|||
11 |
/* |
||
12 |
* Backwards compatible pause(3). |
||
13 |
*/ |
||
14 |
int |
||
15 |
pause(void) |
||
16 |
{ |
||
17 |
sigset_t mask; |
||
18 |
|||
19 |
return (sigprocmask(SIG_BLOCK, NULL, &mask) ? -1 : sigsuspend(&mask)); |
||
20 |
} |
Generated by: GCOVR (Version 3.3) |