[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open()



Petr Stehlik <stehlik@cas3.zlin.vutbr.cz> writes:

|> On Mon, 11 May 1998 18:17:38 +0000, johnnie ligotage wrote:
|> jl>> unistd.h declares read(), write() and close(), but not open(). I haven't
|> jl>> found the declaration of open() anywhere in MiNTlib's header files.
|> jl>
|> jl>There's one in fcntl.h: is that the one you're after?

|> Yes, that's it. Thanks.

|> BTW, is it usual to #include both <fcntl.h> and <unistd.h> just to get
|> open() and close()?

<fcntl.h> also defines the O_* constants, so you'll need that anyway.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
schwab@gnu.org