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

Bug#164638: marked as done (libc6-dev: SIOCSIFNAME needs to be added)



Your message dated Mon, 14 Oct 2002 00:20:00 -0400
with message-id <20021014042000.GC979@phunnypharm.org>
and subject line Bug#164638: libc6-dev: SIOCSIFNAME needs to be added
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 14 Oct 2002 01:51:27 +0000
>From herbert@gondor.apana.org.au Sun Oct 13 20:51:26 2002
Return-path: <herbert@gondor.apana.org.au>
Received: from eriador.apana.org.au [203.14.152.116] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 180uOD-0006vc-00; Sun, 13 Oct 2002 20:51:26 -0500
Received: from gondolin.me.apana.org.au ([192.168.0.6] ident=mail)
	by eriador.apana.org.au with esmtp (Exim 3.35 #1 (Debian))
	id 180uO9-000324-00
	for <submit@bugs.debian.org>; Mon, 14 Oct 2002 11:51:21 +1000
Received: from herbert by gondolin.me.apana.org.au with local (Exim 3.36 #1 (Debian))
	id 180uO8-0001KG-00
	for <submit@bugs.debian.org>; Mon, 14 Oct 2002 11:51:20 +1000
From:  <herbert@gondor.apana.org.au>
Subject: libc6-dev: SIOCSIFNAME needs to be added
To: submit@bugs.debian.org
X-Mailer: bug 3.3.10.1
Message-Id: <[🔎] E180uO8-0001KG-00@gondolin.me.apana.org.au>
Date: Mon, 14 Oct 2002 11:51:20 +1000
Delivered-To: submit@bugs.debian.org

Package: libc6-dev
Version: 2.2.5-14.3
Severity: normal

Please add this line to bits/ioctls.h:

#define SIOCSIFNAME        0x8923          /* set interface name */

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux gondolin 2.4.18-686-smp #1 SMP Sun Apr 14 12:07:19 EST 2002 i686 unknown unknown GNU/Linux

Versions of the packages libc6-dev depends on:
ii  libc6          2.2.5-14.3     GNU C Library: Shared libraries and Timezone

---------------------------------------
Received: (at 164638-done) by bugs.debian.org; 14 Oct 2002 04:20:22 +0000
>From bmc@phunnypharm.org Sun Oct 13 23:20:22 2002
Return-path: <bmc@phunnypharm.org>
Received: from blowme.phunnypharm.org [65.207.35.140] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 180wiM-0004Jg-00; Sun, 13 Oct 2002 23:20:22 -0500
Received: from hopper.phunnypharm.org ([192.168.0.13] ident=mail)
	by blowme.phunnypharm.org with esmtp (Exim 3.35 #1 (Debian))
	id 180wi5-0000eQ-00; Mon, 14 Oct 2002 00:20:05 -0400
Received: from bmc by hopper.phunnypharm.org with local (Exim 3.36 #1 (Debian))
	id 180wi1-0000Vf-00; Mon, 14 Oct 2002 00:20:01 -0400
Date: Mon, 14 Oct 2002 00:20:00 -0400
From: Ben Collins <bcollins@debian.org>
To: herbert@gondor.apana.org.au, 164638-done@bugs.debian.org
Subject: Re: Bug#164638: libc6-dev: SIOCSIFNAME needs to be added
Message-ID: <20021014042000.GC979@phunnypharm.org>
References: <[🔎] E180uO8-0001KG-00@gondolin.me.apana.org.au>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] E180uO8-0001KG-00@gondolin.me.apana.org.au>
User-Agent: Mutt/1.4i
Delivered-To: 164638-done@bugs.debian.org

On Mon, Oct 14, 2002 at 11:51:20AM +1000, herbert@gondor.apana.org.au wrote:
> Package: libc6-dev
> Version: 2.2.5-14.3
> Severity: normal
> 
> Please add this line to bits/ioctls.h:
> 
> #define SIOCSIFNAME        0x8923          /* set interface name */

ioctl's are not defined by libc headers.

Aside from that, this ioctl is indeed defined in linux/sockios.h, which
is included by bits/ioctls.h, which is then included by sys/ioctl.h. So
doing:

#include <sys/ioctl.h>

Will get you what you want. E.g.


hopper:~# cat test.c
#include <sys/ioctl.h>

int main() {
        printf("0x%04x\n", SIOCSIFNAME);
        return 0;
}
hopper:~# gcc -o test test.c
hopper:~# ./test
0x8923


-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo       - http://www.deqo.com/



Reply to: