| 1234567891011121314151617181920212223242526272829303132 | /* vi: set sw=4 ts=4: *//* * pause() for uClibc * * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */#define __need_NULL#include <stddef.h>#include <unistd.h>#include <signal.h>#include <cancel.h>int#ifdef __LINUXTHREADS_OLD__weak_function#endifpause(void){	sigset_t set;	/*__sigemptyset (&set); - why? */	sigprocmask (SIG_BLOCK, NULL, &set);	/* pause is a cancellation point, but so is sigsuspend.	   So no need for anything special here.  */	return sigsuspend(&set);}lt_strong_alias(pause)LIBC_CANCEL_HANDLED ();		/* sigsuspend handles our cancellation.  */
 |