minix/lib/other/telldir.c

17 lines
303 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
/* 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;
}