From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: request: libguile to wrap getsid(2) Date: Sun, 27 Dec 2009 12:46:39 +0000 Message-ID: <87pr601t5c.fsf@ossau.uklinux.net> References: <87ws09y3g3.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261918021 23808 80.91.229.12 (27 Dec 2009 12:47:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Dec 2009 12:47:01 +0000 (UTC) Cc: guile-user@gnu.org To: Thien-Thi Nguyen Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Dec 27 13:46:54 2009 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 1NOsWK-0002t9-RV for guile-user@m.gmane.org; Sun, 27 Dec 2009 13:46:53 +0100 Original-Received: from localhost ([127.0.0.1]:51532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOsWK-00051Z-Nn for guile-user@m.gmane.org; Sun, 27 Dec 2009 07:46:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NOsWG-00051M-Pl for guile-user@gnu.org; Sun, 27 Dec 2009 07:46:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NOsWC-00050m-1o for guile-user@gnu.org; Sun, 27 Dec 2009 07:46:48 -0500 Original-Received: from [199.232.76.173] (port=48629 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOsWB-00050j-Qj for guile-user@gnu.org; Sun, 27 Dec 2009 07:46:43 -0500 Original-Received: from mail3.uklinux.net ([80.84.72.33]:51946) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NOsWB-0003GL-Dh for guile-user@gnu.org; Sun, 27 Dec 2009 07:46:43 -0500 Original-Received: from arudy (host81-153-58-148.range81-153.btcentralplus.com [81.153.58.148]) by mail3.uklinux.net (Postfix) with ESMTP id 0DBAB1F66E4; Sun, 27 Dec 2009 12:46:43 +0000 (GMT) Original-Received: from arudy (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 765F138024; Sun, 27 Dec 2009 12:46:39 +0000 (GMT) In-Reply-To: <87ws09y3g3.fsf@ambire.localdomain> (Thien-Thi Nguyen's message of "Sat, 26 Dec 2009 19:50:52 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:7571 Archived-At: Thien-Thi Nguyen writes: > I've just about finished porting ratpoison (a CVS snapshot prior to its > author's abandoning it in favor of stumpwm) to Guile (1.4.x) scheme. > This means no more Xlib (et al)! Cool. (I like ratpoison, and I wasn't aware it had been abandoned. A Guile-enabled ratpoison would be great.) > However, the last bit of C glue (outside of ttn-do) it needs is getsid(2). > Here is the Guile 1.4.x-flavored wrapping: > > GH_DEFPROC > (rpx_getsid, "getsid", 1, 0, 0, > (SCM pid), > doc: /*********** > Return the session id associated with @var{pid}. */) > { > return gh_int2scm (getsid (gh_scm2int (pid))); > } > > I'm sure it would be no trouble to adapt this to other Guile versions. > This function will go into Guile 1.4.1.119, so i'm hereby requesting > that a future Guile 1.9.x include it, as well. This way, i can release > rpx (working name of the port -- kind of like "ratpoison exhumed") with > only ttn-do as its dependency, and no C bits whatsoever. No problem, I'll add this. Can you point to a specific 1.4.x commit, to help with any extra bits that are needed, e.g. anything in configure.ac? > "But ttn, why do you care about any Guile other than 1.4.x?" > > Well, why not? Well, indeed. Let's make 2010 the year of repairing our divisions... With Guile 1.9.x/2.0, we have a fantastic new base system that I think will serve us well for some years. With that in place, it would be great to pull together all the Guile apps and extensions that are out there, and showcase them working together and doing interesting things. Plus, as far as possible, I hope we can find ways of making everything work with older versions of Guile too. > thi Regards, Neil