This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: opendir,readdir


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]