forked from Imagelibrary/rtems
updates from Tony Bennett
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
#if defined(solaris2)
|
||||
#define O_NDELAY O_NONBLOCK
|
||||
#elif defined(RTEMS_NEWLIB)
|
||||
#elif defined(RTEMS_NEWLIB)
|
||||
#define O_NDELAY _FNBIO
|
||||
#endif
|
||||
|
||||
|
||||
@@ -252,6 +252,9 @@ void *realloc(
|
||||
}
|
||||
|
||||
new_area = malloc( size );
|
||||
|
||||
MSBUMP(malloc_calls, -1); /* subtract off the malloc */
|
||||
|
||||
if ( !new_area ) {
|
||||
free( ptr );
|
||||
return (void *) 0;
|
||||
|
||||
@@ -131,7 +131,7 @@ libc_start_hook(rtems_tcb *current_task,
|
||||
* real target.
|
||||
*/
|
||||
|
||||
#ifdef RTEMS_UNIX
|
||||
#ifdef NEED_SETVBUF
|
||||
rtems_extension
|
||||
libc_begin_hook(rtems_tcb *current_task)
|
||||
{
|
||||
@@ -274,7 +274,7 @@ libc_init(int reentrant)
|
||||
|
||||
libc_extension.thread_create = libc_create_hook;
|
||||
libc_extension.thread_start = libc_start_hook;
|
||||
#ifdef RTEMS_UNIX
|
||||
#ifdef NEED_SETVBUF
|
||||
libc_extension.thread_begin = libc_begin_hook;
|
||||
#endif
|
||||
libc_extension.thread_switch = libc_switch_hook;
|
||||
|
||||
Reference in New Issue
Block a user