mikesart / inotify-info

Linux inotify info reporting app
MIT License
298 stars 31 forks source link

musl support #21

Closed motiejus closed 9 months ago

motiejus commented 9 months ago

Building with zig c++ v0.11:

$ CC="zig cc -target x86_64-linux-musl" CXX="zig c++ -target x86_64-linux-musl" make
Building _release/inotify-info...
---- inotify-info.cpp ----
---- lfqueue/lfqueue.c ----
Linking _release/inotify-info...

Results in a static executable that works:

$ file _release/inotify-info
_release/inotify-info: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=51b53c72293b34b5719a96db0d5448525b795444, with debug_info, not stripped
$ _release/inotify-info
------------------------------------------------------------------------------
INotify Limits:
  max_queued_events    16,384
  max_user_instances   524,288
  max_user_watches     524,288
------------------------------------------------------------------------------
       Pid Uid        App                                     Watches  Instances
      3146 1000       systemd                                      54          3
   1577866 1000       firefox-bin                                  22          1
   1637618 1000       .evolution-wrapped                           21          1
      3249 1000       dbus-daemon                                  12          1
    136787 1000       .gvfsd-trash-wrapped                          7          1
      3372 1000       wireplumber                                   6          3
   3311966 1000       electron                                      5          2
   2335068 1000       signal-desktop                                4          1
   2335148 1000       signal-desktop                                3          1
   3312014 1000       electron                                      3          1
      4079 1000       gpg-agent                                     2          2
   3908911 1000       .evolution-source-registry-wrapped            2          1
    136748 1000       .gvfs-udisks2-volume-monitor-wrapped          1          1
    136766 1000       .gvfs-afc-volume-monitor-wrapped              1          1
   1637686 1000       WebKitNetworkProcess                          1          1
   3908992 1000       .evolution-calendar-factory-wrapped           1          1
   3909004 1000       .evolution-addressbook-factory-wrapped        1          1
------------------------------------------------------------------------------
Total inotify Watches:   146
Total inotify Instances: 23
------------------------------------------------------------------------------
mikesart commented 9 months ago

Thanks Motiejus!