This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: missing io.h header file?


>>>>> "Valery" == Valery Kobrin <vkobrin@hotmail.com> writes:

    Valery> I have an OpenBSD 3.1 box with gcc included in the OS and
    Valery> I could not find the io.h file or any other header file,
    Valery> containing access() function. Is it missing in OpenBSD or
    Valery> does not included in gcc at all?

Usually GCC comes with no header files that you want to use
directly. Your C library should provide the standard functions. 

I suppose you meant this function: ?
,----
| ACCESS(2)                  System calls                 ACCESS(2)
| 
| NAME
|        access - check user's permissions for a file
| 
| SYNOPSIS
|        #include <unistd.h>
| 
|        int access(const char *pathname, int mode);
`----

This is an extract of the man page on my Linux box - I don't know
where OpenBSD (resp. your C library) declares that function, but try
'man 2 access'.

HTH
Claudio


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