Files
go-serial/serial_darwin.go
Cristian Maglie a3909960d3 Removed termiosMask(..) and use the correct bitmask type
This requires a bit of copying in darwin 386/amd64 but simplifies
the overall design.
2016-10-22 18:32:51 +02:00

18 lines
440 B
Go

//
// Copyright 2014-2016 Cristian Maglie. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
package serial // import "go.bug.st/serial.v1"
import "syscall"
const devFolder = "/dev"
const regexFilter = "^(cu|tty)\\..*"
//sys ioctl(fd int, req uint64, data uintptr) (err error)
const ioctlTcgetattr = syscall.TIOCGETA
const ioctlTcsetattr = syscall.TIOCSETA