Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4874 → Rev 4921

/contrib/sdk/sources/newlib/libc/stdio/fopen.c
126,8 → 126,8
FILE *
_DEFUN(_fopen_r, (ptr, file, mode),
struct _reent *ptr _AND
_CONST char *file _AND
_CONST char *mode)
_CONST char *__restrict file _AND
_CONST char *__restrict mode)
{
register FILE *fp;
register int f;
140,16 → 140,16
 
if ((f = _open_r (ptr, file, oflags, 0666)) < 0)
{
__sfp_lock_acquire ();
_newlib_sfp_lock_start ();
fp->_flags = 0; /* release */
#ifndef __SINGLE_THREAD__
__lock_close_recursive (fp->_lock);
#endif
__sfp_lock_release ();
_newlib_sfp_lock_end ();
return NULL;
}
 
_flockfile (fp);
_newlib_flockfile_start (fp);
 
fp->_file = f;
fp->_flags = flags;
167,7 → 167,7
fp->_flags |= __SCLE;
#endif
 
_funlockfile (fp);
_newlib_flockfile_end (fp);
return fp;
}