Path: utzoo!attcan!uunet!clyde.concordia.ca!cidsv01.cid.aes.doe.CA!cidsv01.cid.aes.doe.CA!afsipmh From: afsipmh@cid.aes.doe.CA (Patrick Hertel) Newsgroups: comp.unix.questions Subject: Truncating a locked file Message-ID: <1990Aug20.172950.21280@cid.aes.doe.CA> Date: 20 Aug 90 17:29:50 GMT Sender: afsipmh@cid.aes.doe.CA (Patrick Hertel) Reply-To: afsipmh@cid.aes.doe.CA (Patrick Hertel) Distribution: na Organization: Environment Canada Lines: 10 How can I truncate a file which I have locked (mandatory) with lockf. That is to say I open then lock then read and now I want to truncate without letting go of the lock, all in the same program. Oh, this is a C program by the way. -- Pat Hertel Canadian Meteorological Centre Analyst/Programmer 2121 N. Service Rd. phertel@cmc.aes.doe.ca Dorval,Quebec Environment Canada CANADA H9P1J3