Skip to content

Commit

Permalink
integer-overflow - dry up
Browse files Browse the repository at this point in the history
  • Loading branch information
akemrir committed Oct 9, 2024
1 parent f232993 commit b7f99d1
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 224 deletions.
15 changes: 12 additions & 3 deletions syscallf/syscall_linux.go → syscallf/rm_watch.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright 2009 The Go Authors.
// based on golang's syscall_linux.go

package syscallf

import "syscall"
Expand Down Expand Up @@ -28,3 +25,15 @@ func errnoErr(e syscall.Errno) error {
}
return e
}

func InotifyRmWatch(fd int, watchdesc int) (int, error) {
var success int
var err error

r0, _, e1 := syscall.RawSyscall(syscall.SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
success = int(r0)
if e1 != 0 {
err = errnoErr(e1)
}
return success, err
}
17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_386.go

This file was deleted.

17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_amd64.go

This file was deleted.

17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_arm.go

This file was deleted.

17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_arm64.go

This file was deleted.

17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_loong64.go

This file was deleted.

17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_mips.go

This file was deleted.

17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_mips64.go

This file was deleted.

17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_mips64le.go

This file was deleted.

17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_mipsle.go

This file was deleted.

17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_ppc64.go

This file was deleted.

17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_ppc64le.go

This file was deleted.

17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_riscv64.go

This file was deleted.

17 changes: 0 additions & 17 deletions syscallf/zsyscall_linux_s390x.go

This file was deleted.

0 comments on commit b7f99d1

Please sign in to comment.