source: azure_iot_hub/trunk/musl-1.1.18/src/linux/inotify.c@ 388

Last change on this file since 388 was 388, checked in by coas-nagasima, 5 years ago

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-csrc
File size: 532 bytes
Line 
1#include <sys/inotify.h>
2#include <errno.h>
3#include "syscall.h"
4
5int inotify_init()
6{
7 return inotify_init1(0);
8}
9int inotify_init1(int flags)
10{
11 int r = __syscall(SYS_inotify_init1, flags);
12#ifdef SYS_inotify_init
13 if (r==-ENOSYS && !flags) r = __syscall(SYS_inotify_init);
14#endif
15 return __syscall_ret(r);
16}
17
18int inotify_add_watch(int fd, const char *pathname, uint32_t mask)
19{
20 return syscall(SYS_inotify_add_watch, fd, pathname, mask);
21}
22
23int inotify_rm_watch(int fd, int wd)
24{
25 return syscall(SYS_inotify_rm_watch, fd, wd);
26}
Note: See TracBrowser for help on using the repository browser.