From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Weimer Subject: Re: [PATCH glibc] Linux: Include in under __USE_MISC Date: Mon, 22 Jul 2019 15:44:39 +0200 Message-ID: <87lfwqqj3s.fsf@oldenburg2.str.redhat.com> References: <87ftmys3un.fsf@oldenburg2.str.redhat.com> <2431941f-3aac-d31f-e6f5-8ed2ed7b2e5c@arm.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org In-Reply-To: <2431941f-3aac-d31f-e6f5-8ed2ed7b2e5c@arm.com> (Szabolcs Nagy's message of "Mon, 22 Jul 2019 13:41:07 +0000") To: Szabolcs Nagy Cc: Arnd Bergmann , nd , GNU C Library , Sergei Trofimovich , Networking , Linux Kernel Mailing List , "David S. Miller" , Michael Kerrisk , linux-man List-Id: linux-man@vger.kernel.org * Szabolcs Nagy: > (note: in musl these ioctl macros are in sys/ioctl.h > which is not a posix header so namespace rules are > less strict than for sys/socket.h and users tend to > include it for ioctl()) can be confusing because some of the constants may depend on types that aren't declared by including the header. This makes their macros unusable. Defining ioctl constants in headers which also provide the matching types avoids that problem at least, also it can introduce namespace issues. Thanks, Florian