diff options
Diffstat (limited to 'testsuites/sptests/sp07/tcreate.c')
-rw-r--r-- | testsuites/sptests/sp07/tcreate.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testsuites/sptests/sp07/tcreate.c b/testsuites/sptests/sp07/tcreate.c new file mode 100644 index 0000000000..6e17e3ca56 --- /dev/null +++ b/testsuites/sptests/sp07/tcreate.c @@ -0,0 +1,35 @@ +/* Task_create_extension + * + * This routine is the tcreate user extension. + * + * Input parameters: + * unused - pointer to currently running TCB + * created_task - pointer to new TCB being created + * + * Output parameters: NONE + * + * COPYRIGHT (c) 1989-1997. + * On-Line Applications Research Corporation (OAR). + * Copyright assigned to U.S. Government, 1994. + * + * The license and distribution terms for this file may in + * the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + */ + +#include "system.h" + +rtems_boolean Task_create_extension( + rtems_tcb *unused, + rtems_tcb *created_task +) +{ + if ( task_number( created_task->Object.id ) > 0 ) { + puts_nocr( "TASK_CREATE - " ); + put_name( Task_name[ task_number( created_task->Object.id ) ], FALSE ); + puts( " - created." ); + } + return TRUE; +} |