This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: pthread_atfork()
I couldn't find information about memory requirement and size of compiled code.
Do you think it would support a 64k RAM architecture?
Regards,
2009/1/13 Raphael Derosso Pereira <raphaelpereira@gmail.com>:
> Does it support a 64k RAM architecture?
>
> 2009/1/13 Joel Sherrill <joel.sherrill@oarcorp.com>:
>> Raphael Derosso Pereira wrote:
>>>
>>> Hello Joel,
>>>
>>> I agree that it should be a prototype.
>>>
>>> I'm building my own OS, based on FreeRTOS, but with a POSIX-like layer
>>> for an ARM7 target, so I can port my code from other architectures
>>> without being FreeRTOS specific.
>>>
>>
>> Hmmm... Have you looked at RTEMS? We have nearly
>> everything from POSIX that doesn't require fork/exec.
>> This includes BSD TCP/IP and filesystems.
>>
>> We have ARM 7, 9 and Thumb BSPS in the tree. The
>> Gameboy Advance is an ARM7. :)
>>
>> --joel
>>>
>>> 2009/1/13 Joel Sherrill <joel.sherrill@oarcorp.com>:
>>>
>>>>
>>>> Raphael Derosso Pereira wrote:
>>>>
>>>>>
>>>>> Hello,
>>>>>
>>>>> I'm wandering if the code
>>>>>
>>>>> #if !defined(__rtems__)
>>>>> #warning "Add pthread_atfork() prototype"
>>>>> #endif
>>>>>
>>>>> is really necessary! It means that anyone not using rtems must see
>>>>> this warning for every file that includes pthread.h!
>>>>>
>>>>> Isn't there another way to do it right?
>>>>>
>>>>>
>>>>
>>>> The newlib pthread.h came from RTEMS and we have
>>>> multiple threads but not multiple processes. So
>>>> I would suggest changing the warning to a prototype.
>>>> This is what opengroup.org has:
>>>>
>>>> |int pthread_atfork(void (*/prepare/)(void), void (*/parent/)(void),
>>>> void (*/child/)(void));|
>>>>
>>>> Out of curiosity what other target has pthread support
>>>> and uses newlib's pthread.h. I thought cygwin had its own
>>>> version.
>>>>
>>>>>
>>>>> Best regards,
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> Joel Sherrill, Ph.D. Director of Research & Development
>>>> joel.sherrill@OARcorp.com On-Line Applications Research
>>>> Ask me about RTEMS: a free RTOS Huntsville AL 35805
>>>> Support Available (256) 722-9985
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Joel Sherrill, Ph.D. Director of Research & Development
>> joel.sherrill@OARcorp.com On-Line Applications Research
>> Ask me about RTEMS: a free RTOS Huntsville AL 35805
>> Support Available (256) 722-9985
>>
>>
>>
>
>
>
> --
> Raphael Derosso Pereira
> Engenheiro de Computação
> icq: 4517421
> msn: rderossopereira@hotmail.com
> Skype: rderossopereira
>
--
Raphael Derosso Pereira
Engenheiro de Computação
icq: 4517421
msn: rderossopereira@hotmail.com
Skype: rderossopereira