From: Edward J Sabol <sabol@thuban.gsfc.nasa.gov>
Subject: flock() and OSF/1
Date: 1995/12/07 [thread overview]
Message-ID: <h4pwe0pl2t.fsf@dbsrv.gsfc.nasa.gov> (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
next reply other threads:[~1995-12-07 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-12-07 5:00 Edward J Sabol [this message]
1995-12-10 5:00 ` flock() and OSF/1 Alan H. Martin
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox