x/sys/unix: InotifyRmWatch should take int, not uint32 #32020
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, https://github.com/golang/sys/blob/master/unix/zsyscall_linux_arm64.go still shows the following signature:
InotifyRmWatch(fd int, watchdesc uint32)
.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
According to
man
,inotify_rm_watch
is defined as:int inotify_rm_watch(int fd, int wd)
. So I would expectInotifyRmWatch
to take two regular ints.What did you see instead?
Compiler complaining about type conversion (int -> uint32).
The text was updated successfully, but these errors were encountered: