minix/lib/other/telldir.c
2005-04-21 14:53:53 +00:00

17 lines
303 B
C
Executable file

/* telldir() Author: Kees J. Bot
* 24 Apr 1989
*/
#define nil 0
#include <lib.h>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
off_t telldir(DIR *dp)
/* Return the current read position in a directory. */
{
if (dp == nil) { errno= EBADF; return -1; }
return dp->_pos;
}