From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Using libnotify from Guile Date: Tue, 05 Jan 2016 10:40:26 +0100 Message-ID: <87k2no74ad.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1451986897 20811 80.91.229.3 (5 Jan 2016 09:41:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2016 09:41:37 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jan 05 10:41:20 2016 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aGO72-0008RR-3K for guile-user@m.gmane.org; Tue, 05 Jan 2016 10:41:08 +0100 Original-Received: from localhost ([::1]:48748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGO71-0005CE-KX for guile-user@m.gmane.org; Tue, 05 Jan 2016 04:41:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGO6j-0004zO-HF for guile-user@gnu.org; Tue, 05 Jan 2016 04:40:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGO6g-0006Si-BH for guile-user@gnu.org; Tue, 05 Jan 2016 04:40:49 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:35953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGO6g-0006Rh-4H for guile-user@gnu.org; Tue, 05 Jan 2016 04:40:46 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aGO6S-00081Q-UO for guile-user@gnu.org; Tue, 05 Jan 2016 10:40:33 +0100 Original-Received: from pluto.bordeaux.inria.fr ([193.50.110.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2016 10:40:32 +0100 Original-Received: from ludo by pluto.bordeaux.inria.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2016 10:40:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pluto.bordeaux.inria.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 =?utf-8?Q?Niv=C3=B4se?= an 224 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x3D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:AceejzxetpypLWQfjwku7Tpv5KQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:12298 Archived-At: Neil Jerram skribis: > I noticed you asked about libnotify on IRC Also note that glibc built for the Linux kernel provides wrappers for a bunch of inotify syscalls in : --8<---------------cut here---------------start------------->8--- $ objdump -T .guix-profile/lib/libc.so.6 | grep inotify 00000000000e9cc0 g DF .text 0000000000000021 GLIBC_2.9 inotify_init1 00000000000e9cf0 g DF .text 0000000000000021 GLIBC_2.4 inotify_rm_watch 00000000000e9c90 g DF .text 0000000000000021 GLIBC_2.4 inotify_init 00000000000e9c60 g DF .text 0000000000000021 GLIBC_2.4 inotify_add_watch --8<---------------cut here---------------end--------------->8--- So you could avoid libnotify altogether with things like: (dynamic-func "inotify_init" (dynamic-link)) Ludo’.