From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6fcf4f0da234c858,start X-Google-Attributes: gidfee84,public From: Massimo Gais Subject: flock/lockf under DU Date: 1998/10/30 Message-ID: <36397876.693A0DB2@na.astro.it>#1/1 X-Deja-AN: 406605562 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.unina.it X-Trace: news.unina.it 909736047 27875 143.225.245.12 (30 Oct 1998 08:27:27 GMT) Organization: Osservatorio Astronomico Capodimonte - Napoli -Italy Mime-Version: 1.0 NNTP-Posting-Date: 30 Oct 1998 08:27:27 GMT Newsgroups: comp.unix.osf.osf1 Hello, I'd like to now what's the best function to call under DU (4.0) between flock() and lockf(); I have to fopen() the mail spoolfile for reading, but if I another process has already locked with flock() the fopen() simple doesn't care... I was thinking this way because DU should be a BSD-derivative Unix, so it should at first use flock(), not lockf(). Any explaination about this argument is very welcome. TIA, Massimo Gais ---- "640K ought to be enough for anybody." -- Bill Gates, 1981