From mint-bounce@lists.fishpool.fi Wed Nov 25 10:24:16 2009 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=cVD72HMeJYwvv2B+Kby0KEd+IRH6SraKERDrv/Q+8/c=; b=KndSUOcrxJ6Z9vXRxQ+xS6iKc5klN4X2JWD/BNnS4a8uaCvDNkXdoL1aLTYnhyywPR naleXi4B2sMkGObPRfssha+xeWRVfNDRyyMUJVexzzWvprJc8y5NWaQ7IqsRcyUquxaF bnKYaM0BDaELKPF2whVh8djHD3SRisNs5SZPg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=RLosIdz3cxfxUVOwtqiWQ6VoG4U0X4z5THMYHQK4q7mqkJYRWnL4Lfv6ER5/6D3Oi7 IzASRXU4a+alF14X9PcNndSCziCrAKELUqyjQIwxjPtIiPoY7y27xPFt6bBxHZ/rlZFq WrjHNsm94MuYP/62PntgT8QNydSfzO7Xxt5/k= MIME-Version: 1.0 In-Reply-To: <1259137441.25889.681.camel@jetpack.demon.co.uk> References: <8cf5b8cc0911241239r6948330bne6c01130036b7383@mail.gmail.com> <1259099142.25889.117.camel@jetpack.demon.co.uk> <8cf5b8cc0911241506s7c0ea738y70d54efe4fe426d@mail.gmail.com> <1259104810.25889.128.camel@jetpack.demon.co.uk> <8cf5b8cc0911241537s36d22d0aj776518ce4fb77934@mail.gmail.com> <1259137441.25889.681.camel@jetpack.demon.co.uk> Date: Wed, 25 Nov 2009 16:11:04 +0100 Message-ID: <8cf5b8cc0911250711n49d85763x560dd1f714c5db93@mail.gmail.com> Subject: Re: [MiNT] usleep MiNTlib function From: =?ISO-8859-1?Q?David_G=E1lvez?= To: Alan Hourihane Cc: mint Content-Type: multipart/alternative; boundary=001636c928faac3fcb04793377fa X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: dgalvez75@gmail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: --001636c928faac3fcb04793377fa Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2009/11/25 Alan Hourihane > On Wed, 2009-11-25 at 00:37 +0100, David G=E1lvez wrote: > > > > > > > > > > Also check which should be like this at the top > > of the > > file... > > > > #ifndef __KERNEL__ > > # ifndef _FEATURES_H > > # include > > # endif > > > > /* See below. */ > > #define __KERNEL_NEG(c) c > > > > ... > > ... > > #endif > > > > Notice you see that __KERNEL_NEG(c) is just c and doesn't do > > any > > negation when it's not KERNEL > > > > > > > > > > Yes, this is what i have. > > Bizarre, what does /usr/include/errno.h do ? > > After that you need to find out where the errno values are being negated > in your setup in the mintlib. But it sounds like something maybe > defining __KERNEL__ when it shouldn't (and therefore really negating), > as that's restricted to building FreeMiNT kernel sources. > > Alan. > > That was, i had __KERNEL__ defined in my makefile. Thank you Alan --001636c928faac3fcb04793377fa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2009/11/25 Alan Hourihane <alanh@fairlite.co.uk>= ;
On Wed, 2009-11-25 at 00:37 +0100, David = G=E1lvez wrote:
>
>
>
>
> =A0 =A0 =A0 =A0 Also check <mint/errno.h> which should be like t= his at the top
> =A0 =A0 =A0 =A0 of the
> =A0 =A0 =A0 =A0 file...
>
> =A0 =A0 =A0 =A0 #ifndef __KERNEL__
> =A0 =A0 =A0 =A0 # ifndef _FEATURES_H
> =A0 =A0 =A0 =A0 # =A0include <features.h>
> =A0 =A0 =A0 =A0 # endif
>
> =A0 =A0 =A0 =A0 /* See below. =A0*/
> =A0 =A0 =A0 =A0 #define __KERNEL_NEG(c) c
>
> =A0 =A0 =A0 =A0 ...
> =A0 =A0 =A0 =A0 ...
> =A0 =A0 =A0 =A0 #endif
>
> =A0 =A0 =A0 =A0 Notice you see that __KERNEL_NEG(c) is just c and does= n't do
> =A0 =A0 =A0 =A0 any
> =A0 =A0 =A0 =A0 negation when it's not KERNEL
>
>
>
>
> Yes, this is what i have.

Bizarre, what does /usr/include/errno.h do ?

After that you need to find out where the errno values are being negated in your setup in the mintlib. But it sounds like something maybe
defining __KERNEL__ when it shouldn't (and therefore really negating),<= br> as that's restricted to building FreeMiNT kernel sources.

Alan.


That was, i had=A0 __KERNEL__ defined in m= y makefile.


Thank you Alan

=A0

--001636c928faac3fcb04793377fa--