Home
last modified time | relevance | path

Searched refs:inotify_fd (Results 1 – 25 of 142) sorted by relevance

123456

/dports/devel/dbus/dbus-1.12.20/bus/
H A Ddir-watch-inotify.c53 static int inotify_fd = -1; variable
201 if (inotify_fd == -1) in _shutdown_inotify()
216 close (inotify_fd); in _shutdown_inotify()
217 inotify_fd = -1; in _shutdown_inotify()
225 if (inotify_fd == -1) in _init_inotify()
228 inotify_fd = inotify_init1 (IN_CLOEXEC); in _init_inotify()
232 if (inotify_fd < 0) in _init_inotify()
233 inotify_fd = inotify_init (); in _init_inotify()
235 inotify_fd = inotify_init (); in _init_inotify()
237 if (inotify_fd <= 0) in _init_inotify()
[all …]
/dports/mail/sqwebmail/sqwebmail-6.0.6/libs/maildir/
H A Dmaildirwatch.c69 w->inotify_fd=inotify_init(); in maildirwatch_alloc()
71 if (w->inotify_fd >= 0 && in maildirwatch_alloc()
75 close(w->inotify_fd); in maildirwatch_alloc()
76 w->inotify_fd=-1; in maildirwatch_alloc()
80 if (w->inotify_fd < 0) in maildirwatch_alloc()
92 if (w->inotify_fd >= 0) in maildirwatch_free()
94 close(w->inotify_fd); in maildirwatch_free()
123 pfd.fd=w->inotify_fd; in poll_inotify()
370 *fdret=mc->w->inotify_fd; in maildirwatch_started()
436 *fdret=w->inotify_fd; in maildirwatch_check()
[all …]
/dports/mail/courier-imap/courier-imap-5.1.4/libs/maildir/
H A Dmaildirwatch.c69 w->inotify_fd=inotify_init(); in maildirwatch_alloc()
71 if (w->inotify_fd >= 0 && in maildirwatch_alloc()
75 close(w->inotify_fd); in maildirwatch_alloc()
76 w->inotify_fd=-1; in maildirwatch_alloc()
80 if (w->inotify_fd < 0) in maildirwatch_alloc()
92 if (w->inotify_fd >= 0) in maildirwatch_free()
94 close(w->inotify_fd); in maildirwatch_free()
123 pfd.fd=w->inotify_fd; in poll_inotify()
370 *fdret=mc->w->inotify_fd; in maildirwatch_started()
436 *fdret=w->inotify_fd; in maildirwatch_check()
[all …]
/dports/mail/maildrop/maildrop-3.0.3/libs/maildir/
H A Dmaildirwatch.c69 w->inotify_fd=inotify_init(); in maildirwatch_alloc()
71 if (w->inotify_fd >= 0 && in maildirwatch_alloc()
75 close(w->inotify_fd); in maildirwatch_alloc()
76 w->inotify_fd=-1; in maildirwatch_alloc()
80 if (w->inotify_fd < 0) in maildirwatch_alloc()
92 if (w->inotify_fd >= 0) in maildirwatch_free()
94 close(w->inotify_fd); in maildirwatch_free()
123 pfd.fd=w->inotify_fd; in poll_inotify()
370 *fdret=mc->w->inotify_fd; in maildirwatch_started()
436 *fdret=w->inotify_fd; in maildirwatch_check()
[all …]
/dports/net/gerbera/gerbera-1.9.2/src/util/
H A Dmt_inotify.cc60 : inotify_fd(inotify_init1(IN_CLOEXEC)) in Inotify()
62 : inotify_fd(inotify_init()) in Inotify()
65 if (inotify_fd < 0) in Inotify()
81 if (inotify_fd >= 0) in ~Inotify()
82 close(inotify_fd); in ~Inotify()
116 if (inotify_rm_watch(inotify_fd, wd) < 0) { in removeWatch()
167 FD_SET(inotify_fd, &read_fds); in nextEvent()
169 fd_max = inotify_fd; in nextEvent()
193 if (FD_ISSET(inotify_fd, &read_fds)) { in nextEvent()
197 rc = ioctl(inotify_fd, FIONREAD, &bytes_to_read); in nextEvent()
[all …]
/dports/mail/dovecot/dovecot-2.3.17/src/lib/
H A Dioloop-notify-inotify.c26 int inotify_fd; member
102 wd = inotify_add_watch(ctx->inotify_fd, path, in io_add_notify()
123 ctx->event_io = io_add(ctx->inotify_fd, IO_READ, in io_add_notify()
177 ctx->inotify_fd = inotify_init(); in io_loop_notify_handler_init()
178 if (ctx->inotify_fd == -1) { in io_loop_notify_handler_init()
185 fd_close_on_exec(ctx->inotify_fd, TRUE); in io_loop_notify_handler_init()
186 fd_set_nonblock(ctx->inotify_fd, TRUE); in io_loop_notify_handler_init()
207 i_close_fd(&ctx->inotify_fd); in io_loop_notify_handler_deinit()
218 if (ctx == NULL || ctx->inotify_fd == -1) in io_loop_extract_notify_fd()
232 fd = ctx->inotify_fd; in io_loop_extract_notify_fd()
[all …]
/dports/sysutils/nitrogen/nitrogen-1.6.1/src/
H A DInotify.cc18 int Watch::inotify_fd = -1; member in Inotify::Watch
22 if (inotify_fd == -1) { in create()
23 inotify_fd = inotify_init(); in create()
24 if (inotify_fd == -1) { in create()
39 if ((watch_descriptor = inotify_add_watch(inotify_fd, path.c_str(), in create()
52 if (inotify_fd == -1) return; in poll()
56 FD_SET(inotify_fd, &set); in poll()
65 select_return = select(inotify_fd + 1, &set, NULL, NULL, &timeval); in poll()
71 size = read(inotify_fd, buffer, MAXLEN); in poll()
141 inotify_rm_watch(inotify_fd, watch_descriptor); in remove()
/dports/sysutils/lsyncd/lsyncd-release-2.2.3/
H A Dinotify.c52 static int inotify_fd = -1; variable
167 inotify_rm_watch( inotify_fd, wd ); in l_rmwatch()
422 if( obs->fd != inotify_fd ) in inotify_ready()
522 if( obs->fd != inotify_fd ) in inotify_tidy()
532 close( inotify_fd ); in inotify_tidy()
556 inotify_fd = inotify_init( ); in open_inotify()
558 if( inotify_fd < 0 ) in open_inotify()
572 inotify_fd in open_inotify()
575 close_exec_fd( inotify_fd ); in open_inotify()
576 non_block_fd( inotify_fd ); in open_inotify()
[all …]
/dports/comms/owfs/owfs-3.2p4/module/owlib/src/c/
H A Dow_inotify.c23 static FILE_DESCRIPTOR_OR_ERROR inotify_fd ; variable
30 inotify_fd = inotify_init() ; in Config_Monitor_Add()
31 if ( FILE_DESCRIPTOR_NOT_VALID( inotify_fd ) ) { in Config_Monitor_Add()
36 if ( inotify_add_watch( inotify_fd, filename, IN_MODIFY | IN_CREATE ) >= 0 ) { in Config_Monitor_Add()
49 while ( read( inotify_fd, buffer, buffer_len ) < 0 ) { in Config_Monitor_Block()
/dports/net-mgmt/seafile-client/seafile-7.0.9/daemon/
H A Dwt-monitor-linux.c462 int inotify_fd; in wt_monitor_job_linux() local
587 int inotify_fd; in add_watch() local
590 inotify_fd = inotify_init (); in add_watch()
591 if (inotify_fd < 0) { in add_watch()
605 close (inotify_fd); in add_watch()
616 return inotify_fd; in add_watch()
623 int inotify_fd; in handle_add_repo() local
626 if (inotify_fd < 0) { in handle_add_repo()
630 FD_SET (inotify_fd, &priv->read_fds); in handle_add_repo()
658 int inotify_fd = (int)(long)handle; in handle_rm_repo() local
[all …]
/dports/databases/pspg/pspg-5.3.4/src/
H A Dinputs.c49 static int inotify_fd = -1; variable
240 fds[1].fd = inotify_fd; in _get_pspg_event()
663 if (inotify_fd == -1) in open_data_stream()
665 inotify_fd = inotify_init1(IN_NONBLOCK); in open_data_stream()
666 if (inotify_fd == -1) in open_data_stream()
672 inotify_wd = inotify_add_watch(inotify_fd, in open_data_stream()
761 inotify_rm_watch(inotify_fd, inotify_wd); in close_tty_stream()
765 if (inotify_fd >= 0) in close_tty_stream()
767 close(inotify_fd); in close_tty_stream()
768 inotify_fd = -1; in close_tty_stream()
[all …]
/dports/devel/py-watchdog/watchdog-2.1.6/tests/
H A Dtest_inotify_c.py70 inotify_fd = type(str("FD"), (object,), {})() # Empty object
71 inotify_fd.last = 0
72 inotify_fd.wds = []
77 inotify_fd.buf = (
92 if fd is inotify_fd:
100 if fd is not inotify_fd:
104 return inotify_fd
135 assert inotify_fd.last == 3 # Number of directories
136 assert inotify_fd.buf == b"" # Didn't miss any event
137 assert inotify_fd.wds == [2, 3] # Only 1 is removed explicitly
/dports/graphics/feh/feh-3.5/src/
H A Dmain.c62 opt.inotify_fd = inotify_init(); in main()
63 if (opt.inotify_fd < 0) { in main()
165 FD_SET(opt.inotify_fd, &fdset); in feh_main_iteration()
166 if (opt.inotify_fd >= fdsize) in feh_main_iteration()
167 fdsize = opt.inotify_fd + 1; in feh_main_iteration()
216 else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset))) in feh_main_iteration()
233 else if ((count > 0) && (FD_ISSET(opt.inotify_fd, &fdset))) in feh_main_iteration()
252 if (close(opt.inotify_fd)) in feh_clean_exit()
/dports/java/intellij-fsnotifier/fsnotifier-a04fbff6e21d58fea7a3ed2a6a21e53cbef4b7af/
H A Dinotify.c53 static int inotify_fd = -1; variable
70 inotify_fd = inotify_init(); in init_inotify()
71 if (inotify_fd < 0) { in init_inotify()
83 close(inotify_fd); in init_inotify()
84 inotify_fd = -1; in init_inotify()
92 close(inotify_fd); in init_inotify()
93 inotify_fd = -1; in init_inotify()
139 return inotify_fd; in get_inotify_fd()
235 if (inotify_rm_watch(inotify_fd, node->wd) < 0) { in rm_watch()
456 if (inotify_fd >= 0) { in close_inotify()
[all …]
/dports/www/uwsgi/uwsgi-2.0.20/core/
H A Dfsmon.c14 static int inotify_fd = -1; in fsmon_add() local
15 if (inotify_fd == -1) { in fsmon_add()
16 inotify_fd = inotify_init(); in fsmon_add()
17 if (inotify_fd < 0) { in fsmon_add()
21 if (event_queue_add_fd_read(uwsgi.master_queue, inotify_fd)) { in fsmon_add()
26 …int wd = inotify_add_watch(inotify_fd, fs->path, IN_ATTRIB | IN_CREATE | IN_DELETE | IN_DELETE_SEL… in fsmon_add()
31 fs->fd = inotify_fd; in fsmon_add()
/dports/games/openage/openage-0.3.0-1262-ga554ab49/libopenage/
H A Dassetmanager.cpp27 this->inotify_fd = inotify_init1(IN_NONBLOCK);
28 if (this->inotify_fd < 0) {
92 this->inotify_fd, in load_texture()
141 len = read(this->inotify_fd, buf, sizeof(buf)); in check_updates()
188 int result = inotify_rm_watch(this->inotify_fd, watch_fd.first); in clear()
/dports/net/cjdns/cjdns-cjdns-v21.1/node_build/dependencies/libuv/src/unix/
H A Dlinux-inotify.c95 if (loop->inotify_fd != -1) in init_inotify()
102 loop->inotify_fd = err; in init_inotify()
103 uv__io_init(&loop->inotify_read_watcher, uv__inotify_read, loop->inotify_fd); in init_inotify()
132 size = read(loop->inotify_fd, buf, sizeof(buf)); in uv__inotify_read()
202 wd = uv__inotify_add_watch(handle->loop->inotify_fd, path, events); in uv_fs_event_start()
247 uv__inotify_rm_watch(handle->loop->inotify_fd, w->wd); in uv_fs_event_stop()
/dports/devel/allegro5/allegro5-5.2.7.0/src/linux/
H A Dljoynu.c135 static int inotify_fd = -1; variable
714 inotify_fd = inotify_init(); in ljoy_init_joystick()
715 if (inotify_fd != -1) { in ljoy_init_joystick()
716 fcntl(inotify_fd, F_SETFL, O_NONBLOCK); in ljoy_init_joystick()
724 if (inotify_fd != -1) { in ljoy_init_joystick()
725 close(inotify_fd); in ljoy_init_joystick()
726 inotify_fd = -1; in ljoy_init_joystick()
744 if (inotify_fd != -1) { in ljoy_exit_joystick()
745 _al_unix_stop_watching_fd(inotify_fd); in ljoy_exit_joystick()
746 close(inotify_fd); in ljoy_exit_joystick()
[all …]
/dports/graphics/graphviz/graphviz-2.44.1/plugin/xlib/
H A Dgvdevice_xlib.c384 static int handle_file_events(GVJ_t *job, int inotify_fd) in handle_file_events() argument
391 ret = ioctl(inotify_fd, FIONREAD, &avail); in handle_file_events()
403 len = read(inotify_fd, buf, avail); in handle_file_events()
505 int inotify_fd=0; in xlib_finalize() local
510 inotify_fd = inotify_init(); in xlib_finalize()
511 if (inotify_fd < 0) { in xlib_finalize()
539 wd = inotify_add_watch(inotify_fd, dir, IN_MODIFY ); in xlib_finalize()
541 numfds = MAX(inotify_fd, numfds); in xlib_finalize()
561 if (FD_ISSET(inotify_fd, &rfds)) { in xlib_finalize()
567 FD_SET(inotify_fd, &rfds); in xlib_finalize()
[all …]
/dports/graphics/milton/milton-1.9.1/third_party/SDL2-2.0.8/src/core/linux/
H A DSDL_ibus.c48 static int inotify_fd = -1, inotify_wd = -1; variable
362 if (inotify_fd > 0 && inotify_wd > 0) { in IBus_CheckConnection()
364 ssize_t readsize = read(inotify_fd, buf, sizeof(buf)); in IBus_CheckConnection()
423 if (inotify_fd < 0) { in SDL_IBus_Init()
424 inotify_fd = inotify_init(); in SDL_IBus_Init()
425 fcntl(inotify_fd, F_SETFL, O_NONBLOCK); in SDL_IBus_Init()
433 inotify_wd = inotify_add_watch(inotify_fd, addr_file, IN_CREATE | IN_MODIFY); in SDL_IBus_Init()
467 if (inotify_fd > 0 && inotify_wd > 0) { in SDL_IBus_Quit()
468 inotify_rm_watch(inotify_fd, inotify_wd); in SDL_IBus_Quit()
/dports/sysutils/R-cran-fs/fs/src/libuv-1.38.1/src/unix/
H A Dlinux-inotify.c71 if (loop->inotify_fd != -1) in init_inotify()
78 loop->inotify_fd = fd; in init_inotify()
79 uv__io_init(&loop->inotify_read_watcher, uv__inotify_read, loop->inotify_fd); in init_inotify()
162 inotify_rm_watch(loop->inotify_fd, w->wd); in maybe_free_watcher_list()
183 size = read(loop->inotify_fd, buf, sizeof(buf)); in uv__inotify_read()
275 wd = inotify_add_watch(handle->loop->inotify_fd, path, events); in uv_fs_event_start()
/dports/devel/cmake-doc/cmake-3.22.1/Utilities/cmlibuv/src/unix/
H A Dlinux-inotify.c71 if (loop->inotify_fd != -1) in init_inotify()
78 loop->inotify_fd = fd; in init_inotify()
79 uv__io_init(&loop->inotify_read_watcher, uv__inotify_read, loop->inotify_fd); in init_inotify()
162 inotify_rm_watch(loop->inotify_fd, w->wd); in maybe_free_watcher_list()
183 size = read(loop->inotify_fd, buf, sizeof(buf)); in uv__inotify_read()
275 wd = inotify_add_watch(handle->loop->inotify_fd, path, events); in uv_fs_event_start()
/dports/devel/cmake-gui/cmake-3.22.1/Utilities/cmlibuv/src/unix/
H A Dlinux-inotify.c71 if (loop->inotify_fd != -1) in init_inotify()
78 loop->inotify_fd = fd; in init_inotify()
79 uv__io_init(&loop->inotify_read_watcher, uv__inotify_read, loop->inotify_fd); in init_inotify()
162 inotify_rm_watch(loop->inotify_fd, w->wd); in maybe_free_watcher_list()
183 size = read(loop->inotify_fd, buf, sizeof(buf)); in uv__inotify_read()
275 wd = inotify_add_watch(handle->loop->inotify_fd, path, events); in uv_fs_event_start()
/dports/devel/cmake/cmake-3.22.1/Utilities/cmlibuv/src/unix/
H A Dlinux-inotify.c71 if (loop->inotify_fd != -1) in init_inotify()
78 loop->inotify_fd = fd; in init_inotify()
79 uv__io_init(&loop->inotify_read_watcher, uv__inotify_read, loop->inotify_fd); in init_inotify()
162 inotify_rm_watch(loop->inotify_fd, w->wd); in maybe_free_watcher_list()
183 size = read(loop->inotify_fd, buf, sizeof(buf)); in uv__inotify_read()
275 wd = inotify_add_watch(handle->loop->inotify_fd, path, events); in uv_fs_event_start()
/dports/devel/py-uvloop/uvloop-0.16.0/vendor/libuv/src/unix/
H A Dlinux-inotify.c71 if (loop->inotify_fd != -1) in init_inotify()
78 loop->inotify_fd = fd; in init_inotify()
79 uv__io_init(&loop->inotify_read_watcher, uv__inotify_read, loop->inotify_fd); in init_inotify()
162 inotify_rm_watch(loop->inotify_fd, w->wd); in maybe_free_watcher_list()
183 size = read(loop->inotify_fd, buf, sizeof(buf)); in uv__inotify_read()
275 wd = inotify_add_watch(handle->loop->inotify_fd, path, events); in uv_fs_event_start()

123456