delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/12/13:36:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 12 Mar 2004 13:34:34 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Missing /include/sys/stropts.h? [gold star alert]
In-Reply-To: <20040312181509.GA20897@redhat.com>
Message-ID: <Pine.GSO.4.56.0403121333490.18922@slinky.cs.nyu.edu>
References: <20040312160736 DOT 9598 DOT qmail AT web11201 DOT mail DOT yahoo DOT com> <NUTMEGrI8L4jcfKsBU90000012c AT NUTMEG DOT CAM DOT ARTIMI DOT COM> <20040312181509 DOT GA20897 AT redhat DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Fri, 12 Mar 2004, Christopher Faylor wrote:

> On Fri, Mar 12, 2004 at 05:19:35PM -0000, Dave Korn wrote:
> >> -----Original Message-----
> >> From: cygwin-owner On Behalf Of Shawn Legrand
> >> Sent: 12 March 2004 16:08
> >
> >> Should the file stropts.h exist on CygWin?
> >
> >  You already answered that one yourself:
> >
> >>  I checked and there is no such file there or in
> >> any directory off of root or in the CVS source tree.
> >
> >  Anyway, you also asked:
> >
> >> If not - could I
> >> copy it from a Unix system (such as a MAC BSD (OS X)) and put
> >> it in CygWin?
> >
> >  That kind of game almost never works.  Sure, the initial compilation will
> >succeed, or at least it won't error out with a missing file, but since
> >whatever library functions or OS features the header file describes don't
> >actually exist on your system, it isn't going to help any: it'll probably
> >all fall apart at the final link stage.
> >
> >  BTW and FYI, here's the generic recipe for figuring out the answer to
> >these sorts of question:
> >
> >  stropts.h (a moment's googling shows me) is related to POSIX streams
> >functionality.
> >
> >  By searching for the keyword streams in the Posix spec at
> >http://www.opengroup.org/onlinepubs/007904975/nframe.html I found a few of
> >the functions involved were fattach, fdetach, putmsg, putpmsg.
> >
> >  By searching in the cygwin api reference at
> >http://cygwin.com/cygwin-api/cygwin-api.html I couldn't find any of those
> >functions.
> >
> >  So my deduction is that the POSIX streams functionality isn't implemented
> >by cygwin and therefore it's no surprise the header isn't there.
> >
> >  This also means that the program you are trying to compile depends on OS
> >functionality that cygwin doesn't provide, and so porting it to cygwin will
> >never be a simple configure'n'make.
>
> Can we get a gold star over here for exemplary use of reasoning powers?
>
> Thank you, Dave, for explaining how to think about problems like this.
> cgf

We sure can.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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

- Raw text -


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