added pause() (kernel support is lacking though)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14130 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -19,6 +19,7 @@ KernelMergeObject posix_unistd.o :
|
|||||||
mknod.c
|
mknod.c
|
||||||
mount.c
|
mount.c
|
||||||
open.c
|
open.c
|
||||||
|
pause.c
|
||||||
pipe.c
|
pipe.c
|
||||||
process.c
|
process.c
|
||||||
read.c
|
read.c
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2005, Haiku Project. All rights reserved.
|
||||||
|
* Distributed under the terms of the Haiku license.
|
||||||
|
*
|
||||||
|
* Author(s):
|
||||||
|
* Jérôme Duval
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <syscalls.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
int
|
||||||
|
pause()
|
||||||
|
{
|
||||||
|
sigset_t mask;
|
||||||
|
sigemptyset(&mask);
|
||||||
|
errno = _kern_sigsuspend(&mask);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user