<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-03-08)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1759/cpukit
* Makefile.am, configure.ac: Add test to use some pthread calls with
Classic Tasks.
* psxclassic01/.cvsignore, psxclassic01/Makefile.am,
psxclassic01/init.c, psxclassic01/psxclassic01.doc,
psxclassic01/psxclassic01.scn: New files.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.333&r2=text&tr2=1.334&diff_format=h">M</a></td><td width='1%'>1.334</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/Makefile.am.diff?r1=text&tr1=1.73&r2=text&tr2=1.74&diff_format=h">M</a></td><td width='1%'>1.74</td><td width='100%'>testsuites/psxtests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/configure.ac.diff?r1=text&tr1=1.82&r2=text&tr2=1.83&diff_format=h">M</a></td><td width='1%'>1.83</td><td width='100%'>testsuites/psxtests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxclassic01/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtests/psxclassic01/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxclassic01/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtests/psxclassic01/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxclassic01/init.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtests/psxclassic01/init.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxclassic01/psxclassic01.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtests/psxclassic01/psxclassic01.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxclassic01/psxclassic01.scn?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtests/psxclassic01/psxclassic01.scn</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.333 rtems/testsuites/psxtests/ChangeLog:1.334
--- rtems/testsuites/psxtests/ChangeLog:1.333 Tue Feb 22 08:44:30 2011
+++ rtems/testsuites/psxtests/ChangeLog Tue Mar 8 16:10:38 2011
</font><font color='#997700'>@@ -1,3 +1,12 @@
</font><font color='#000088'>+2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ PR 1759/cpukit
+ * Makefile.am, configure.ac: Add test to use some pthread calls with
+ Classic Tasks.
+ * psxclassic01/.cvsignore, psxclassic01/Makefile.am,
+ psxclassic01/init.c, psxclassic01/psxclassic01.doc,
+ psxclassic01/psxclassic01.scn: New files.
+
</font> 2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Add AC_CONFIG_HEADER(config.h).
<font color='#006600'>diff -u rtems/testsuites/psxtests/Makefile.am:1.73 rtems/testsuites/psxtests/Makefile.am:1.74
--- rtems/testsuites/psxtests/Makefile.am:1.73 Mon Jan 17 16:17:18 2011
+++ rtems/testsuites/psxtests/Makefile.am Tue Mar 8 16:10:38 2011
</font><font color='#997700'>@@ -9,7 +9,7 @@
</font> SUBDIRS += psxhdrs psx01 psx02 psx03 psx04 psx05 psx06 psx07 psx08 psx09 \
psx10 psx11 psx12 psx13 psx14 psx15 psxaio01 psxaio02 psxaio03 \
psxalarm01 psxautoinit01 psxautoinit02 psxbarrier01 \
<font color='#880000'>- psxcancel psxcancel01 psxcleanup psxcleanup01 \
</font><font color='#000088'>+ psxcancel psxcancel01 psxclassic01 psxcleanup psxcleanup01 \
</font> psxcond01 psxenosys psxkey01 psxkey02 psxkey03 \
psxitimer psxmsgq01 psxmsgq02 psxmsgq03 psxmsgq04 \
psxmutexattr01 psxobj01 psxrwlock01 psxsem01 psxsignal01 psxsignal02 \
<font color='#006600'>diff -u rtems/testsuites/psxtests/configure.ac:1.82 rtems/testsuites/psxtests/configure.ac:1.83
--- rtems/testsuites/psxtests/configure.ac:1.82 Tue Feb 22 08:44:30 2011
+++ rtems/testsuites/psxtests/configure.ac Tue Mar 8 16:10:38 2011
</font><font color='#997700'>@@ -106,6 +106,7 @@
</font> psxcancel/Makefile
psxcancel01/Makefile
psxchroot01/Makefile
<font color='#000088'>+psxclassic01/Makefile
</font> psxcleanup/Makefile
psxcleanup01/Makefile
psxclock/Makefile
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtests/psxclassic01/.cvsignore:1.1
--- /dev/null Tue Mar 8 17:11:29 2011
+++ rtems/testsuites/psxtests/psxclassic01/.cvsignore Tue Mar 8 16:10:38 2011
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtests/psxclassic01/Makefile.am:1.1
--- /dev/null Tue Mar 8 17:11:29 2011
+++ rtems/testsuites/psxtests/psxclassic01/Makefile.am Tue Mar 8 16:10:38 2011
</font><font color='#997700'>@@ -0,0 +1,28 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = psxclassic01
+psxclassic01_SOURCES = init.c ../include/pmacros.h
+
+dist_rtems_tests_DATA = psxclassic01.scn
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+psxclassic01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
+
+AM_CPPFLAGS += -I$(top_srcdir)/include
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(psxclassic01_OBJECTS) $(psxclassic01_LDADD)
+LINK_LIBS = $(psxclassic01_LDLIBS)
+
+psxclassic01$(EXEEXT): $(psxclassic01_OBJECTS) $(psxclassic01_DEPENDENCIES)
+ @rm -f psxclassic01$(EXEEXT)
+ $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtests/psxclassic01/init.c:1.1
--- /dev/null Tue Mar 8 17:11:29 2011
+++ rtems/testsuites/psxtests/psxclassic01/init.c Tue Mar 8 16:10:38 2011
</font><font color='#997700'>@@ -0,0 +1,153 @@
</font><font color='#000088'>+/*
+ * Based upon user code supplied in conjunction with PR1759
+ *
+ * COPYRIGHT (c) 1989-2011.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+
+#include "tmacros.h"
+
+#include <stdio.h>
+#include <rtems.h>
+#include <pthread.h>
+#include <unistd.h>
+#include <errno.h>
+
+int Caught_signo = -1;
+siginfo_t Caught_siginfo = { -1, -1, };
+
+void handler(int signo)
+{
+ Caught_signo = signo;
+}
+
+void handler_info(int signo, siginfo_t *info, void *context)
+{
+ Caught_signo = signo;
+ Caught_siginfo = *info;
+}
+
+rtems_task test_task(rtems_task_argument arg)
+{
+ int sc;
+ struct sigaction new_action;
+ sigset_t mask;
+
+ printf("test_task starting...\n");
+
+ sc = sigemptyset (&new_action.sa_mask);
+ rtems_test_assert( sc == 0 );
+
+ sc = sigfillset (&new_action.sa_mask);
+ rtems_test_assert( sc == 0 );
+
+ sc = sigdelset (&new_action.sa_mask, SIGUSR1);
+ rtems_test_assert( sc == 0 );
+
+ new_action.sa_handler = handler;
+ new_action.sa_flags = SA_SIGINFO;
+ new_action.sa_sigaction = handler_info;
+
+ sc = sigaction(SIGUSR1,&new_action,NULL);
+ rtems_test_assert( sc == 0 );
+
+ sc = sigemptyset(&mask);
+ rtems_test_assert( sc == 0 );
+
+ sc = sigaddset(&mask, SIGUSR1);
+ rtems_test_assert( sc == 0 );
+
+ sc = pthread_sigmask( SIG_UNBLOCK, &mask, NULL);
+ rtems_test_assert( sc == 0 );
+
+ printf("test_task waiting for signal...\n");
+
+ while(1) {
+ sleep(1);
+ if ( Caught_siginfo.si_signo != -1 ) {
+ printf( "Signal_info: %d si_signo= %d si_code= %d value= %d\n",
+ Caught_signo,
+ Caught_siginfo.si_signo,
+ Caught_siginfo.si_code,
+ Caught_siginfo.si_value.sival_int
+ );
+ break;
+ }
+ if ( Caught_signo != -1 ) {
+ printf( "Signal: %d caught\n", Caught_signo );
+ break;
+ }
+ }
+ puts( "test_task exiting thread" );
+ pthread_exit( 0 );
+}
+
+rtems_task Init(rtems_task_argument arg)
+{
+ rtems_status_code sc;
+ rtems_id task_id;
+ int status;
+ void *retval;
+
+ puts( "*** START OF CLASSIC API TEST OF POSIX 01 ***" );
+
+ sc = rtems_task_create(
+ rtems_build_name('T','E','S','T'),
+ 1,
+ RTEMS_MINIMUM_STACK_SIZE,
+ RTEMS_DEFAULT_MODES,
+ RTEMS_DEFAULT_ATTRIBUTES,
+ &task_id
+ );
+ rtems_test_assert( sc == RTEMS_SUCCESSFUL );
+
+ sc = rtems_task_start( task_id, test_task, 0 );
+ rtems_test_assert( sc == RTEMS_SUCCESSFUL );
+
+
+ puts( "Init - pthread_equal on Classic Ids" );
+ status = pthread_equal( task_id, task_id );
+ rtems_test_assert( status != 0 );
+<span style="background-color: #FF0000"> </span>
+ puts( "Init - pthread_cancel on Classic Task" );
+ status = pthread_cancel( task_id );
+ rtems_test_assert( status == 0 );
+<span style="background-color: #FF0000"> </span>
+ status = pthread_detach( task_id );
+ rtems_test_assert( status == 0 );
+
+ status = pthread_join( task_id, &retval );
+ if ( status != EINVAL ) printf( "JOIN %s\n", strerror( status ) );
+ rtems_test_assert( status == EINVAL );
+
+ status = pthread_kill( task_id, SIGUSR1 );
+ rtems_test_assert( status == 0 );
+
+ puts( "*** END OF CLASSIC API TEST OF POSIX 01 ***" );
+ exit(0);
+}
+
+/* configuration information */
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 2
+
+#define CONFIGURE_INIT_TASK_INITIAL_MODES \
+ (RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_ASR | RTEMS_INTERRUPT_LEVEL(0))
+
+#define CONFIGURE_INIT_TASK_PRIORITY 4
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_UNIFIED_WORK_AREAS
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+/* end of file */
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtests/psxclassic01/psxclassic01.doc:1.1
--- /dev/null Tue Mar 8 17:11:29 2011
+++ rtems/testsuites/psxtests/psxclassic01/psxclassic01.doc Tue Mar 8 16:10:39 2011
</font><font color='#997700'>@@ -0,0 +1,27 @@
</font><font color='#000088'>+#
+# $Id$
+#
+# COPYRIGHT (c) 1989-2019.
+# On-Line Applications Research Corporation (OAR).
+#
+# The license and distribution terms for this file may be
+# found in the file LICENSE in this distribution or at
+# http://www.rtems.com/license/LICENSE.
+#
+
+This file describes the directives and concepts tested by this test set.
+
+test set name: Classic API Task Using POSIX Services
+
+directives:
+
++ pthread_equal
++ pthread_cancel
++ pthread_detach
++ pthread_join
++ pthread_kill
+
+concepts:
+
++ Ensure that Classic API tasks can be operated upon by the above listed
+services.
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtests/psxclassic01/psxclassic01.scn:1.1
--- /dev/null Tue Mar 8 17:11:29 2011
+++ rtems/testsuites/psxtests/psxclassic01/psxclassic01.scn Tue Mar 8 16:10:39 2011
</font><font color='#997700'>@@ -0,0 +1,8 @@
</font><font color='#000088'>+*** START OF CLASSIC API TEST OF POSIX 01 ***
+test_task starting...
+test_task waiting for signal...
+Init - pthread_equal on Classic Ids
+Init - pthread_cancel on Classic Task
+Signal_info: 25 si_signo= 0 si_code= 0 value= 0
+test_task exiting thread
+*** END OF CLASSIC API TEST OF POSIX 01 ***
</font></pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
<font color='#225522'><em>(on branch rtems-4-10-branch)</em></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1759/cpukit
* posix/src/cancel.c, posix/src/pthreaddetach.c,
posix/src/pthreadequal.c, posix/src/pthreadgetschedparam.c,
posix/src/pthreadjoin.c, posix/src/pthreadkill.c,
posix/src/pthreadsetschedparam.c: Some POSIX pthread services did not
support using Classic API Task Ids.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2765&r2=text&tr2=1.2766&diff_format=h">M</a></td><td width='1%'>1.2766</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2346.2.80&r2=text&tr2=1.2346.2.81&diff_format=h">M</a></td><td width='1%'>1.2346.2.81</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/cancel.c.diff?r1=text&tr1=1.19&r2=text&tr2=1.20&diff_format=h">M</a></td><td width='1%'>1.20</td><td width='100%'>cpukit/posix/src/cancel.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/cancel.c.diff?r1=text&tr1=1.19&r2=text&tr2=1.19.2.1&diff_format=h">M</a></td><td width='1%'>1.19.2.1</td><td width='100%'>cpukit/posix/src/cancel.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreaddetach.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>cpukit/posix/src/pthreaddetach.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreaddetach.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.7.4.1&diff_format=h">M</a></td><td width='1%'>1.7.4.1</td><td width='100%'>cpukit/posix/src/pthreaddetach.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadequal.c.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>cpukit/posix/src/pthreadequal.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadequal.c.diff?r1=text&tr1=1.10&r2=text&tr2=1.10.4.1&diff_format=h">M</a></td><td width='1%'>1.10.4.1</td><td width='100%'>cpukit/posix/src/pthreadequal.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadgetschedparam.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h">M</a></td><td width='1%'>1.9</td><td width='100%'>cpukit/posix/src/pthreadgetschedparam.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadgetschedparam.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.8.4.1&diff_format=h">M</a></td><td width='1%'>1.8.4.1</td><td width='100%'>cpukit/posix/src/pthreadgetschedparam.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadjoin.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h">M</a></td><td width='1%'>1.9</td><td width='100%'>cpukit/posix/src/pthreadjoin.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadjoin.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.8.4.1&diff_format=h">M</a></td><td width='1%'>1.8.4.1</td><td width='100%'>cpukit/posix/src/pthreadjoin.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadkill.c.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>cpukit/posix/src/pthreadkill.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadkill.c.diff?r1=text&tr1=1.15&r2=text&tr2=1.15.2.1&diff_format=h">M</a></td><td width='1%'>1.15.2.1</td><td width='100%'>cpukit/posix/src/pthreadkill.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadsetschedparam.c.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>cpukit/posix/src/pthreadsetschedparam.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadsetschedparam.c.diff?r1=text&tr1=1.11&r2=text&tr2=1.11.2.1&diff_format=h">M</a></td><td width='1%'>1.11.2.1</td><td width='100%'>cpukit/posix/src/pthreadsetschedparam.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2765 rtems/cpukit/ChangeLog:1.2766
--- rtems/cpukit/ChangeLog:1.2765 Tue Mar 8 13:27:35 2011
+++ rtems/cpukit/ChangeLog Tue Mar 8 16:14:14 2011
</font><font color='#997700'>@@ -1,5 +1,14 @@
</font> 2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
<font color='#000088'>+ PR 1759/cpukit
+ * posix/src/cancel.c, posix/src/pthreaddetach.c,
+ posix/src/pthreadequal.c, posix/src/pthreadgetschedparam.c,
+ posix/src/pthreadjoin.c, posix/src/pthreadkill.c,
+ posix/src/pthreadsetschedparam.c: Some POSIX pthread services did not
+ support using Classic API Task Ids.
+
+2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
</font> * score/include/rtems/score/schedulerpriority.h: Enqueue first entry
said enqueue. Caught while running coverage.
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2346.2.80 rtems/cpukit/ChangeLog:1.2346.2.81
--- rtems/cpukit/ChangeLog:1.2346.2.80 Thu Mar 3 07:34:34 2011
+++ rtems/cpukit/ChangeLog Tue Mar 8 16:14:54 2011
</font><font color='#997700'>@@ -1,3 +1,12 @@
</font><font color='#000088'>+2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ PR 1759/cpukit
+ * posix/src/cancel.c, posix/src/pthreaddetach.c,
+ posix/src/pthreadequal.c, posix/src/pthreadgetschedparam.c,
+ posix/src/pthreadjoin.c, posix/src/pthreadkill.c,
+ posix/src/pthreadsetschedparam.c: Some POSIX pthread services did not
+ support using Classic API Task Ids.
+
</font> 2011-03-03 Chris Johns <chrisj@rtems.org>
PR 1749/filesystem
<font color='#006600'>diff -u rtems/cpukit/posix/src/cancel.c:1.19 rtems/cpukit/posix/src/cancel.c:1.20
--- rtems/cpukit/posix/src/cancel.c:1.19 Sat Oct 10 11:03:38 2009
+++ rtems/cpukit/posix/src/cancel.c Tue Mar 8 16:14:14 2011
</font><font color='#997700'>@@ -44,7 +44,7 @@
</font> if ( _ISR_Is_in_progress() )
return EPROTO;
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/cancel.c:1.19 rtems/cpukit/posix/src/cancel.c:1.19.2.1
--- rtems/cpukit/posix/src/cancel.c:1.19 Sat Oct 10 11:03:38 2009
+++ rtems/cpukit/posix/src/cancel.c Tue Mar 8 16:14:55 2011
</font><font color='#997700'>@@ -44,7 +44,7 @@
</font> if ( _ISR_Is_in_progress() )
return EPROTO;
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreaddetach.c:1.7 rtems/cpukit/posix/src/pthreaddetach.c:1.8
--- rtems/cpukit/posix/src/pthreaddetach.c:1.7 Fri Nov 30 14:34:13 2007
+++ rtems/cpukit/posix/src/pthreaddetach.c Tue Mar 8 16:14:14 2011
</font><font color='#997700'>@@ -30,7 +30,7 @@
</font> POSIX_API_Control *api;
Objects_Locations location;
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreaddetach.c:1.7 rtems/cpukit/posix/src/pthreaddetach.c:1.7.4.1
--- rtems/cpukit/posix/src/pthreaddetach.c:1.7 Fri Nov 30 14:34:13 2007
+++ rtems/cpukit/posix/src/pthreaddetach.c Tue Mar 8 16:14:56 2011
</font><font color='#997700'>@@ -30,7 +30,7 @@
</font> POSIX_API_Control *api;
Objects_Locations location;
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadequal.c:1.10 rtems/cpukit/posix/src/pthreadequal.c:1.11
--- rtems/cpukit/posix/src/pthreadequal.c:1.10 Mon Apr 28 13:12:42 2008
+++ rtems/cpukit/posix/src/pthreadequal.c Tue Mar 8 16:14:14 2011
</font><font color='#997700'>@@ -51,7 +51,7 @@
</font> * Validate the first id and return 0 if it is not valid
*/
<font color='#880000'>- (void) _POSIX_Threads_Get( t1, &location );
</font><font color='#000088'>+ (void) _Thread_Get( t1, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#997700'>@@ -60,7 +60,7 @@
</font> * Validate the second id and return 0 if it is not valid
*/
<font color='#880000'>- (void) _POSIX_Threads_Get( t2, &location );
</font><font color='#000088'>+ (void) _Thread_Get( t2, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadequal.c:1.10 rtems/cpukit/posix/src/pthreadequal.c:1.10.4.1
--- rtems/cpukit/posix/src/pthreadequal.c:1.10 Mon Apr 28 13:12:42 2008
+++ rtems/cpukit/posix/src/pthreadequal.c Tue Mar 8 16:14:56 2011
</font><font color='#997700'>@@ -51,7 +51,7 @@
</font> * Validate the first id and return 0 if it is not valid
*/
<font color='#880000'>- (void) _POSIX_Threads_Get( t1, &location );
</font><font color='#000088'>+ (void) _Thread_Get( t1, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#997700'>@@ -60,7 +60,7 @@
</font> * Validate the second id and return 0 if it is not valid
*/
<font color='#880000'>- (void) _POSIX_Threads_Get( t2, &location );
</font><font color='#000088'>+ (void) _Thread_Get( t2, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadgetschedparam.c:1.8 rtems/cpukit/posix/src/pthreadgetschedparam.c:1.9
--- rtems/cpukit/posix/src/pthreadgetschedparam.c:1.8 Fri Nov 30 14:34:13 2007
+++ rtems/cpukit/posix/src/pthreadgetschedparam.c Tue Mar 8 16:14:14 2011
</font><font color='#997700'>@@ -36,7 +36,7 @@
</font> if ( !policy || !param )
return EINVAL;
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadgetschedparam.c:1.8 rtems/cpukit/posix/src/pthreadgetschedparam.c:1.8.4.1
--- rtems/cpukit/posix/src/pthreadgetschedparam.c:1.8 Fri Nov 30 14:34:13 2007
+++ rtems/cpukit/posix/src/pthreadgetschedparam.c Tue Mar 8 16:14:56 2011
</font><font color='#997700'>@@ -36,7 +36,7 @@
</font> if ( !policy || !param )
return EINVAL;
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadjoin.c:1.8 rtems/cpukit/posix/src/pthreadjoin.c:1.9
--- rtems/cpukit/posix/src/pthreadjoin.c:1.8 Fri Nov 30 14:34:13 2007
+++ rtems/cpukit/posix/src/pthreadjoin.c Tue Mar 8 16:14:14 2011
</font><font color='#997700'>@@ -32,7 +32,7 @@
</font> Objects_Locations location;
void *return_pointer;
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadjoin.c:1.8 rtems/cpukit/posix/src/pthreadjoin.c:1.8.4.1
--- rtems/cpukit/posix/src/pthreadjoin.c:1.8 Fri Nov 30 14:34:13 2007
+++ rtems/cpukit/posix/src/pthreadjoin.c Tue Mar 8 16:14:56 2011
</font><font color='#997700'>@@ -32,7 +32,7 @@
</font> Objects_Locations location;
void *return_pointer;
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadkill.c:1.17 rtems/cpukit/posix/src/pthreadkill.c:1.18
--- rtems/cpukit/posix/src/pthreadkill.c:1.17 Fri Jul 30 13:53:06 2010
+++ rtems/cpukit/posix/src/pthreadkill.c Tue Mar 8 16:14:14 2011
</font><font color='#997700'>@@ -40,7 +40,7 @@
</font> if ( !is_valid_signo(sig) )
rtems_set_errno_and_return_minus_one( EINVAL );
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadkill.c:1.15 rtems/cpukit/posix/src/pthreadkill.c:1.15.2.1
--- rtems/cpukit/posix/src/pthreadkill.c:1.15 Tue Feb 3 04:10:55 2009
+++ rtems/cpukit/posix/src/pthreadkill.c Tue Mar 8 16:14:56 2011
</font><font color='#997700'>@@ -40,7 +40,7 @@
</font> if ( !is_valid_signo(sig) )
rtems_set_errno_and_return_minus_one( EINVAL );
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadsetschedparam.c:1.11 rtems/cpukit/posix/src/pthreadsetschedparam.c:1.12
--- rtems/cpukit/posix/src/pthreadsetschedparam.c:1.11 Wed Jun 24 01:38:52 2009
+++ rtems/cpukit/posix/src/pthreadsetschedparam.c Tue Mar 8 16:14:14 2011
</font><font color='#997700'>@@ -56,7 +56,7 @@
</font> /*
* Actually change the scheduling policy and parameters
*/
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadsetschedparam.c:1.11 rtems/cpukit/posix/src/pthreadsetschedparam.c:1.11.2.1
--- rtems/cpukit/posix/src/pthreadsetschedparam.c:1.11 Wed Jun 24 01:38:52 2009
+++ rtems/cpukit/posix/src/pthreadsetschedparam.c Tue Mar 8 16:14:56 2011
</font><font color='#997700'>@@ -56,7 +56,7 @@
</font> /*
* Actually change the scheduling policy and parameters
*/
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
</pre>
<p> </p>
<a name='cs3'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
<font color='#225522'><em>(on branch rtems-4-9-branch)</em></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1759/cpukit
* posix/src/cancel.c, posix/src/pthreaddetach.c,
posix/src/pthreadequal.c, posix/src/pthreadgetschedparam.c,
posix/src/pthreadjoin.c, posix/src/pthreadkill.c: Some POSIX pthread
services did not support using Classic API Task Ids.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.1539.2.71&r2=text&tr2=1.1539.2.72&diff_format=h">M</a></td><td width='1%'>1.1539.2.72</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/cancel.c.diff?r1=text&tr1=1.16&r2=text&tr2=1.16.2.1&diff_format=h">M</a></td><td width='1%'>1.16.2.1</td><td width='100%'>cpukit/posix/src/cancel.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreaddetach.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.7.2.1&diff_format=h">M</a></td><td width='1%'>1.7.2.1</td><td width='100%'>cpukit/posix/src/pthreaddetach.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadequal.c.diff?r1=text&tr1=1.10&r2=text&tr2=1.10.2.1&diff_format=h">M</a></td><td width='1%'>1.10.2.1</td><td width='100%'>cpukit/posix/src/pthreadequal.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadgetschedparam.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.8.2.1&diff_format=h">M</a></td><td width='1%'>1.8.2.1</td><td width='100%'>cpukit/posix/src/pthreadgetschedparam.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadjoin.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.8.2.1&diff_format=h">M</a></td><td width='1%'>1.8.2.1</td><td width='100%'>cpukit/posix/src/pthreadjoin.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/pthreadkill.c.diff?r1=text&tr1=1.14&r2=text&tr2=1.14.2.1&diff_format=h">M</a></td><td width='1%'>1.14.2.1</td><td width='100%'>cpukit/posix/src/pthreadkill.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.1539.2.71 rtems/cpukit/ChangeLog:1.1539.2.72
--- rtems/cpukit/ChangeLog:1.1539.2.71 Thu Mar 3 07:38:50 2011
+++ rtems/cpukit/ChangeLog Tue Mar 8 16:15:05 2011
</font><font color='#997700'>@@ -1,3 +1,11 @@
</font><font color='#000088'>+2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ PR 1759/cpukit
+ * posix/src/cancel.c, posix/src/pthreaddetach.c,
+ posix/src/pthreadequal.c, posix/src/pthreadgetschedparam.c,
+ posix/src/pthreadjoin.c, posix/src/pthreadkill.c: Some POSIX pthread
+ services did not support using Classic API Task Ids.
+
</font> 2011-03-03 Chris Johns <chrisj@rtems.org>
PR 1749/filesystem
<font color='#006600'>diff -u rtems/cpukit/posix/src/cancel.c:1.16 rtems/cpukit/posix/src/cancel.c:1.16.2.1
--- rtems/cpukit/posix/src/cancel.c:1.16 Thu Sep 4 10:23:11 2008
+++ rtems/cpukit/posix/src/cancel.c Tue Mar 8 16:15:07 2011
</font><font color='#997700'>@@ -46,7 +46,7 @@
</font> if ( _ISR_Is_in_progress() )
return EPROTO;
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreaddetach.c:1.7 rtems/cpukit/posix/src/pthreaddetach.c:1.7.2.1
--- rtems/cpukit/posix/src/pthreaddetach.c:1.7 Fri Nov 30 14:34:13 2007
+++ rtems/cpukit/posix/src/pthreaddetach.c Tue Mar 8 16:15:07 2011
</font><font color='#997700'>@@ -30,7 +30,7 @@
</font> POSIX_API_Control *api;
Objects_Locations location;
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadequal.c:1.10 rtems/cpukit/posix/src/pthreadequal.c:1.10.2.1
--- rtems/cpukit/posix/src/pthreadequal.c:1.10 Mon Apr 28 13:12:42 2008
+++ rtems/cpukit/posix/src/pthreadequal.c Tue Mar 8 16:15:07 2011
</font><font color='#997700'>@@ -51,7 +51,7 @@
</font> * Validate the first id and return 0 if it is not valid
*/
<font color='#880000'>- (void) _POSIX_Threads_Get( t1, &location );
</font><font color='#000088'>+ (void) _Thread_Get( t1, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#997700'>@@ -60,7 +60,7 @@
</font> * Validate the second id and return 0 if it is not valid
*/
<font color='#880000'>- (void) _POSIX_Threads_Get( t2, &location );
</font><font color='#000088'>+ (void) _Thread_Get( t2, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadgetschedparam.c:1.8 rtems/cpukit/posix/src/pthreadgetschedparam.c:1.8.2.1
--- rtems/cpukit/posix/src/pthreadgetschedparam.c:1.8 Fri Nov 30 14:34:13 2007
+++ rtems/cpukit/posix/src/pthreadgetschedparam.c Tue Mar 8 16:15:07 2011
</font><font color='#997700'>@@ -36,7 +36,7 @@
</font> if ( !policy || !param )
return EINVAL;
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadjoin.c:1.8 rtems/cpukit/posix/src/pthreadjoin.c:1.8.2.1
--- rtems/cpukit/posix/src/pthreadjoin.c:1.8 Fri Nov 30 14:34:13 2007
+++ rtems/cpukit/posix/src/pthreadjoin.c Tue Mar 8 16:15:07 2011
</font><font color='#997700'>@@ -32,7 +32,7 @@
</font> Objects_Locations location;
void *return_pointer;
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthreadkill.c:1.14 rtems/cpukit/posix/src/pthreadkill.c:1.14.2.1
--- rtems/cpukit/posix/src/pthreadkill.c:1.14 Thu Sep 4 10:23:12 2008
+++ rtems/cpukit/posix/src/pthreadkill.c Tue Mar 8 16:15:07 2011
</font><font color='#997700'>@@ -40,7 +40,7 @@
</font> if ( !is_valid_signo(sig) )
rtems_set_errno_and_return_minus_one( EINVAL );
<font color='#880000'>- the_thread = _POSIX_Threads_Get( thread, &location );
</font><font color='#000088'>+ the_thread = _Thread_Get( thread, &location );
</font> switch ( location ) {
case OBJECTS_LOCAL:
</pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>