Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-03-14 21:39:05 +0300
committerCorinna Vinschen <corinna@vinschen.de>2003-03-14 21:39:05 +0300
commit2a940c1a22765411b70679bf886714930aeaf79f (patch)
treeade7a084e6ec2a2bb749cabcae9edde004904362 /newlib/libc/reent
parent2359084b5b6c00a44d8ca9534e71b2d8671d6ffb (diff)
* libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
with internal (_fpos_t and _off_t) datatypes when compiling newlib. * libc/include/sys/unistd.h: Declare _lseek using _off_t. * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t. * libc/stdio/fseeko.c (fseeko): Ditto. * libc/stdio/ftello.c (ftello): Ditto. * libc/stdio/stdio.c (__swrite): Ditto. (__sseek): Ditto. * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t. * libc/stdio/fseek.c (fseek): Ditto. * libc/stdio/fsetpos.c (fsetpos): Ditto. * libc/stdio/ftell.c (ftell): Ditto. * libc/stdio/local.h: Declare __sseek using _off_t.
Diffstat (limited to 'newlib/libc/reent')
-rw-r--r--newlib/libc/reent/lseekr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/reent/lseekr.c b/newlib/libc/reent/lseekr.c
index 45a340a3d..817d52a26 100644
--- a/newlib/libc/reent/lseekr.c
+++ b/newlib/libc/reent/lseekr.c
@@ -52,10 +52,10 @@ _lseek_r (ptr, fd, pos, whence)
_off_t pos;
int whence;
{
- off_t ret;
+ _off_t ret;
errno = 0;
- if ((ret = _lseek (fd, pos, whence)) == (off_t) -1 && errno != 0)
+ if ((ret = _lseek (fd, pos, whence)) == (_off_t) -1 && errno != 0)
ptr->_errno = errno;
return ret;
}