Split ttyname.c to avoid unnecessary dependencies

Sebastian Huber sebastian.huber@embedded-brains.de
Thu Feb 12 14:55:00 GMT 2009


the two functions ttyname() and ttyname_r() are currently defined in one file


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().

Have a nice day!

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.

More information about the Newlib mailing list