Neil Jerram <[email protected]> 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’.


Reply via email to