|
From: | Eric Blake |
Subject: | isatty() and errno |
Date: | Mon, 07 Nov 2011 16:18:32 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.4 Thunderbird/3.1.15 |
But that means it is likely that other GNU code will assume isatty() sets errno. Should we provide an isatty() module that guarantees that errno will be set when returning 0? Or should I just patch ptsname.c to guarantee that errno is set without relying on isatty() to do the job?
-- Eric Blake address@hidden +1-801-349-2682 Libvirt virtualization library http://libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |