projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unistd.in.h: correct declaration of pread
[gnulib.git]
/
lib
/
freadahead.c
diff --git
a/lib/freadahead.c
b/lib/freadahead.c
index
25bfc1e
..
f4b5ed7
100644
(file)
--- a/
lib/freadahead.c
+++ b/
lib/freadahead.c
@@
-1,5
+1,5
@@
/* Retrieve information about a FILE stream.
/* Retrieve information about a FILE stream.
- Copyright (C) 2007-200
8
Free Software Foundation, Inc.
+ Copyright (C) 2007-200
9
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-70,6
+70,12
@@
freadahead (FILE *fp)
+ (fp->_Mode & 0x4000 /* _MBYTE */
? (fp->_Back + sizeof (fp->_Back)) - fp->_Rback
: 0);
+ (fp->_Mode & 0x4000 /* _MBYTE */
? (fp->_Back + sizeof (fp->_Back)) - fp->_Rback
: 0);
+#elif defined __MINT__ /* Atari FreeMiNT */
+ if (!fp->__mode.__read)
+ return 0;
+ return (fp->__pushed_back
+ ? fp->__get_limit - fp->__pushback_bufp + 1
+ : fp->__get_limit - fp->__bufp);
#elif defined SLOW_BUT_NO_HACKS /* users can define this */
abort ();
return 0;
#elif defined SLOW_BUT_NO_HACKS /* users can define this */
abort ();
return 0;