<div dir="auto">PS: the git-rm is missing?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 27, 2021, 10:09 AM Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">@Joel: you ok with this cross-link between classic and posix layers?<br>
<br>
On Tue, Apr 27, 2021 at 3:12 AM Sebastian Huber<br>
<<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank" rel="noreferrer">sebastian.huber@embedded-brains.de</a>> wrote:<br>
><br>
> This may reduce the code size a bit.<br>
> ---<br>
> cpukit/Makefile.am | 1 -<br>
> cpukit/rtems/src/taskself.c | 4 ++++<br>
> spec/build/cpukit/librtemscpu.yml | 1 -<br>
> 3 files changed, 4 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am<br>
> index a8cce3c287..2ae7057d21 100644<br>
> --- a/cpukit/Makefile.am<br>
> +++ b/cpukit/Makefile.am<br>
> @@ -627,7 +627,6 @@ librtemscpu_a_SOURCES += posix/src/pthreadgetschedparam.c<br>
> librtemscpu_a_SOURCES += posix/src/pthreadinitthreads.c<br>
> librtemscpu_a_SOURCES += posix/src/pthreadjoin.c<br>
> librtemscpu_a_SOURCES += posix/src/pthreadonce.c<br>
> -librtemscpu_a_SOURCES += posix/src/pthreadself.c<br>
> librtemscpu_a_SOURCES += posix/src/pthreadsetaffinitynp.c<br>
> librtemscpu_a_SOURCES += posix/src/pthreadsetnamenp.c<br>
> librtemscpu_a_SOURCES += posix/src/pthreadsetschedparam.c<br>
> diff --git a/cpukit/rtems/src/taskself.c b/cpukit/rtems/src/taskself.c<br>
> index 193e691ce5..2eb282ce8d 100644<br>
> --- a/cpukit/rtems/src/taskself.c<br>
> +++ b/cpukit/rtems/src/taskself.c<br>
> @@ -22,7 +22,11 @@<br>
><br>
> #include <rtems/rtems/tasksimpl.h><br>
><br>
> +#include <pthread.h><br>
> +<br>
> rtems_id rtems_task_self(void)<br>
> {<br>
> return _Thread_Get_executing()->Object.id;<br>
> }<br>
> +<br>
> +RTEMS_ALIAS( rtems_task_self ) pthread_t pthread_self( void );<br>
> diff --git a/spec/build/cpukit/librtemscpu.yml b/spec/build/cpukit/librtemscpu.yml<br>
> index a3a9ee42e3..5842bf7ac2 100644<br>
> --- a/spec/build/cpukit/librtemscpu.yml<br>
> +++ b/spec/build/cpukit/librtemscpu.yml<br>
> @@ -1119,7 +1119,6 @@ source:<br>
> - cpukit/posix/src/pthreadinitthreads.c<br>
> - cpukit/posix/src/pthreadjoin.c<br>
> - cpukit/posix/src/pthreadonce.c<br>
> -- cpukit/posix/src/pthreadself.c<br>
> - cpukit/posix/src/pthreadsetaffinitynp.c<br>
> - cpukit/posix/src/pthreadsetnamenp.c<br>
> - cpukit/posix/src/pthreadsetschedparam.c<br>
> --<br>
> 2.26.2<br>
><br>
> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>