math: use 0x1p-120f and 0x1p120f for tiny and huge values
[musl] / src / dirent / seekdir.c
1 #include <dirent.h>
2 #include <unistd.h>
3 #include "__dirent.h"
4 #include "libc.h"
5
6 void seekdir(DIR *dir, long off)
7 {
8         LOCK(dir->lock);
9         dir->tell = lseek(dir->fd, off, SEEK_SET);
10         dir->buf_pos = dir->buf_end = 0;
11         UNLOCK(dir->lock);
12 }