about summary refs log tree commit diff
path: root/src/unistd/pause.c
blob: 56eb171e0ac48c46857d0f82a38bf697e0dabfea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <unistd.h>
#include <signal.h>
#include "syscall.h"
#include "libc.h"

int pause(void)
{
#ifdef SYS_pause
	return syscall_cp(SYS_pause);
#else
	return syscall_cp(SYS_ppoll, 0, 0, 0, 0);
#endif
}