This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: FreeBSD port (42): ptsname
- From: Roland McGrath <roland at redhat dot com>
- To: Bruno Haible <bruno at clisp dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Fri, 20 Sep 2002 13:11:33 -0700
- Subject: Re: FreeBSD port (42): ptsname
> Still the caller (ptsname) needs a patch so that it doesn't convert
> the correct errno from __isatty to an incorrect one (EBADF to ENOTTY).
Thanks, I fixed that. However, I don't see why you changed isatty in a
hairy way. The ioctl call will set errno. I just fixed it not to save and
restore it. I've also made that file moot by adding bsd4.4/isatty.c that
just includes the sysdeps/posix one, which uses tcgetattr rather than
ioctl. In bsd4.4 tcgetattr is just one ioctl (not the several in bsd), so
there is no extra overhead with it. Anyway I suspect one day the old
ioctls will disappear and so should not be used.