diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-06-22 03:21:43 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-06-22 03:21:43 +0000 |
commit | dbab8b441c66eba026ccbb51628706a974aaa3b7 (patch) | |
tree | 7c618e3aff5cac869d992fa1d65b15788f8002dc /libc/sysdeps/linux | |
parent | 77d1c5f855323f11829699e020ea8f1cebcc0dd0 (diff) | |
download | uClibc-alpine-dbab8b441c66eba026ccbb51628706a974aaa3b7.tar.bz2 uClibc-alpine-dbab8b441c66eba026ccbb51628706a974aaa3b7.tar.xz |
Copy from trunk.
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r-- | libc/sysdeps/linux/common/inotify.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/inotify.c b/libc/sysdeps/linux/common/inotify.c new file mode 100644 index 000000000..87cf4d71e --- /dev/null +++ b/libc/sysdeps/linux/common/inotify.c @@ -0,0 +1,24 @@ +/* vi: set sw=4 ts=4: */ +/* + * inotify interface for uClibc + * + * Copyright (C) 2006 Austin Morgan <admorgan@morgancomputers.net> + * Copyright (C) 2006 by Erik Andersen <andersen@codepoet.org> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#include "syscalls.h" +#include <sys/inotify.h> + +#ifdef __NR_inotify_init +_syscall0(int, inotify_init); +#endif + +#ifdef __NR_inotify_add_watch +_syscall3(int, inotify_add_watch, int, fd, const char *, path, uint32_t, mask); +#endif + +#ifdef __NR_inotify_rm_watch +_syscall2(int, inotify_rm_watch, int, fd, uint32_t, wd); +#endif |