Open torbam1 opened 5 years ago
Thank you for the report, but FASYNC support is not in kLIBC and there are currently no plans to implement it there or in LIBCx. I'lll leave this open in case if someone wants to volunteer.
Okay, thanks a lot for the answer. Anyway, are ther planx to adopt posix libs completly?
gcc -O -Wall -c -o src/serial.o src/serial.c src/serial.c:13: warning: "__USE_EMX" redefined
define __USE_EMX
In file included from E:/GCC/GCC8P/USR/include/sys/gnu/cdefs.h:30, from E:/GCC/GCC8P/USR/include/sys/cdefs.h:627, from E:/GCC/GCC8P/USR/include/sys/fcntl.h:65, from E:/GCC/GCC8P/USR/include/sys/file.h:5, from src/serial.c:1: E:/GCC/GCC8P/USR/include/features.h:303: note: this is the location of the previous definition
define __USE_EMX 1 / bird /
src/serial.c:14: warning: "__BSD_VISIBLE" redefined
define __BSD_VISIBLE 0
In file included from E:/GCC/GCC8P/USR/include/sys/gnu/cdefs.h:30, from E:/GCC/GCC8P/USR/include/sys/cdefs.h:627, from E:/GCC/GCC8P/USR/include/sys/fcntl.h:65, from E:/GCC/GCC8P/USR/include/sys/file.h:5, from src/serial.c:1: E:/GCC/GCC8P/USR/include/features.h:290: note: this is the location of the previous definition
define __BSD_VISIBLE 1
src/serial.c: In function 'ser_init_conn': src/serial.c:109:26: error: 'FASYNC' undeclared (first use in this function); did you mean 'FFSYNC'? fcntl(fd, F_SETFL, FASYNC); ^
~FFSYNC src/serial.c:109:26: note: each undeclared identifier is reported only once for each function it appears in src/serial.c:111:55: error: 'CRTSCTS' undeclared (first use in this function) tio.c_cflag = bps_rate | CS8 | CLOCAL | CREAD | CRTSCTS; ^~~ src/serial.c: In function 'ser_set_flow_control': src/serial.c:139:35: error: 'CRTSCTS' undeclared (first use in this function) tio.c_cflag &= ~(IXON | IXOFF | CRTSCTS); ^~~ src/serial.c: In function 'ser_get_control_lines': src/serial.c:152:20: error: 'TIOCMGET' undeclared (first use in this function); did you mean 'TCGETA'? if(0 > ioctl(fd, TIOCMGET, &status)) { ^~~~ TCGETA src/serial.c: In function 'ser_set_control_lines': src/serial.c:167:15: error: 'TIOCM_RTS' undeclared (first use in this function) status &= ~(TIOCM_RTS | TIOCM_DTR); ^~~~~ src/serial.c:167:27: error: 'TIOCM_DTR' undeclared (first use in this function); did you mean 'SIOCSRDBRD'? status &= ~(TIOCM_RTS | TIOCM_DTR); ^~~~~ SIOCSRDBRD src/serial.c:169:20: error: 'TIOCMSET' undeclared (first use in this function); did you mean 'PPOLYSET'? if(0 > ioctl(fd, TIOCMSET, &status)) { ^~~~ PPOLYSET make: *** [src/serial.o] Error 1