thr_info.c (50476) | thr_info.c (51794) |
---|---|
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_info.c 50476 1999-08-28 00:22:10Z peter $ | 32 * $FreeBSD: head/lib/libkse/thread/thr_info.c 51794 1999-09-29 15:18:46Z marcel $ |
33 */ 34#include <stdio.h> 35#include <fcntl.h> 36#include <string.h> 37#include <unistd.h> 38#ifdef _THREAD_SAFE 39#include <pthread.h> 40#include <errno.h> --- 110 unchanged lines hidden (view full) --- 151 pthread->data.fd.branch); 152 _thread_sys_write(fd, s, strlen(s)); 153 snprintf(s, sizeof(s), "owner %pr/%pw\n", 154 _thread_fd_table[pthread->data.fd.fd]->r_owner, 155 _thread_fd_table[pthread->data.fd.fd]->w_owner); 156 _thread_sys_write(fd, s, strlen(s)); 157 break; 158 case PS_SIGWAIT: | 33 */ 34#include <stdio.h> 35#include <fcntl.h> 36#include <string.h> 37#include <unistd.h> 38#ifdef _THREAD_SAFE 39#include <pthread.h> 40#include <errno.h> --- 110 unchanged lines hidden (view full) --- 151 pthread->data.fd.branch); 152 _thread_sys_write(fd, s, strlen(s)); 153 snprintf(s, sizeof(s), "owner %pr/%pw\n", 154 _thread_fd_table[pthread->data.fd.fd]->r_owner, 155 _thread_fd_table[pthread->data.fd.fd]->w_owner); 156 _thread_sys_write(fd, s, strlen(s)); 157 break; 158 case PS_SIGWAIT: |
159 snprintf(s, sizeof(s), "sigmask 0x%08lx\n", 160 (unsigned long)pthread->sigmask); | 159 snprintf(s, sizeof(s), "sigmask (hi)"); |
161 _thread_sys_write(fd, s, strlen(s)); | 160 _thread_sys_write(fd, s, strlen(s)); |
161 for (i = _SIG_WORDS - 1; i >= 0; i--) { 162 snprintf(s, sizeof(s), "%08x\n", 163 pthread->sigmask.__bits[i]); 164 _thread_sys_write(fd, s, strlen(s)); 165 } 166 snprintf(s, sizeof(s), "(lo)\n"); 167 _thread_sys_write(fd, s, strlen(s)); |
|
162 break; 163 164 /* 165 * Trap other states that are not explicitly 166 * coded to dump information: 167 */ 168 default: 169 /* Nothing to do here. */ --- 136 unchanged lines hidden --- | 168 break; 169 170 /* 171 * Trap other states that are not explicitly 172 * coded to dump information: 173 */ 174 default: 175 /* Nothing to do here. */ --- 136 unchanged lines hidden --- |