source: trunk/minix/lib/other/telldir.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 303 bytes
RevLine 
[9]1/* telldir() Author: Kees J. Bot
2 * 24 Apr 1989
3 */
4#define nil 0
5#include <lib.h>
6#include <sys/types.h>
7#include <dirent.h>
8#include <errno.h>
9
10off_t telldir(DIR *dp)
11/* Return the current read position in a directory. */
12{
13 if (dp == nil) { errno= EBADF; return -1; }
14
15 return dp->_pos;
16}
Note: See TracBrowser for help on using the repository browser.