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

POSIX library for Windows XP

P: n/a
Hello,
I am using an Absoft FORTRAN/C compiler to compile some legacy code
on a Windows XP machine. The open, read, write, close are missing
from the C code. Does anyone know of source code for building
a Windows POSIX library to implement these calls?

Any and all replies are appreciated.
Thanks
Len
--
__________________________________________________ __
Leonard J. Reder
Jet Propulsion Laboratory
Interferometry Systems and Technology Section 383
Email: re***@huey.jpl.nasa.gov
Phone (Voice): 818-354-3639
Phone (FAX): 818-354-4357
Mail Address:
Mail Stop: 171-113
4800 Oak Grove Dr.
Pasadena, CA. 91109
---------------------------------------------------
Apr 13 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Leonard J. Reder wrote:
Hello,
I am using an Absoft FORTRAN/C compiler to compile some legacy code
on a Windows XP machine. The open, read, write, close are missing
from the C code. Does anyone know of source code for building
a Windows POSIX library to implement these calls?

Any and all replies are appreciated.
Thanks
Len


The Microsoft Platform SDK used to come with source code for the
functionally equivalent routines _open, etc.

N. Shamsundar
University of Houston

Apr 13 '06 #2

P: n/a
"Leonard J. Reder" <re***@jpl.nasa.gov> writes:
Hello,
I am using an Absoft FORTRAN/C compiler to compile some legacy code
on a Windows XP machine. The open, read, write, close are missing
from the C code. Does anyone know of source code for building
a Windows POSIX library to implement these calls?


www.cygwin.com might have what you need.

--
burton samograd kruhft .at. gmail
kruhft.blogspot.com www.myspace.com/kruhft metashell.blogspot.com
Apr 13 '06 #3

P: n/a
"N. Shamsundar" wrote:

The Microsoft Platform SDK used to come with source code for the
functionally equivalent routines _open, etc.


Last time I tried these, many of them were badly broken on
the version of windows I was using at the time (win98).

The solution I used was to provide a wrapper version of the
POSIX functions which get used throughout the application
and then the wrapper get defined using either the POSIX
functions where they exist and work or the ghastly native
windows functions (OpenFile, ReadFile etc).
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
"I believe C++ instills fear in programmers, fear that the
interaction of some details causes unpredictable results. Its
unmanageable complexity has spawned more fear-preventing tools
than any other language, but the solution _should_ have been
to create and use a language that does not overload the
whole goddamn human brain with irrelevant details."
-- Erik Naggum
Apr 13 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.