summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/telldir.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-10-22 16:15:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-10-22 16:15:40 +0000
commitd3b34d259e2c07a6804cb7b87d06288493424e22 (patch)
tree80cb58a345e3d47df75a6e4780bf5384c1a8e9b9 /c/src/lib/libc/telldir.c
parentCorrections from Jennifer and Jeff plus additions to the initialization (diff)
downloadrtems-d3b34d259e2c07a6804cb7b87d06288493424e22.tar.bz2
Changed all of these to stubs.
Diffstat (limited to 'c/src/lib/libc/telldir.c')
-rw-r--r--c/src/lib/libc/telldir.c38
1 files changed, 3 insertions, 35 deletions
diff --git a/c/src/lib/libc/telldir.c b/c/src/lib/libc/telldir.c
index d52819cddd..eee8d925ec 100644
--- a/c/src/lib/libc/telldir.c
+++ b/c/src/lib/libc/telldir.c
@@ -1,14 +1,6 @@
/*
* telldir() - XXX
*
- * COPYRIGHT (c) 1989-1998.
- * On-Line Applications Research Corporation (OAR).
- * Copyright assigned to U.S. Government, 1994.
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.OARcorp.com/rtems/license.html.
- *
* $Id$
*/
@@ -17,39 +9,15 @@
#include <dirent.h>
#include <stdlib.h>
#include <unistd.h>
+#include <errno.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(
DIR *dirp
)
{
- rtems_libio_t *iop;
-
- /*
- * Get the file control block structure associated with the file descriptor
- */
-
- iop = rtems_libio_iop( dirp->dd_fd );
-
- if (iop == NULL)
- assert(0);
-
- return (long)( iop->offset );
+ errno = ENOSYS;
+ return -1;
}