Deleted Added
full compact
filedesc.h (41086) filedesc.h (41087)
1/*
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. 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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)filedesc.h 8.1 (Berkeley) 6/2/93
1/*
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. 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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)filedesc.h 8.1 (Berkeley) 6/2/93
34 * $Id: filedesc.h,v 1.13 1997/12/05 18:58:10 bde Exp $
34 * $Id: filedesc.h,v 1.14 1998/11/11 10:04:12 truckman Exp $
35 */
36
37#ifndef _SYS_FILEDESC_H_
38#define _SYS_FILEDESC_H_
39
40#include <sys/queue.h>
41
42/*

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

97 * This structure that holds the information needed to send a SIGIO or
98 * a SIGURG signal to a process or process group when new data arrives
99 * on a device or socket. The structure is placed on an SLIST belonging
100 * to the proc or pgrp so that the entire list may be revoked when the
101 * process exits or the process group disappears.
102 */
103struct sigio {
104 union {
35 */
36
37#ifndef _SYS_FILEDESC_H_
38#define _SYS_FILEDESC_H_
39
40#include <sys/queue.h>
41
42/*

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

97 * This structure that holds the information needed to send a SIGIO or
98 * a SIGURG signal to a process or process group when new data arrives
99 * on a device or socket. The structure is placed on an SLIST belonging
100 * to the proc or pgrp so that the entire list may be revoked when the
101 * process exits or the process group disappears.
102 */
103struct sigio {
104 union {
105 struct proc *siu_proc; /* Process to receive SIGIO/SIGURG */
106 struct pgrp *siu_pgrp; /* Process group to receive ... */
105 struct proc *siu_proc; /* process to receive SIGIO/SIGURG */
106 struct pgrp *siu_pgrp; /* process group to receive ... */
107 } sio_u;
108 SLIST_ENTRY(sigio) sio_pgsigio; /* sigio's for process or group */
109 struct sigio **sio_myref; /* location of the pointer that holds
110 * the reference to this structure */
107 } sio_u;
108 SLIST_ENTRY(sigio) sio_pgsigio; /* sigio's for process or group */
109 struct sigio **sio_myref; /* location of the pointer that holds
110 * the reference to this structure */
111 struct ucred *sio_ucred; /* Current credentials */
112 uid_t sio_ruid; /* Real user id */
111 struct ucred *sio_ucred; /* current credentials */
112 uid_t sio_ruid; /* real user id */
113 pid_t sio_pgid; /* pgid for signals */
114};
115#define sio_proc sio_u.siu_proc
116#define sio_pgrp sio_u.siu_pgrp
117
118SLIST_HEAD(sigiolst, sigio);
119
120#ifdef KERNEL

--- 24 unchanged lines hidden ---
113 pid_t sio_pgid; /* pgid for signals */
114};
115#define sio_proc sio_u.siu_proc
116#define sio_pgrp sio_u.siu_pgrp
117
118SLIST_HEAD(sigiolst, sigio);
119
120#ifdef KERNEL

--- 24 unchanged lines hidden ---