[rtems commit] librpc: Use POSIX key instead of task variables

Joel Sherrill joel.sherrill at OARcorp.com
Mon Mar 24 18:02:43 UTC 2014


On 3/24/2014 12:56 PM, Sebastian Huber wrote:
> On 03/24/2014 06:39 PM, Joel Sherrill wrote:
>> On 3/24/2014 12:34 PM, Sebastian Huber wrote:
>>>> Hello Joel,
>>>>
>>>> On 03/24/2014 05:59 PM, Joel Sherrill wrote:
>>>>>> Grep'ing to see what was left, I see two things:
>>>>>>
>>>>>> + privateenv.c
>>>> what is your opinion on removing rtems_libio_share_private_env()?
>> Not sure.
>>>> http://www.rtems.org/pipermail/rtems-devel/2014-March/006134.html
>>>>
>>>> This would dramatically simplify the implementation.  What was the use
>>>> case for this function?
>> It allows a group of threads to share per-process information.  You can
>> share a single
>> copy across all threads, one unique instance per thread, or share
>> between a subset of
>> threads.
>>
>> I think one user of this feature is the ftp server. That may be the only
>> one.
>>
>>
> No, the FTP sever uses chroot() which uses rtems_libio_set_private_env().
I should have looked at the code. :)

I got to Munich about 605am this morning so am not 100% here mentally. :(
> The rtems_libio_share_private_env() is not used in the RTEMS tree.
>
Let's remove it.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985




More information about the devel mailing list