• Rob Pike's avatar
    go.sys/unix: use syscall.Errno for errors · dc3c21c6
    Rob Pike authored
    If we use a local type, it won't compare properly with errors from
    the rest of the standard library. Errors are the one type from syscall
    that propagates through the system, so it's important to have only
    one type for them.
    
    Ditto for syscall.Signal.
    
    LGTM=dave
    R=rsc, dave
    CC=golang-codereviews
    https://golang.org/cl/123490043
    dc3c21c6
bpf_bsd.go 3.89 KB