summaryrefslogtreecommitdiffstats
path: root/sys/sys/selinfo.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-03-16 12:50:02 +0000
committerbde <bde@FreeBSD.org>2002-03-16 12:50:02 +0000
commit45a6db344a5bf3a5260d08cf0f87615585bc6a7f (patch)
tree67581097561eb93d7cc8ba1c183a14db5a6be7ba /sys/sys/selinfo.h
parent6c63fbbb0ce1ddb7ddd300846dc26ee0cb394c60 (diff)
downloadFreeBSD-src-45a6db344a5bf3a5260d08cf0f87615585bc6a7f.zip
FreeBSD-src-45a6db344a5bf3a5260d08cf0f87615585bc6a7f.tar.gz
Fixed some style bugs:
- 2 redundant forward declarations of "struct thread" - missing function parameter names in prototypes - misformatting
Diffstat (limited to 'sys/sys/selinfo.h')
-rw-r--r--sys/sys/selinfo.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/sys/selinfo.h b/sys/sys/selinfo.h
index 318681f..e51f645 100644
--- a/sys/sys/selinfo.h
+++ b/sys/sys/selinfo.h
@@ -37,9 +37,8 @@
#ifndef _SYS_SELINFO_H_
#define _SYS_SELINFO_H_
-#include <sys/event.h> /* for struct klist */
+#include <sys/event.h> /* for struct klist */
-struct thread;
/*
* Used to maintain information about processes that wish to be
* notified when I/O becomes possible.
@@ -52,16 +51,13 @@ struct selinfo {
};
#define SI_COLL 0x0001 /* collision occurred */
-#define SEL_WAITING(si) \
+#define SEL_WAITING(si) \
((si)->si_thread != NULL || ((si)->si_flags & SI_COLL) != 0)
#ifdef _KERNEL
-struct thread;
-
-void clear_selinfo_list(struct thread *);
-void selrecord __P((struct thread *selector, struct selinfo *));
-void selwakeup __P((struct selinfo *));
-
+void clear_selinfo_list(struct thread *td);
+void selrecord __P((struct thread *selector, struct selinfo *sip));
+void selwakeup __P((struct selinfo *sip));
#endif
#endif /* !_SYS_SELINFO_H_ */
OpenPOWER on IntegriCloud