Deleted Added
full compact
thr_sig.c (97204) thr_sig.c (102590)
1/*
2 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
1/*
2 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $FreeBSD: head/lib/libkse/thread/thr_sig.c 97204 2002-05-24 04:32:28Z deischen $
32 * $FreeBSD: head/lib/libkse/thread/thr_sig.c 102590 2002-08-29 23:06:07Z deischen $
33 */
34#include <sys/param.h>
35#include <sys/types.h>
36#include <sys/signalvar.h>
37#include <signal.h>
38#include <fcntl.h>
39#include <unistd.h>
40#include <setjmp.h>

--- 490 unchanged lines hidden (view full) ---

531 */
532 for (i = 0; i < _thread_dtablesize; i++) {
533 /* Check if this file is used: */
534 if (_thread_fd_table[i] != NULL) {
535 /*
536 * Set the file descriptor to non-blocking:
537 */
538 __sys_fcntl(i, F_SETFL,
33 */
34#include <sys/param.h>
35#include <sys/types.h>
36#include <sys/signalvar.h>
37#include <signal.h>
38#include <fcntl.h>
39#include <unistd.h>
40#include <setjmp.h>

--- 490 unchanged lines hidden (view full) ---

531 */
532 for (i = 0; i < _thread_dtablesize; i++) {
533 /* Check if this file is used: */
534 if (_thread_fd_table[i] != NULL) {
535 /*
536 * Set the file descriptor to non-blocking:
537 */
538 __sys_fcntl(i, F_SETFL,
539 _thread_fd_table[i]->flags | O_NONBLOCK);
539 _thread_fd_getflags(i) | O_NONBLOCK);
540 }
541 }
542 /*
543 * Enter a loop to wake up all threads waiting
544 * for a process to complete:
545 */
546 for (pthread = TAILQ_FIRST(&_waitingq);
547 pthread != NULL; pthread = pthread_next) {

--- 578 unchanged lines hidden ---
540 }
541 }
542 /*
543 * Enter a loop to wake up all threads waiting
544 * for a process to complete:
545 */
546 for (pthread = TAILQ_FIRST(&_waitingq);
547 pthread != NULL; pthread = pthread_next) {

--- 578 unchanged lines hidden ---