Re: ISO versions of open(), read(), lseek()
Re: ISO versions of open(), read(), lseek()
- Subject: Re: ISO versions of open(), read(), lseek()
- From: Sherm Pendley <email@hidden>
- Date: Tue, 4 Jan 2011 14:32:12 -0500
On Tue, Jan 4, 2011 at 2:16 PM, Todd Heberlein <email@hidden> wrote:
> I have to maintain some C++ code between Xcode on a Mac and Visual Studio on Windows, and the Windows compiler kindly encouraged me to use the ISO versions of open(), read(), lseek() and so on (these are _open(), _read(), _lseek() ... (and seem to be defined in io.h)). I was looking for these library calls on the Mac and could not find them.
>
> Are they there somewhere and I just couldn't find them?
I suspect you're looking at the wrong "open" man page. "man 2 open" is
the one you want, and indicates that open() is declared in fcntl.h.
"man 1 open" describes the shell command, not the C function.
sherm--
--
Cocoa programming in Perl:
http://camelbones.sourceforge.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden