source: azure_iot_hub/trunk/musl-1.1.18/src/dirent/seekdir.c@ 388

Last change on this file since 388 was 388, checked in by coas-nagasima, 5 years ago

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-csrc
File size: 234 bytes
Line 
1#include <dirent.h>
2#include <unistd.h>
3#include "__dirent.h"
4#include "libc.h"
5
6void 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}
Note: See TracBrowser for help on using the repository browser.