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

Chris Johns chrisj at rtems.org
Tue Mar 25 04:31:21 UTC 2014


On 25/03/2014 5:02 am, Joel Sherrill wrote:
>
> 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.
>

+1

Chris



More information about the devel mailing list