X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SARE_HEAD_8BIT_SPAM,SARE_SUB_ENC_UTF8
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <CABn7SNZv+QOpOtBwH1VxpM37ggrOHOgmacHEZ0jMWpybTtUZqA@mail.gmail.com>
References: <CABn7SNZv+QOpOtBwH1VxpM37ggrOHOgmacHEZ0jMWpybTtUZqA@mail.gmail.com>
Date: Mon, 19 Mar 2012 10:33:39 +0100
Message-ID: <CAEhDDbDYL296pR_mWsoWA9_v2u_RgGMowYqwT6DsaRArSoJJwQ@mail.gmail.com>
Subject: =?UTF-8?B?UmU6IEF0dGVtcHQgdG8gYnVpbGQgYXBsdXMtZnNmLeKAizQuMjIgKEVudW1UYWJsZeKAiw==?=	=?UTF-8?B?KQ==?=
From: Csaba Raduly <rcsaba@gmail.com>
To: cygwin@cygwin.com, tavmem@gmail.com
Content-Type: text/plain; charset=ISO-8859-1
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q2J9YIfD030045

Hi Tom,

On Mon, Mar 19, 2012 at 1:29 AM, Tom Szczesny  wrote:
> In Gentoo Linux:
>
> aplus-fsf-4.22/src/cxsys/eponymous.c      contains           #include
> <sys/ioctl.h>
> sys/ioctl.h                                                  contains
>         #include <bits/ioctls.h>
> bits/ioctls.h                                                contains
>         #include <asm/ioctls.h>
> asm/ioctls.h                                               contains
>       #include <asm-generic/ioctls.h>
> asm-generic/ioctls.h                                  has the
> difinitions that are required.

Which definitions are required?

>
> Since I can't change cygwin, my plan is to put a copy of
> asm-generic/ioclts.h into the aplus source package.

That's a bad idea. Those values are Linux-specific. Your program might
compile, but is bound to fail at run time.
If an ioctl macro is not defined on Cygwin, it's because the
functionality is not implemented. In this case, sending a random
number to the ioctl function is not going to magically make it work.

asm-generic/ioctls.h contains #include <linux/ioctl.h>
Do you think that would work?

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


