mirror of
https://github.com/syncthing/notify.git
synced 2026-06-07 08:57:32 +00:00
kqueue: EventInfo().Sys() returns now pointer.
This commit is contained in:
@@ -85,7 +85,7 @@ func (e Event) String() string {
|
||||
// http://man7.org/linux/man-pages/man7/inotify.7.html
|
||||
//
|
||||
// Under Darwin, DragonFlyBSD, FreeBSD, NetBSD, OpenBSD (kqueue) Sys() always
|
||||
// returns notify.Kevent value, which is defined as:
|
||||
// returns a non-nil *notify.Kevent value, which is defined as:
|
||||
//
|
||||
// type Kevent struct {
|
||||
// Kevent *syscall.Kevent_t // Kevent is a kqueue specific structure.
|
||||
|
||||
+2
-2
@@ -84,10 +84,10 @@ func (e *event) Event() Event { return e.e }
|
||||
func (e *event) Path() string { return e.p }
|
||||
|
||||
// Sys returns platform specific object describing reported event.
|
||||
func (e *event) Sys() interface{} { return e.kq }
|
||||
func (e *event) Sys() interface{} { return &e.kq }
|
||||
|
||||
func isdir(ei EventInfo) (bool, error) {
|
||||
return ei.Sys().(Kevent).FI.IsDir(), nil
|
||||
return ei.Sys().(*Kevent).FI.IsDir(), nil
|
||||
}
|
||||
|
||||
// Kevent represents a single event.
|
||||
|
||||
Reference in New Issue
Block a user