[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: errno values after fcntl() in glibc-2.2.1
From: |
Ulrich Drepper |
Subject: |
Re: errno values after fcntl() in glibc-2.2.1 |
Date: |
20 Feb 2001 14:44:07 -0800 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef) |
Bryan Ericson <address@hidden> writes:
> In working with glibc 2.2.1, I noticed an inconsistency in the
> way fcntl() sets errno. fcntl() returns zero, but errno is
> set to ENOSYS, as is demonstrated by running the following test
> code:
It's none of your business to look at errno unless the function you
called signals an error. The behavior is correct.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------