From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4905df5e99d2d517,start X-Google-Attributes: gidfee84,public From: Edward J Sabol Subject: flock() and OSF/1 Date: 1995/12/07 Message-ID: #1/1 X-Deja-AN: 121162341 organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA reply-to: Edward J Sabol newsgroups: comp.unix.osf.osf1 I'm trying to use flock() in my C program, but I can't see to find flock()'s declaration in any of the headers. The man page says that should be #include'd, but gcc still gives me a warning that I'm making an implicit declaration of flock(). What's the deal? I did a grep on all the header files in /usr/include and its subdirectories, and none of them contain a declaration for flock(). The code works fine otherwise, so obviously the system supports flock(). Why is flock() missing from the system headers then? I'm using a DEC Alpha with OSF/1 3.2 and gcc 2.7.0 with -Wall and -pedantic switches. I also encounter the same problem with OSF/1 3.0 and gcc 2.6.3. Thanks, Ed