aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/filedesc.h
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2003-01-01 01:56:19 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2003-01-01 01:56:19 +0000
commit13438f6823e991fe0c5616bc3a6f766a0a86c210 (patch)
treeebb22b0d8030959ee26f9f429f2729208d65ac89 /sys/sys/filedesc.h
parent4f5a0588eee9daf5497a6c50536f0b3ebbc8b88a (diff)
downloadsrc-13438f6823e991fe0c5616bc3a6f766a0a86c210.tar.gz
src-13438f6823e991fe0c5616bc3a6f766a0a86c210.zip
When compiling the kernel do not implicitly include filedesc.h from proc.h,
this was causing filedesc work to be very painful. In order to make this work split out sigio definitions to thier own header (sigio.h) which is included from proc.h for the time being.
Notes
Notes: svn path=/head/; revision=108524
Diffstat (limited to 'sys/sys/filedesc.h')
-rw-r--r--sys/sys/filedesc.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h
index 254540c4304b..a44281b1c584 100644
--- a/sys/sys/filedesc.h
+++ b/sys/sys/filedesc.h
@@ -104,32 +104,6 @@ struct filedesc0 {
*/
#define OFILESIZE (sizeof(struct file *) + sizeof(char))
-/*
- * This structure holds the information needed to send a SIGIO or
- * a SIGURG signal to a process or process group when new data arrives
- * on a device or socket. The structure is placed on an SLIST belonging
- * to the proc or pgrp so that the entire list may be revoked when the
- * process exits or the process group disappears.
- *
- * (c) const
- * (pg) locked by either the process or process group lock
- */
-struct sigio {
- union {
- struct proc *siu_proc; /* (c) process to receive SIGIO/SIGURG */
- struct pgrp *siu_pgrp; /* (c) process group to receive ... */
- } sio_u;
- SLIST_ENTRY(sigio) sio_pgsigio; /* (pg) sigio's for process or group */
- struct sigio **sio_myref; /* (c) location of the pointer that holds
- * the reference to this structure */
- struct ucred *sio_ucred; /* (c) current credentials */
- pid_t sio_pgid; /* (c) pgid for signals */
-};
-#define sio_proc sio_u.siu_proc
-#define sio_pgrp sio_u.siu_pgrp
-
-SLIST_HEAD(sigiolst, sigio);
-
#ifdef _KERNEL
#define FILEDESC_LOCK_DESC "filedesc structure"
@@ -154,10 +128,6 @@ struct filedesc *fdinit(struct filedesc *fdp);
struct filedesc *fdshare(struct filedesc *fdp);
void ffree(struct file *fp);
static __inline struct file * fget_locked(struct filedesc *fdp, int fd);
-pid_t fgetown(struct sigio **sigiop);
-int fsetown(pid_t pgid, struct sigio **sigiop);
-void funsetown(struct sigio **sigiop);
-void funsetownlst(struct sigiolst *sigiolst);
int getvnode(struct filedesc *fdp, int fd, struct file **fpp);
void setugidsafety(struct thread *td);