Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1906 → Rev 3065

/programs/develop/libraries/newlib/reent/closer.c
65,11 → 65,13
 
fh = (__file_handle*) __getOSHandle( fd );
 
if( fd > STDERR_FILENO )
{
_free_r(ptr, fh->name);
_free_r(ptr, fh);
 
__freePOSIXHandle( fd );
__SetIOMode_nogrow( fd, 0 );
}
 
return 0;
}
/programs/develop/libraries/newlib/reent/getreent.c
29,8 → 29,21
__sinit(ent);
}
 
void init_global_reent()
{
struct _reent *ent;
 
ent =_GLOBAL_REENT;
 
_REENT_INIT_PTR(ent);
 
__asm__ __volatile__(
"movl %0, %%fs:12"
::"r"(ent));
__sinit(ent);
}
 
 
void __mutex_lock(volatile int *val)
{
int tmp;