bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: <sys/ioctl.h> status


From: Bruno Haible
Subject: Re: <sys/ioctl.h> status
Date: Fri, 10 Oct 2008 12:39:31 +0200
User-agent: KMail/1.5.4

Simon Josefsson wrote:
> Actually, glibc declares ioctl in stropts.h too.  However, stropts.h is
> not mention anywhere in the glibc manual.  The glibc manual says the
> ioctl function is declared in sys/ioctl.h.  The man page for ioctl on my
> system says sys/ioctl.h.

Yes. And additionally,
  - all Unix systems have <sys/ioctl.h>, whereas BSD systems don't have
    <stropts.h>,
  - Google codesearch reports 299000 usages of <sys/ioctl.h>, against
    43000 usages of <stropts.h>.

> I don't recall hearing of that header file before

Exactly. Sometimes the official standards are irrelevant because the de-facto
standard is different. That's the case here for this small aspect of POSIX.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]