upscheme/c/os_sunos.c

29 lines
556 B
C
Raw Normal View History

2019-10-13 19:51:04 -04:00
#include <sys/termios.h>
2019-08-27 04:13:50 -04:00
#include <math.h>
#include <setjmp.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
2019-08-13 16:58:14 -04:00
#include <unistd.h>
#include "scheme.h"
2019-08-13 16:58:14 -04:00
char *get_exename(char *buf, size_t size)
{
(void)buf;
(void)size;
return NULL;
}
2019-10-13 19:51:04 -04:00
void cfmakeraw(struct termios *t)
{
t->c_iflag &=
~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
2019-10-13 19:51:04 -04:00
t->c_oflag &= ~OPOST;
t->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
t->c_cflag &= ~(CSIZE | PARENB);
t->c_cflag |= CS8;
}