This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] grantpt errno values


Thorsten Kukuk <kukuk@suse.de> writes:

> --- sysdeps/unix/sysv/linux/ptsname.c
> +++ sysdeps/unix/sysv/linux/ptsname.c	2001/12/10 09:31:15
> @@ -85,8 +85,7 @@
>  
>    if (!__isatty (fd))
>      {
> -      __set_errno (ENOTTY);
> -      return ENOTTY;
> +      return errno;
>      }

That this change works for you is only a side effect of the current
implementation of isatty().  This functions isn't required to set
errno to a specific value.

In which case did you see a wrong errno value?  This must be
discovered differently.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]