<div dir="ltr">I don't see any obvious issues with importing these. I was mainly<div>looking to make sure nothing disappeared that we might have</div><div>added over the years. I didn't spot anything.</div><div><br></div><div>--joel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 17, 2015 at 8:29 AM, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Required by new network stack.<br>
---<br>
cpukit/libcsupport/include/sys/filio.h | 20 +++++++++++++-------<br>
cpukit/libcsupport/include/sys/ioccom.h | 10 ----------<br>
2 files changed, 13 insertions(+), 17 deletions(-)<br>
<br>
diff --git a/cpukit/libcsupport/include/sys/filio.h b/cpukit/libcsupport/include/sys/filio.h<br>
index f1a703a..df1b6f4 100644<br>
--- a/cpukit/libcsupport/include/sys/filio.h<br>
+++ b/cpukit/libcsupport/include/sys/filio.h<br>
@@ -15,10 +15,6 @@<br>
* 2. Redistributions in binary form must reproduce the above copyright<br>
* notice, this list of conditions and the following disclaimer in the<br>
* documentation and/or other materials provided with the distribution.<br>
- * 3. All advertising materials mentioning features or use of this software<br>
- * must display the following acknowledgement:<br>
- * This product includes software developed by the University of<br>
- * California, Berkeley and its contributors.<br>
* 4. Neither the name of the University nor the names of its contributors<br>
* may be used to endorse or promote products derived from this software<br>
* without specific prior written permission.<br>
@@ -36,6 +32,7 @@<br>
* SUCH DAMAGE.<br>
*<br>
* @(#)filio.h 8.1 (Berkeley) 3/28/94<br>
+ * $FreeBSD r195191 2009-06-30T13:38:49Z$<br>
*/<br>
<br>
#ifndef _SYS_FILIO_H_<br>
@@ -43,8 +40,6 @@<br>
<br>
#include <sys/ioccom.h><br>
<br>
-/* RTEMS defines all of these in sys/ioccom.h */<br>
-#if 0<br>
/* Generic file-descriptor ioctl's. */<br>
#define FIOCLEX _IO('f', 1) /* set close on exec on fd */<br>
#define FIONCLEX _IO('f', 2) /* remove close on exec */<br>
@@ -53,6 +48,17 @@<br>
#define FIOASYNC _IOW('f', 125, int) /* set/clear async i/o */<br>
#define FIOSETOWN _IOW('f', 124, int) /* set owner */<br>
#define FIOGETOWN _IOR('f', 123, int) /* get owner */<br>
-#endif<br>
+#define FIODTYPE _IOR('f', 122, int) /* get d_flags type part */<br>
+#define FIOGETLBA _IOR('f', 121, int) /* get start blk # */<br>
+struct fiodgname_arg {<br>
+ int len;<br>
+ void *buf;<br>
+};<br>
+#define FIODGNAME _IOW('f', 120, struct fiodgname_arg) /* get dev. name */<br>
+#define FIONWRITE _IOR('f', 119, int) /* get # bytes (yet) to write */<br>
+#define FIONSPACE _IOR('f', 118, int) /* get space in send queue */<br>
+/* Handle lseek SEEK_DATA and SEEK_HOLE for holey file knowledge. */<br>
+#define FIOSEEKDATA _IOWR('f', 97, off_t) /* SEEK_DATA */<br>
+#define FIOSEEKHOLE _IOWR('f', 98, off_t) /* SEEK_HOLE */<br>
<br>
#endif /* !_SYS_FILIO_H_ */<br>
diff --git a/cpukit/libcsupport/include/sys/ioccom.h b/cpukit/libcsupport/include/sys/ioccom.h<br>
index d454328..1699fc9 100644<br>
--- a/cpukit/libcsupport/include/sys/ioccom.h<br>
+++ b/cpukit/libcsupport/include/sys/ioccom.h<br>
@@ -80,16 +80,6 @@ typedef uint32_t ioctl_command_t;<br>
#define RTEMS_IO_SNDWAKEUP 5<br>
#define RTEMS_IO_TCFLUSH 6<br>
<br>
-/* copied from libnetworking/sys/filio.h and commented out there */<br>
-/* Generic file-descriptor ioctl's. */<br>
-#define FIOCLEX _IO('f', 1) /* set close on exec on fd */<br>
-#define FIONCLEX _IO('f', 2) /* remove close on exec */<br>
-#define FIONREAD _IOR('f', 127, int) /* get # bytes to read */<br>
-#define FIONBIO _IOW('f', 126, int) /* set/clear non-blocking i/o */<br>
-#define FIOASYNC _IOW('f', 125, int) /* set/clear async i/o */<br>
-#define FIOSETOWN _IOW('f', 124, int) /* set owner */<br>
-#define FIOGETOWN _IOR('f', 123, int) /* get owner */<br>
-<br>
#ifdef _KERNEL<br>
<br>
#if defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD5) || \<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.4.5<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</font></span></blockquote></div><br></div>