mailing list of musl libc
 help / color / mirror / code / Atom feed
* request: increase TTY_NAME_MAX in limits.h
@ 2013-11-09 11:07 Laurent Bercot
  2013-11-09 16:36 ` Rich Felker
  0 siblings, 1 reply; 5+ messages in thread
From: Laurent Bercot @ 2013-11-09 11:07 UTC (permalink / raw)
  To: musl

  Hello,

  TTY_NAME_MAX is currently 20. This is not enough for me. Could it
be increased a bit ?

  Explanation: my /dev is actually a symlink to /mnt/tmpfs/dev, and
ttyname_r() writes fully resolved paths, so "/mnt/tmpfs/dev/pts/0"
is *just* too large to fit into the 20 bytes static buffer provided
by ttyname().
  Impact: it breaks dropbear, which instantly dies when ttyname() fails -
this is a deal breaker for me. Less importantly, it also breaks the %y%
prompt mechanism in zsh, which prints the default "tty" instead of the
correct name.

I'd like to be able to use prebuilt musl toolchains, like Gregor's ones,
or Rob's ones when they come out, so editing limits.h myself won't cut it.
24 bytes would be enough for me to have 10k ptys (which will never happen).
So... can I haz 4 more bytes plz ?

  Thanks,

-- 
  Laurent


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-28 16:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-09 11:07 request: increase TTY_NAME_MAX in limits.h Laurent Bercot
2013-11-09 16:36 ` Rich Felker
2013-11-09 17:20   ` Laurent Bercot
2013-11-09 17:38     ` Rich Felker
2013-11-28 16:05       ` Rob Landley

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).