Branch: Tag:

2020-02-28

2020-02-28 10:34:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>

I/O: Make termios code dependent on presence of tcgetattr().

Preparation for supporting some termios operations on NT.

Preparation for #10013.

170: Inside #if defined(HAVE_TERMIOS_H) || defined(HAVE_SYS_TERMIOS_H)
  #if defined(HAVE_TERMIOS_H) || defined(HAVE_SYS_TERMIOS_H)   /* function(void:mapping) */   FILE_FUNC("tcgetattr",file_tcgetattr, tFunc(tNone,tMapping)) + #ifdef HAVE_TCGETATTR   /* function(mapping, void|string: int(0..1)) */   FILE_FUNC("tcsetattr", file_tcsetattr, tFunc(tMapping tOr(tVoid, tStr), tInt01))   /* function(int: int(0..1)) */
180: Inside #if defined(HAVE_TERMIOS_H) || defined(HAVE_SYS_TERMIOS_H)
  /* FILE_FUNC("tcflow",file_tcflow,"function(string:int)"); */   /* FILE_FUNC("tcgetpgrp",file_tcgetpgrp,"function(void:int)"); */   /* FILE_FUNC("tcsetpgrp",file_tcsetpgrp,"function(int:int)"); */ + #endif   #ifdef TIOCSWINSZ   FILE_FUNC("tcsetsize", file_tcsetsize, tFunc(tIntPos tIntPos, tInt01))   #endif