···1313 Foundation
1414 system
1515)
1616+1717+add_darling_executable(fseventsd fseventsd.m)
1818+target_link_libraries(fseventsd system Foundation CarbonCore)
1919+2020+install(TARGETS fseventsd DESTINATION libexec/darling/usr/sbin)
2121+install(CODE "execute_process(COMMAND ${SETCAP_EXECUTABLE} \"cap_sys_admin+ep\" \"${CMAKE_INSTALL_PREFIX}/libexec/darling/usr/sbin/fseventsd\")")
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2020 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#ifndef FSEVENTSD_H_
2121+#define FSEVENTSD_H_
2222+2323+#define FSEVENTSD_SOCKET_PATH "/var/run/fseventsd.sock"
2424+2525+typedef struct fseventsd_monitor {
2626+ int id;
2727+ char path[4096];
2828+ int flags;
2929+} fseventsd_monitor_t;
3030+3131+typedef struct fseventsd_event {
3232+ int id;
3333+ char path[4096];
3434+ int flags;
3535+} fseventsd_event_t;
3636+3737+#endif
3838+