From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Date: Thu, 24 Jun 2004 09:03:08 +0000 From: Bengt Kleberg Message-ID: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit References: <200406232047.i5NKlLK16116@zamenhof.cs.utwente.nl> Subject: Re: [9fans] plan9port: flock on sunos5.8? Topicbox-Message-UUID: ab709fe6-eacd-11e9-9e20-41e7f4b1d025 Axel Belinfante wrote: > yet another instance of 'spending some time on plan9port on sunos 5.8'. > > lib9/create.c needs/uses bsd-style flock which is not available by default, > but accessable using /usr/usb/cc the sun man page mentioned things like: Use of these interfaces should be restricted to only appli- cations written on BSD platforms. Use of these interfaces with any of the system libraries or in multi-thread applica- tions is unsupported. i think that it is very difficult to use the sun flock(), without breaking many things. what is the intended effect? perhaps another lock function (lockf(), fcntl(), etc) can be used? my plan9port is plan9-20040517.tar.gz and does not have flock() in plan9/src/lib9/create.c perhaps the benefits of adding flock() are not worth the problems it creates? then flock() could be removed. bengt