Skip to content

Commit

Permalink
Handled distinctive NFDBits and func index's return values according …
Browse files Browse the repository at this point in the history
…to different architecture.

Signed-off-by: xchenan <xchenan@gmail.com>
  • Loading branch information
xchenan committed May 23, 2017
1 parent 519b7e5 commit 7f685c0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sys/select_bsd.go → sys/select_32.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build darwin dragonfly freebsd netbsd openbsd
// +build darwin 386,freebsd arm,freebsd 386,linux arm,linux netbsd openbsd

package sys

Expand Down
2 changes: 1 addition & 1 deletion sys/select_linux.go → sys/select_64.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
// +build amd64,dragonfly amd64,freebsd amd64,linux arm64,linux

package sys

Expand Down
1 change: 0 additions & 1 deletion sys/winsize.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ type winSize struct {

// GetWinsize queries the size of the terminal referenced by
// the given file descriptor.

func GetWinsize(fd int) (row, col int) {
ws := winSize{}
if err := ioctl(uintptr(fd), unix.TIOCGWINSZ, unsafe.Pointer(&ws)); err != nil {
Expand Down

0 comments on commit 7f685c0

Please sign in to comment.