maddy

Fork https://github.com/foxcpp/maddy

git clone git://git.lin.moe/go/maddy.git

 1//go:build !linux
 2// +build !linux
 3
 4/*
 5Maddy Mail Server - Composable all-in-one email server.
 6Copyright © 2019-2020 Max Mazurov <fox.cpp@disroot.org>, Maddy Mail Server contributors
 7
 8This program is free software: you can redistribute it and/or modify
 9it under the terms of the GNU General Public License as published by
10the Free Software Foundation, either version 3 of the License, or
11(at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this program.  If not, see <https://www.gnu.org/licenses/>.
20*/
21
22package clitools
23
24import (
25	"errors"
26	"os"
27)
28
29type Termios struct {
30	Iflag  uint32
31	Oflag  uint32
32	Cflag  uint32
33	Lflag  uint32
34	Cc     [20]byte
35	Ispeed uint32
36	Ospeed uint32
37}
38
39func TurnOnRawIO(tty *os.File) (orig Termios, err error) {
40	return Termios{}, errors.New("not implemented")
41}
42
43func TcSetAttr(fd uintptr, termios *Termios) error {
44	return errors.New("not implemented")
45}
46
47func TcGetAttr(fd uintptr) (*Termios, error) {
48	return nil, errors.New("not implemented")
49}