From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4214 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.linux.lib.musl.general Subject: request: increase TTY_NAME_MAX in limits.h Date: Sat, 09 Nov 2013 11:07:32 +0000 Message-ID: <527E1774.4060305@skarnet.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1383995250 3756 80.91.229.3 (9 Nov 2013 11:07:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Nov 2013 11:07:30 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4218-gllmg-musl=m.gmane.org@lists.openwall.com Sat Nov 09 12:07:36 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Vf6O7-00017Q-UH for gllmg-musl@plane.gmane.org; Sat, 09 Nov 2013 12:07:36 +0100 Original-Received: (qmail 5210 invoked by uid 550); 9 Nov 2013 11:07:33 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 5182 invoked from network); 9 Nov 2013 11:07:31 -0000 X-SourceIP: 89.100.252.69 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 Xref: news.gmane.org gmane.linux.lib.musl.general:4214 Archived-At: 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