Subversion Repositories Kolibri OS

Rev

Rev 4874 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4874 Rev 4921
Line 95... Line 95...
95
       int c _AND
95
       int c _AND
96
       register FILE *fp)
96
       register FILE *fp)
97
{
97
{
98
  int result;
98
  int result;
99
  CHECK_INIT (ptr, fp);
99
  CHECK_INIT (ptr, fp);
100
  _flockfile (fp);
100
  _newlib_flockfile_start (fp);
101
  result = __sputc_r (ptr, c, fp);
101
  result = __sputc_r (ptr, c, fp);
102
  _funlockfile (fp);
102
  _newlib_flockfile_end (fp);
103
  return result;
103
  return result;
104
}
104
}
Line 105... Line 105...
105
 
105
 
106
#ifndef _REENT_ONLY
106
#ifndef _REENT_ONLY
Line 109... Line 109...
109
       int c _AND
109
       int c _AND
110
       register FILE *fp)
110
       register FILE *fp)
111
{
111
{
112
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
112
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
113
  int result;
113
  int result;
-
 
114
  struct _reent *reent = _REENT;
-
 
115
 
114
  CHECK_INIT (_REENT, fp);
116
  CHECK_INIT (reent, fp);
115
  _flockfile (fp);
117
  _newlib_flockfile_start (fp);
116
  result = __sputc_r (_REENT, c, fp);
118
  result = __sputc_r (reent, c, fp);
117
  _funlockfile (fp);
119
  _newlib_flockfile_end (fp);
118
  return result;
120
  return result;
119
#else
121
#else
120
  return _putc_r (_REENT, c, fp);
122
  return _putc_r (_REENT, c, fp);
121
#endif
123
#endif
122
}
124
}