ttyname() and linux+devfs

Matthias Urlichs smurf@noris.de
Fri Oct 30 06:47:00 GMT 1998


In dist.glibc, article <909753268.29893@noris.de>,
  Kenneth Johansson <erakeon@kieray1.p.y.ki.era.ericsson.se> writes:
> 
> That could explain why I dont get the thing to run I dont have a /proc. What
> would happen if i dont have /proc.

You lose, ttyname() fails. The same happens now if you dynamically create
the device files for your tty in /tmp.

That's not a normal case under Linux. Startup environments or embedded
minimal environments don't need ttyname(), IMHO.

Or alternately we could fall back on the old method.

-- 
Matthias Urlichs  |  noris network GmbH   |   smurf@noris.de  |  ICQ: 20193661
The quote was selected randomly. Really.    |      http://www.noris.de/~smurf/
-- 
Never remove an anomaly simply because it is an anomaly.
                                        -- Macaulay



More information about the Libc-hacker mailing list