delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/06/08:59:48

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 6 Aug 2009 14:59:25 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: sysmacros.h
Message-ID: <20090806125925.GA15940@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1ef5a52f0908060340j4ec36896nab8360787e312503 AT mail DOT gmail DOT com> <1ef5a52f0908060540u73a0e24pb478d6f41eda5818 AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <1ef5a52f0908060540u73a0e24pb478d6f41eda5818@mail.gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Aug  6 14:40, Csaba Raduly wrote:
> Corinna Vinschen wrote:
> > Same as on Linux.
> 
> Yes, but on Linux, sysmacros.h contains more than just minor, major and makedev.
> 
> 
> Also, on the Linuxes I checked (RHEL 4, Ubuntu 8.10, SLES 10.2, SUSE
> 10.0, SLES 9), it is guarded by a #ifdef:
> 
> #ifdef  __USE_BSD
> /* In BSD <sys/types.h> is expected to define BYTE_ORDER.  */
> # include <endian.h>
> 
> /* It also defines `fd_set' and the FD_* macros for `select'.  */
> # include <sys/select.h>
> 
> /* BSD defines these symbols, so we follow.  */
> # include <sys/sysmacros.h>
> #endif /* Use BSD.  */
> 
> 
> __USE_BSD is defined only if _BSD_SOURCE is defined. Perhaps Cygwin
> could follow suit here too.

__USE_BSD is defined by default when compiling applications on Linux.
Cygwin/newlib does not have the complex system of defines which differ
between BSD/SYSV/POSIX/GNU/C89/C99/etc and allow to include and exclude
symbols based on that.  The newlib system is much less elaborate.  We
simply lack the volunteering manpower Linux and glibc have.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

- Raw text -


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