Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 253025
Collapse All | Expand All

(-)gnulib/lib/fpurge.c (+6 lines)
Lines 114-119 Link Here
114
    /* fp->_Buf <= fp->_Next <= fp->_Rend */
114
    /* fp->_Buf <= fp->_Next <= fp->_Rend */
115
    fp->_Rend = fp->_Next;
115
    fp->_Rend = fp->_Next;
116
  return 0;
116
  return 0;
117
# elif defined __MINT__
118
  fp->__pushback_bufp = 0;
119
  if (fp->__mode.__write)
120
    fp->__put_limit = fp->__buffer;
121
  fp->__bufp = fp->__get_limit;
122
  return 0;
117
# else
123
# else
118
 #error "Please port gnulib fpurge.c to your platform! Look at the definitions of fflush, setvbuf and ungetc on your system, then report this to bug-gnulib."
124
 #error "Please port gnulib fpurge.c to your platform! Look at the definitions of fflush, setvbuf and ungetc on your system, then report this to bug-gnulib."
119
# endif
125
# endif
(-)gnulib/lib/freadahead.c (+6 lines)
Lines 70-75 Link Here
70
	 + (fp->_Mode & 0x4000 /* _MBYTE */
70
	 + (fp->_Mode & 0x4000 /* _MBYTE */
71
	    ? (fp->_Back + sizeof (fp->_Back)) - fp->_Rback
71
	    ? (fp->_Back + sizeof (fp->_Back)) - fp->_Rback
72
	    : 0);
72
	    : 0);
73
#elif defined __MINT__
74
  if (fp->__mode.__write)
75
    return 0;
76
  if (fp->__pushed_back)
77
    return (fp->__get_limit - fp->__pushback_bufp + 1);
78
  return (fp->__get_limit - fp->__bufp);
73
#elif defined SLOW_BUT_NO_HACKS     /* users can define this */
79
#elif defined SLOW_BUT_NO_HACKS     /* users can define this */
74
  abort ();
80
  abort ();
75
  return 0;
81
  return 0;
(-)gnulib/lib/freading.c (+7 lines)
Lines 46-51 Link Here
46
#elif defined __QNX__               /* QNX */
46
#elif defined __QNX__               /* QNX */
47
  return ((fp->_Mode & 0x2 /* _MOPENW */) == 0
47
  return ((fp->_Mode & 0x2 /* _MOPENW */) == 0
48
	  || (fp->_Mode & 0x1000 /* _MREAD */) != 0);
48
	  || (fp->_Mode & 0x1000 /* _MREAD */) != 0);
49
#elif defined __MINT__
50
  if (!fp->__mode.__write && fp->__mode.__read)
51
    return 1;
52
  return (fp->__mode.__read &&
53
          fp->__get_limit > fp->__bufp &&
54
          fp->__get_limit > fp->__put_limit &&
55
          fp->__bufp > fp->__buffer);
49
#else
56
#else
50
 #error "Please port gnulib freading.c to your platform!"
57
 #error "Please port gnulib freading.c to your platform!"
51
#endif
58
#endif
(-)gnulib/lib/fseeko.c (+2 lines)
Lines 82-87 Link Here
82
  if ((fp->_Mode & _MWRITE ? fp->_Next == fp->_Buf : fp->_Next == fp->_Rend)
82
  if ((fp->_Mode & _MWRITE ? fp->_Next == fp->_Buf : fp->_Next == fp->_Rend)
83
      && fp->_Rback == fp->_Back + sizeof (fp->_Back)
83
      && fp->_Rback == fp->_Back + sizeof (fp->_Back)
84
      && fp->_Rsave == NULL)
84
      && fp->_Rsave == NULL)
85
#elif defined __MINT__
86
  if (0)
85
#else
87
#else
86
  #error "Please port gnulib fseeko.c to your platform! Look at the code in fpurge.c, then report this to bug-gnulib."
88
  #error "Please port gnulib fseeko.c to your platform! Look at the code in fpurge.c, then report this to bug-gnulib."
87
#endif
89
#endif

Return to bug 253025