From: j4823274@redgum.bendigo.latrobe.edu.au (Spud)
Subject: Can't use flock()
Date: 1996/09/17 [thread overview]
Message-ID: <51loa8$3f5@sheoak.bendigo.latrobe.edu.au> (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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
next reply other threads:[~1996-09-17 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-17 4:00 Spud [this message]
1996-09-25 4:00 ` Can't use flock() Gleb O. Raiko
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