[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

request: libguile to wrap getsid(2)

From: Thien-Thi Nguyen
Subject: request: libguile to wrap getsid(2)
Date: Sat, 26 Dec 2009 19:50:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

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)!

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:

  (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, 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.

"But ttn, why do you care about any Guile other than 1.4.x?"

Well, why not?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]