mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: add inotify on Linux
R=rsc CC=golang-dev https://golang.org/cl/2241045
This commit is contained in:
parent
07b56fce66
commit
4bfcfcf89f
12 changed files with 250 additions and 3 deletions
|
|
@ -593,6 +593,10 @@ func PtraceDetach(pid int) (errno int) { return ptrace(PTRACE_DETACH, pid, 0, 0)
|
|||
//sys Getrlimit(resource int, rlim *Rlimit) (errno int)
|
||||
//sys Getrusage(who int, rusage *Rusage) (errno int)
|
||||
//sys Gettid() (tid int)
|
||||
//sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, errno int)
|
||||
//sys InotifyInit() (fd int, errno int)
|
||||
//sys InotifyInit1(flags int) (fd int, errno int)
|
||||
//sys InotifyRmWatch(fd int, watchdesc uint32) (success int, errno int)
|
||||
//sys Kill(pid int, sig int) (errno int)
|
||||
//sys Klogctl(typ int, buf []byte) (n int, errno int) = SYS_SYSLOG
|
||||
//sys Link(oldpath string, newpath string) (errno int)
|
||||
|
|
@ -675,9 +679,6 @@ func PtraceDetach(pid int) (errno int) { return ptrace(PTRACE_DETACH, pid, 0, 0)
|
|||
// Getpmsg
|
||||
// Getpriority
|
||||
// Getxattr
|
||||
// InotifyAddWatch
|
||||
// InotifyInit
|
||||
// InotifyRmWatch
|
||||
// IoCancel
|
||||
// IoDestroy
|
||||
// IoGetevents
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue