updates from Tony Bennett

This commit is contained in:
Joel Sherrill
1996-05-23 15:37:38 +00:00
parent 64b976a960
commit 8b2ecf8546
17 changed files with 160 additions and 105 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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;