/
githubmirror
/
file
Обзор
Документация
Войти
/
githubmirror
/
file
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
FILE5_19
src/pread.c
14 строк
310 B
Christos Zoulas
fix wrong type, from joerg jenderek
02 апр 2013, 20:23
02 апр 2013, 20:23
abfef0a
Код
Авторство
О чём код?
#include "file.h" #ifndef lint FILE_RCSID("@(#)$File: pread.c,v 1.1 2013/02/18 15:40:59 christos Exp $") #endif /* lint */ #include <fcntl.h> #include <unistd.h> ssize_t pread(int fd, void *buf, size_t len, off_t off) { if (lseek(fd, off, SEEK_SET) == (off_t)-1) return -1; return read(fd, buf, len); }