source: azure_iot_hub_mbedtls/trunk/musl-1.1.18/src/unistd/lseek.c@ 398

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

mbedTLS版Azure IoT Hub接続サンプルのソースコードを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 305 bytes
Line 
1#include <unistd.h>
2#include "syscall.h"
3#include "libc.h"
4
5off_t lseek(int fd, off_t offset, int whence)
6{
7#ifdef SYS__llseek
8 off_t result;
9 return syscall(SYS__llseek, fd, offset>>32, offset, &result, whence) ? -1 : result;
10#else
11 return syscall(SYS_lseek, fd, offset, whence);
12#endif
13}
14
15LFS64(lseek);
Note: See TracBrowser for help on using the repository browser.