delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/04/11:19:24

Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <36B9826D.7B11348B@wgn.net>
Date: Thu, 04 Feb 1999 03:20:13 -0800
From: "$Bill Luebkert" <dbe AT wgn DOT net>
Organization: DBE Collectibles
X-Mailer: Mozilla 4.5 [en] (Win95; U)
X-Accept-Language: en,en-GB
MIME-Version: 1.0
To: Chris <Christine DOT Pourcelot AT inria DOT fr>
CC: cygwin <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: [B20.1] FIONBIO : which one is the right one ?
References: <36B97FA7 DOT B10A325F AT inria DOT fr>

Chris wrote:
> 
> Hi,
> I've got a warning while compiling : FIONBIO redefined...
> 
> in include/windows32/sockets.h :
> #define FIONBIO     _IOW('f', 126, u_long)
> 
> in include/sys/termios.h :
> #define FIONBIO 0x8004667e /* To be compatible with socket version */
> 
> which one shall I take ?

Hi Chris,

They're basically the same thing, just two different ways to say it.

0x80000000	_IOW macro refers to IOC_IN=0x80000000 or'd with all of the below
0x00040000	4 = sizeof u_long (left shifted 16)
0x00006600	'f' = 0x66 (left shifted 8)
0x0000007e	126 = 0x7e
----------
0x8004667e	or them alltogether and get this

HTH,
-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   http://www.wgn.net/~dbe/
  / ) /--<  o // //      Mailto:dbe AT wgn DOT net   V3: http://come.to/dbe
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019