[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: <sys/ioctl.h> status
From: |
Simon Josefsson |
Subject: |
Re: <sys/ioctl.h> status |
Date: |
Fri, 10 Oct 2008 11:01:03 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> Where should ioctl() be declared? Certainly not in <sys/socket.h>. Most
> platforms have it in <sys/ioctl.h>. Only AIX and Solaris declare it in
> <unistd.h> instead. POSIX specifies it should be declared <stropts.h>,
> but many platforms don't have <stropts.h> (and who needs STREAMS anyway?).
> The de-facto standard is apparently <sys/ioctl.h>.
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.
Does the new POSIX document change anything? I notice that "ioctl.h"
doesn't result in anything on the current opengroup.org site.
I don't care strongly. Given that opengroup.org uses stropts.h, that
might be nice if we want to support them, but I don't recall hearing of
that header file before so it may be simpler to forget about it. So a
+0.5 on sys/ioctl.h from me.
/Simon