Skip to content

Commit

Permalink
unix: don't generate raw syscall wrapper for ClockGettime on darwin
Browse files Browse the repository at this point in the history
Follow-up for CL 170299

CL 170297 erroneously introduced a raw syscall wrapper for ClockGettime
on darwin. Make sure it isn't generated by mistake again.

Change-Id: Ie9ecdc950e5ab6cc85937008cd140847cffac42f
Reviewed-on: https://go-review.googlesource.com/c/sys/+/170301
Run-TryBot: Tobias Klauser <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
tklauser committed Apr 3, 2019
1 parent baf5eb9 commit 81d4e9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions unix/mksyscall.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ func main() {
}
funct, inps, outps, sysname := f[2], f[3], f[4], f[5]

// ClockGettime doesn't have a syscall number on Darwin, only generate libc wrappers.
if goos == "darwin" && !libc && funct == "ClockGettime" {
continue
}

// Split argument lists on comma.
in := parseParamList(inps)
out := parseParamList(outps)
Expand Down

0 comments on commit 81d4e9d

Please sign in to comment.