guile-user
[Top][All Lists]
Advanced

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

Re: Using libnotify from Guile


From: Neil Jerram
Subject: Re: Using libnotify from Guile
Date: Tue, 5 Jan 2016 10:07:15 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

On 05/01/16 09:40, Ludovic Courtès wrote:
Neil Jerram <address@hidden> 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 <sys/inotify.h>:

--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’.



But isn't inotify (a Linux kernel subsystem for noticing changes to the filesystem) unrelated to libnotify (a thing for popping up a notification message on the desktop)?



reply via email to

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