From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c80433ed2e9b8d18,start X-Google-Attributes: gidfee84,public From: j4823274@redgum.bendigo.latrobe.edu.au (Spud) Subject: Can't use flock() Date: 1996/09/17 Message-ID: <51loa8$3f5@sheoak.bendigo.latrobe.edu.au>#1/1 X-Deja-AN: 181100983 organization: La Trobe University, Bendigo newsgroups: comp.unix.osf.osf1 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 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=