Home
last modified time | relevance | path

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

/AliOS-Things-master/components/SDL2/src/core/linux/
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()

Completed in 3 milliseconds