unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* request: libguile to wrap getsid(2)
@ 2009-12-26 18:50 Thien-Thi Nguyen
  2009-12-27 12:46 ` Neil Jerram
  0 siblings, 1 reply; 11+ messages in thread
From: Thien-Thi Nguyen @ 2009-12-26 18:50 UTC (permalink / raw)
  To: guile-user

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:

  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.

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

Well, why not?

thi




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-12-29  1:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-26 18:50 request: libguile to wrap getsid(2) Thien-Thi Nguyen
2009-12-27 12:46 ` Neil Jerram
2009-12-27 18:21   ` Neil Jerram
2009-12-27 23:01     ` Thien-Thi Nguyen
2009-12-27 22:58   ` Thien-Thi Nguyen
2009-12-27 23:33     ` Linas Vepstas
2009-12-29  1:08       ` Jeff Wilkinson
2009-12-28  6:34     ` Ken Raeburn
2009-12-28 12:25       ` Thien-Thi Nguyen
2009-12-28 11:11     ` Neil Jerram
2009-12-28 12:18       ` Thien-Thi Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).