diff packages/language/c/libc/stdio/current/include/stdio.h @ 2306:d68e3769e3a1

* include/stdio.h: Make fpos_t be signed to allow negative SEEK_CUR offsets to fseek(). * include/stream.inl (set_position): If SEEK_CUR, then if having to reconcile difference between position and underlying file position, then requested seek position needs adjusting for buffer size. Both above reported and analysed by Ivan Djelic.
author jlarmour
date Wed, 27 Sep 2006 16:18:18 +0000
parents be5ecb9f3106
children 74dbf4c3f2e1
line wrap: on
line diff
--- a/packages/language/c/libc/stdio/current/include/stdio.h
+++ b/packages/language/c/libc/stdio/current/include/stdio.h
@@ -89,7 +89,7 @@
 
 // A type capable of specifying uniquely every file position - ISO C
 // standard chap 7.9.1
-typedef cyg_ucount32 fpos_t;
+typedef cyg_count32 fpos_t;
 
 
 // FILE is just cast to an address here. It is uncast internally to the