delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/23/19:25:58

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199902240024.SAA05389@modi.xraylith.wisc.edu>
X-Authentication-Warning: modi.xraylith.wisc.edu: localhost.xraylith.wisc.edu [127.0.0.1] didn't use HELO protocol
To: Sebastien Barre <Sebastien DOT Barre AT utc DOT fr>
cc: cygwin mailing list <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: glob_t, glob(), glob.h or similar : where in B20.1 ?
In-reply-to: Your message of "Wed, 24 Feb 1999 00:39:04 +0100."
<4 DOT 1 DOT 19990224003338 DOT 01878020 AT mail DOT club-internet DOT fr>
Date: Tue, 23 Feb 1999 18:24:24 -0600
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

Sebastien Barre <Sebastien DOT Barre AT utc DOT fr> writes:
> I was wondering : where is glob.h ? 
> 
> I guess it's not "mandatory" or "standard", but I'm using the glob.h
> functions (glob()) and structures (glob_t & so on) in my sources, and was
> wondering :
> 
> 	- where are the similar functions in B20.1 ?
> 	- how can I emulate this in C in an efficient way ? 
> 
> I'm a bit surprised : these "globbing" features are quite common (and
> therefore API), how where they ported to cygwin32 ?

The glob functions are not part of POSIX.1, but I believe proposed for 
POSIX.2 (is it approved yet?). Cygwin winsup sources do have it, but
these are not exported.

I'll send a patch to cygwin folks. It's of course up to the Cygwin team 
to decide whether to export it or not.

Your best bet for now is to just take the glob.c and glob.h from winsup
sources (or some other GNU package the contain it, eg., make) and use 
that. If you don't have the Cygwin sources, you can get just the 
directory from Cygnus ftp server:
  ftp://sourceware.cygnus.com/pub/cygwin/latest/src-by-top-dir/

get the winsup.tar.bz2.
  
  $ bunzip2 -c winsup.tar.bz2 | \
    tar xvf - src/winsup/glob.h src/winsup/glob.c

will extract the two files. 

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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