diff --git a/src/system/libroot/posix/unistd/Jamfile b/src/system/libroot/posix/unistd/Jamfile index 618471a1dd..6ce2082b60 100644 --- a/src/system/libroot/posix/unistd/Jamfile +++ b/src/system/libroot/posix/unistd/Jamfile @@ -19,6 +19,7 @@ KernelMergeObject posix_unistd.o : mknod.c mount.c open.c + pause.c pipe.c process.c read.c diff --git a/src/system/libroot/posix/unistd/pause.c b/src/system/libroot/posix/unistd/pause.c new file mode 100644 index 0000000000..73e9e26f10 --- /dev/null +++ b/src/system/libroot/posix/unistd/pause.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 +#include +#include +#include + +int +pause() +{ + sigset_t mask; + sigemptyset(&mask); + errno = _kern_sigsuspend(&mask); + return -1; +} +