[PATCH] sys/event.h: Use rtems_libio_t

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jun 24 06:34:09 UTC 2022


Make it explicit that kqueue uses rtems_libio_t.

Update #4475.
---
 cpukit/include/sys/event.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/cpukit/include/sys/event.h b/cpukit/include/sys/event.h
index c64db98b95..6c5666030e 100644
--- a/cpukit/include/sys/event.h
+++ b/cpukit/include/sys/event.h
@@ -33,6 +33,9 @@
 
 #include <sys/_types.h>
 #include <sys/queue.h>
+#ifdef __rtems__
+struct rtems_libio_tt;
+#endif /* __rtems__ */
 
 #define EVFILT_READ		(-1)
 #define EVFILT_WRITE		(-2)
@@ -300,7 +303,11 @@ struct knote {
 	int			kn_sfflags;	/* saved filter flags */
 	int64_t			kn_sdata;	/* saved data field */
 	union {
+#ifndef __rtems__
 		struct		file *p_fp;	/* file data pointer */
+#else /* __rtems__ */
+		struct		rtems_libio_tt *p_fp;
+#endif /* __rtems__ */
 		struct		proc *p_proc;	/* proc pointer */
 		struct		kaiocb *p_aio;	/* AIO job pointer */
 		struct		aioliojob *p_lio;	/* LIO job pointer */
-- 
2.35.3



More information about the devel mailing list