* Can't use flock()
@ 1996-09-17 4:00 Spud
1996-09-25 4:00 ` Gleb O. Raiko
0 siblings, 1 reply; 2+ messages in thread
From: Spud @ 1996-09-17 4:00 UTC (permalink / raw)
Hello,
Has anyone done any file locking on OSF/1 (V3.2 214.61 alpha) using
flock() and C++? The problem is when using C++, the flock struct is defined
which conflicts with the flock() system call. The same problem exists on IRIX,
but you can get around that by defining _BSD_COMPAT.
Here's some output from g++ :
update_logfile.cc:50: no matching function for call to `flock::flock (int, int)'
/usr/include/sys/fcntl.h:73: candidates are: flock::flock(const flock &)
/usr/include/sys/fcntl.h:73: flock::flock()
Any help would be appreciated.
Regards, Adam.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
spud@bendigo.net.au j4823274@ironbark.bendigo.latrobe.edu.au
http://www.bendigo.net.au/~spud/ j4823274@redgum.bendigo.latrobe.edu.au
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can't use flock()
1996-09-17 4:00 Can't use flock() Spud
@ 1996-09-25 4:00 ` Gleb O. Raiko
0 siblings, 0 replies; 2+ messages in thread
From: Gleb O. Raiko @ 1996-09-25 4:00 UTC (permalink / raw)
To: "j4823274
Spud wrote:
> Has anyone done any file locking on OSF/1 (V3.2 214.61 alpha) using
> flock() and C++? The problem is when using C++, the flock struct is defined
> which conflicts with the flock() system call. The same problem exists on IRIX,
> but you can get around that by defining _BSD_COMPAT.
::flock( ... ) should work pretty fine. Remeber :: prefix in C++ means
you call function
rather than method of any class. See grey book for more info.
Regards,
Gleb.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-09-25 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-17 4:00 Can't use flock() Spud
1996-09-25 4:00 ` Gleb O. Raiko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox