This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Split ttyname.c to avoid unnecessary dependencies
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- Cc: "newlib at sources dot redhat dot com" <newlib at sources dot redhat dot com>
- Date: Thu, 12 Feb 2009 15:54:52 +0100
- Subject: Re: Split ttyname.c to avoid unnecessary dependencies
- References: <4993EEC4.4090000@embedded-brains.de> <49943065.50109@oarcorp.com>
Joel Sherrill wrote:
> Sebastian Huber wrote:
>> Hi,
>>
>> the two functions ttyname() and ttyname_r() are currently defined in
>> one file
>>
>> libc/unix/ttyname.c
>>
>> The ttyname() function needs 1030 bytes of data (with common _PATH_DEV
>> and
>> MAXNAMLEN values). This is quite much if you have a system with a
>> small memory
>> space. The file should be split up into ttyname.c and ttyname_r.c to
>> avoid
>> this memory requirement if you only use ttyname_r().
>>
>>
> I don't disagree that this is a good idea but neither method
> shows up in the RTEMS minimum, hello, or ticker sample.
> What in RTEMS is pulling it into your application?
It is the telnet demon.
--
Sebastian Huber, Embedded Brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.