By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,223 Members | 1,463 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,223 IT Pros & Developers. It's quick & easy.

What is the *nix equivalent of win32 io.h ?

P: n/a
Hi. I'm trying to port a piece of code, written for win32, that uses
the
finddata_t structure.
Is there an equivalent , or a work-around, that implement finddata_t on
*nix
platforms?

Nov 14 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
gr****@gmail.com wrote:
Hi. I'm trying to port a piece of code, written for win32, that uses
the
finddata_t structure.
Is there an equivalent , or a work-around, that implement finddata_t on
*nix
platforms?


Please ask your question in the appropriate newsgroup. Neither ISO C89
nor ISO C99 defines findata_t. Try asking your question in
comp.unix.programmer or somewhere else relevant.

Joe Estock
Nov 14 '05 #2

P: n/a
On 11 Apr 2005 10:35:28 -0700, gr****@gmail.com
<gr****@gmail.com> wrote:
Hi. I'm trying to port a piece of code, written for win32, that uses
the
finddata_t structure.
Is there an equivalent , or a work-around, that implement finddata_t on
*nix
platforms?


Try asking on a Unix newsgroup (comp.unix.programmer for instance), and
describe there what the structure is meant to do and what you are trying
to achieve with it. I have no idea what finddata_t is supposed to do or
contain so I can't even guess at a Unix equivalent (I can tell you that
thre's nothing with that name in any of the include files on my system).

Chris C
Nov 14 '05 #3

P: n/a
In article <11*********************@f14g2000cwb.googlegroups. com>,
gr****@gmail.com <gr****@gmail.com> wrote:
Hi. I'm trying to port a piece of code, written for win32, that uses
the
finddata_t structure.
Is there an equivalent , or a work-around, that implement finddata_t on
*nix
platforms?


opendir(), readdir(), closedir() perhaps ?

I found some code that impliments those for DOS in terms of
finddata_t so that suggests that they are plausible Unix equivilents.

http://svn.annodex.net/libannodex/trunk/win32/dirent.h

--
"No one has the right to destroy another person's belief by
demanding empirical evidence." -- Ann Landers
Nov 14 '05 #4

P: n/a
On 11 Apr 2005 19:14:20 GMT, in comp.lang.c ,
ro******@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote:
In article <11*********************@f14g2000cwb.googlegroups. com>,
gr****@gmail.com <gr****@gmail.com> wrote:
Hi. I'm trying to port a piece of code, written for win32, that uses
the
finddata_t structure.
Is there an equivalent , or a work-around, that implement finddata_t on
*nix
platforms?
opendir(), readdir(), closedir() perhaps ?


Er, how likely is it that three functions are the equivalent of a
typedef?
I found some code that impliments those for DOS in terms of
finddata_t so that suggests that they are plausible Unix equivilents.


perhaps. The best answer would be to redirect the OP to
comp.unix,programmer and advise them to ask about what tehy really
want to do.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>
Nov 14 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.