You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
syscall package for Linux, does not include defines for:
TCIOFLUSH
it is included in the following go files:
syscall/zerrors_netbsd_amd64.go:1250: TCIOFLUSH = 0x3
syscall/zerrors_freebsd_amd64.go:1297: TCIOFLUSH = 0x3
syscall/zerrors_netbsd_386.go:1260: TCIOFLUSH = 0x3
syscall/zerrors_darwin_amd64.go:1008: TCIOFLUSH = 0x3
syscall/zerrors_netbsd_arm.go:1249: TCIOFLUSH = 0x3
syscall/zerrors_freebsd_arm.go:1303: TCIOFLUSH = 0x3
syscall/zerrors_freebsd_386.go:1297: TCIOFLUSH = 0x3
syscall/zerrors_openbsd_amd64.go:1166: TCIOFLUSH = 0x3
syscall/zerrors_darwin_386.go:1008: TCIOFLUSH = 0x3
syscall/zerrors_openbsd_386.go:1160: TCIOFLUSH = 0x3
But not on my target plaftorm: syscall/zerrors_linux_amd64.go
TCIOFLUSH is defined in:
/usr/include/asm-generic/termbits.h:192:#define TCIOFLUSH 2
/usr/include/bits/termios.h:210:#define TCIOFLUSH 2
/usr/include/term.h:123:#define TCIOFLUSH 2
tcflush() glibc function uses syscall named TCFLSH, which is defined in:
/usr/include/asm-generic/ioctls.h:29:#define TCFLSH 0x540B
I think it is supposed to be defined in syscall pkg too.
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
Linux
Which version are you using? (run 'go version')
go version devel +bea6199b09ea Tue Apr 30 17:47:39 2013 -0700 linux/amd64
I think there is bug somewhere(probably in termios) that prevents generating the
definitions above.
The text was updated successfully, but these errors were encountered:
Link to discussion: https://groups.google.com/d/msg/golang-nuts/hU4mHOKZneM/OCv2334ND7YJ
Marking as Go1.2Maybe, others may adjust the priority or tags at a later point.
If someone chooses to work on this I would as that a short test is added to pkg/syscall
that checks the constants are defined. This test would constitute the minimum set of
values expected to be present.
by Drago.Ivanov:
The text was updated successfully, but these errors were encountered: