Changeset 3a4ae6c in rtems for c/src/lib/libc
- Timestamp:
- 09/11/95 19:35:39 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ced11f99
- Parents:
- 5072b07
- Location:
- c/src/lib/libc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libc/error.c
r5072b07 r3a4ae6c 92 92 { "directive not implemented", RTEMS_NOT_IMPLEMENTED, }, 93 93 { "RTEMS inconsistency detected", RTEMS_INTERNAL_ERROR, }, 94 { "internal multiprocessing only", RTEMS_PROXY_BLOCKING, },95 94 { "could not get enough memory", RTEMS_NO_MEMORY, }, 95 { "internal multiprocessing only", THREAD_STATUS_PROXY_BLOCKING, }, 96 96 { 0, 0, 0 }, 97 97 }; … … 135 135 local_errno = errno; 136 136 137 if (_ Configuration_Is_multiprocessing())137 if (_System_state_Is_multiprocessing) 138 138 fprintf(stderr, "[%d] ", _Configuration_MP_table->node); 139 139 -
c/src/lib/libc/libio.c
r5072b07 r3a4ae6c 15 15 16 16 #include <fcntl.h> /* O_RDONLY, et.al. */ 17 #include <sys/fcntl.h> /* O_RDONLY, et.al. */ 17 18 #if defined(solaris2) 18 19 #define O_NDELAY O_NONBLOCK 20 #elif defined(RTEMS_NEWLIB) 21 #define O_NDELAY _FNBIO 19 22 #endif 20 23 #include <errno.h> -
c/src/lib/libc/newlibc.c
r5072b07 r3a4ae6c 81 81 82 82 83 rtems_ extension83 rtems_boolean 84 84 libc_create_hook(rtems_tcb *current_task, 85 85 rtems_tcb *creating_task) 86 86 { 87 87 MY_task_set_note(creating_task, LIBC_NOTEPAD, 0); 88 return TRUE; 88 89 } 89 90 … … 232 233 memset(&libc_extension, 0, sizeof(libc_extension)); 233 234 234 libc_extension. rtems_task_create = libc_create_hook;235 libc_extension. rtems_task_start = libc_start_hook;236 libc_extension.t ask_switch = libc_switch_hook;237 libc_extension. rtems_task_delete = libc_delete_hook;235 libc_extension.thread_create = libc_create_hook; 236 libc_extension.thread_start = libc_start_hook; 237 libc_extension.thread_switch = libc_switch_hook; 238 libc_extension.thread_delete = libc_delete_hook; 238 239 239 240 rc = rtems_extension_create(rtems_build_name('L', 'I', 'B', 'C'), -
c/src/lib/libc/support.c
r5072b07 r3a4ae6c 14 14 */ 15 15 16 #include <rtems/system.h> 17 #include <rtems/thread.h> 16 #include <rtems.h> 18 17 19 18 void MY_task_set_note( … … 23 22 ) 24 23 { 25 the_thread->RTEMS_API->Notepads[ notepad ] = note; 24 RTEMS_API_Control *api; 25 26 api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 27 28 api->Notepads[ notepad ] = note; 26 29 } 27 30 … … 32 35 ) 33 36 { 34 return the_thread->RTEMS_API->Notepads[ notepad ]; 37 RTEMS_API_Control *api; 38 39 api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 40 41 return api->Notepads[ notepad ]; 35 42 } 36 43
Note: See TracChangeset
for help on using the changeset viewer.