From 54b71221c0b7a9159f369263ea6189bdba4eac3a Mon Sep 17 00:00:00 2001 From: Zach Koopmans Date: Tue, 29 Jun 2021 15:05:27 -0700 Subject: [syserror] Change syserror to linuxerr for E2BIG, EADDRINUSE, and EINVAL Remove three syserror entries duplicated in linuxerr. Because of the linuxerr.Equals method, this is a mere change of return values from syserror to linuxerr definitions. Done with only these three errnos as CLs removing all grow to a significantly large size. PiperOrigin-RevId: 382173835 --- pkg/syserror/syserror.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'pkg/syserror') diff --git a/pkg/syserror/syserror.go b/pkg/syserror/syserror.go index 56b621357..721f62903 100644 --- a/pkg/syserror/syserror.go +++ b/pkg/syserror/syserror.go @@ -26,9 +26,7 @@ import ( // The following variables have the same meaning as their syscall equivalent. var ( - E2BIG = error(unix.E2BIG) EACCES = error(unix.EACCES) - EADDRINUSE = error(unix.EADDRINUSE) EAGAIN = error(unix.EAGAIN) EBADF = error(unix.EBADF) EBADFD = error(unix.EBADFD) @@ -43,7 +41,6 @@ var ( EFBIG = error(unix.EFBIG) EIDRM = error(unix.EIDRM) EINTR = error(unix.EINTR) - EINVAL = error(unix.EINVAL) EIO = error(unix.EIO) EISDIR = error(unix.EISDIR) ELIBBAD = error(unix.ELIBBAD) -- cgit v1.2.3