From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c80433ed2e9b8d18 X-Google-Attributes: gidfee84,public From: "Gleb O. Raiko" Subject: Re: Can't use flock() Date: 1996/09/25 Message-ID: <3248E9DA.41C6@cecmow.enet.dec.com>#1/1 X-Deja-AN: 185212910 references: <51loa8$3f5@sheoak.bendigo.latrobe.edu.au> to: "j4823274@redgum.bendigo.latrobe.edu.au"@vbormc.vbo.dec.com content-type: text/plain; charset=us-ascii organization: Moscow Software Center, Digital Equipment Corp. mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0 (X11; I; OSF1 V4.0 alpha) 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.