inotify_rm_watch(2) - wariua/manpages-ko GitHub Wiki
inotify_rm_watch - inotify μΈμ€ν΄μ€μμ κΈ°μ‘΄ κ°μ νλͺ© μ κ±°νκΈ°
#include <sys/inotify.h>
int inotify_rm_watch(int fd, int wd);
inotify_rm_watch()
λ νμΌ λμ€ν¬λ¦½ν° fd
μ μ°κ³λ inotify μΈμ€ν΄μ€μμ κ°μ λμ€ν¬λ¦½ν° wd
μ μ°κ³λ κ°μ νλͺ©μ μ κ±°νλ€.
κ°μ νλͺ©μ μ κ±°νλ©΄ μ΄ κ°μ λμ€ν¬λ¦½ν°μ λν΄ IN_IGNORED
μ΄λ²€νΈκ° μμ±λλ€. (inotify(7) μ°Έκ³ .)
μ±κ³΅ μ inotify_rm_watch()
λ 0μ λ°ννλ€. μ€λ₯ μ -1μ λ°ννλ©° μ€λ₯ μμΈμ λνλ΄λλ‘ errno
λ₯Ό μ€μ νλ€.
EBADF
-
fd
κ° μ ν¨ν νμΌ λμ€ν¬λ¦½ν°κ° μλλ€. EINVAL
- κ°μ λμ€ν¬λ¦½ν°
wd
κ° μ ν¨νμ§ μλ€. λλfd
κ° inotify νμΌ λμ€ν¬λ¦½ν°κ° μλλ€.
리λ μ€ μ»€λ 2.6.13μΌλ‘ inotifyκ° λ³ν©λμλ€.
μ΄ μμ€ν νΈμΆμ 리λ μ€ μ μ©μ΄λ€.
inotify_add_watch(2), inotify_init(2), inotify(7)
2017-09-15