Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
syscall: linux/*: missing termios constants #6355
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.
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.
Labels changed: added priority-later, go1.2maybe, removed priority-triage.
Status changed to Accepted.