* flock() and OSF/1
@ 1995-12-07 5:00 Edward J Sabol
1995-12-10 5:00 ` Alan H. Martin
0 siblings, 1 reply; 2+ messages in thread
From: Edward J Sabol @ 1995-12-07 5:00 UTC (permalink / raw)
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 <sys/file.h> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: flock() and OSF/1
1995-12-07 5:00 flock() and OSF/1 Edward J Sabol
@ 1995-12-10 5:00 ` Alan H. Martin
0 siblings, 0 replies; 2+ messages in thread
From: Alan H. Martin @ 1995-12-10 5:00 UTC (permalink / raw)
In article <h4pwe0pl2t.fsf@dbsrv.gsfc.nasa.gov> Edward J Sabol <sabol@thuban.gsfc.nasa.gov> writes:
>... Why is flock() missing from the system headers then?
I don't know, but I've just reported the problem against Unix T4.0-1.
/AHM/THX
--
Alan Howard Martin AMartin@TLE.ENet.DEC.Com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-12-10 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-12-07 5:00 flock() and OSF/1 Edward J Sabol
1995-12-10 5:00 ` Alan H. Martin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox