From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaloian Doganov Newsgroups: gmane.lisp.guile.user Subject: Re: (fcntl fd F_GETLK ...) from Guile Date: Sat, 01 Sep 2007 12:53:04 +0300 Message-ID: <87d4x2btkv.fsf@doganov.org> References: <87zm07c136.fsf@doganov.org> <874pif8dr5.fsf@zip.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188640427 27353 80.91.229.12 (1 Sep 2007 09:53:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 1 Sep 2007 09:53:47 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Sep 01 11:53:45 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IRPfk-0004VN-Ka for guile-user@m.gmane.org; Sat, 01 Sep 2007 11:53:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRPfj-0002CC-CW for guile-user@m.gmane.org; Sat, 01 Sep 2007 05:53:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRPfS-0002B6-OQ for guile-user@gnu.org; Sat, 01 Sep 2007 05:53:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRPfP-00029z-Cc for guile-user@gnu.org; Sat, 01 Sep 2007 05:53:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRPfO-00029l-SP for guile-user@gnu.org; Sat, 01 Sep 2007 05:53:23 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IRPfO-00045X-FC for guile-user@gnu.org; Sat, 01 Sep 2007 05:53:22 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IRPfK-00035y-Aq for guile-user@gnu.org; Sat, 01 Sep 2007 11:53:18 +0200 Original-Received: from anonymizer.blutmagie.de ([195.71.90.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Sep 2007 11:53:18 +0200 Original-Received: from kaloian by anonymizer.blutmagie.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Sep 2007 11:53:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: anonymizer.blutmagie.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gNewSense gnu/linux) Cancel-Lock: sha1:GizjT/P3TMe5pAOtC2f19CPMT8A= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6121 Archived-At: Kevin Ryde writes: It'd need something for "struct flock" (and "struct flock64" when available), they're not plain integers like the other fcntl commands. Yes, currently I don't know how to represent this structure in Guile, even with those define's suggested by dsmich: (define F_GETLK 5) (define F_SETLK 6) Kevin Ryde writes: There's `flock' already for whole-file, if that's enough. I need to do record (range) locking, not whole-file locking, and I hoped to do it with Guile. -- Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user