delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/08/09:38:12

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <4370B80A.7000607@byu.net>
Date: Tue, 08 Nov 2005 07:36:58 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: "Fry, Chuck (GE Trans)" <chuck DOT fry AT ae DOT ge DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: opendir,readdir
References: <6C11E94E2E56C046BEBF2A077F15C382DB53AA AT CINMLVEM13 DOT e2k DOT ad DOT ge DOT com>
In-Reply-To: <6C11E94E2E56C046BEBF2A077F15C382DB53AA@CINMLVEM13.e2k.ad.ge.com>
X-IsSubscribed: yes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Fry, Chuck (GE Trans) on 11/8/2005 7:25 AM:
> I'm new to Cygwin, and I'm trying to port some applications that run under HPUX 10.20.
> When recompiling under Cygwin one of the applications won't link because the linker
> can't resolve getdirentries which is a HPUX function.  HP is obsolescing this function
> and recommends that you rewrite this function using opendir and readdir functions.

That is because opendir and readdir are specified by POSIX.

> 
> My question is does Cygwin support these functions and if so  what library are they
> located in.  They don't show up in the man pages, but the do show up in the man pages
> on a pc running RedHat Linux.

The cygwin man pages are known to be incomplete.  The only portable way to
know for sure if a function is provided on a given platform is the method
that autoconf uses - try compiling an actual program that uses the
function and see if you get a link error (in this case, you won't, because
cygwin provides these two functions).  Less portably, you can download the
source code, and inspect winsup/cygwin/cygwin.din to see all functions
that are available in the standard link libraries (ie. you don't even need
a -l option to gcc).  Or grep the headers in /usr/include to see if it is
defined.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDcLgK84KuGfSFAYARArlWAJ0T4xyykOhO6jUHh45QdxyZDKRFEQCfVpj2
SST1dgU+gtiZ+CnmMo4cBA4=
=lN42
-----END PGP SIGNATURE-----

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