summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/telldir.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/telldir.c')
-rw-r--r--cpukit/libcsupport/src/telldir.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/telldir.c b/cpukit/libcsupport/src/telldir.c
index 9825f04939..d52819cddd 100644
--- a/cpukit/libcsupport/src/telldir.c
+++ b/cpukit/libcsupport/src/telldir.c
@@ -18,7 +18,22 @@
#include <stdlib.h>
#include <unistd.h>
-#include "libio_.h"
+#include <rtems.h>
+#include "libio.h"
+
+/*
+ * This is technically a violation of boundaries but will be fixed
+ * in a future release when file system code is in place. This
+ * will be in libio_.h then.
+ */
+
+extern unsigned32 rtems_libio_number_iops;
+extern rtems_libio_t *rtems_libio_iops;
+extern rtems_libio_t *rtems_libio_last_iop;
+
+#define rtems_libio_iop(fd) \
+ ((((unsigned32)(fd)) < rtems_libio_number_iops) ? \
+ &rtems_libio_iops[fd] : 0)
long telldir(