+ * Revision 1.5 1999/07/19 10:02:51 short
+ * Removed '\xXY' chars for compatibility with Digital UNIX vendor "cc".
+ *
+ * Revision 1.4 1999/07/14 01:01:11 short
+ * Termios made compatible with Digital UNIX 4.0, cfset[io]speed() missing.
+ *
static char *devicename; /* path stripped */
static char lockreal[512],locked;
static char *devicename; /* path stripped */
static char lockreal[512],locked;
+ cfsetispeed(&tios,B19200);
+ if (cfsetospeed(&tios,B19200)|cfsetispeed(&tios,B19200))
+ error("Error setting termios baudrate on device: %m");
if (tcflush(devfd,TCIOFLUSH))
error("Error flushing termios (TCIOFLUSH) on device: %m");
if (tcsetattr(devfd,TCSANOW,&tios))
if (tcflush(devfd,TCIOFLUSH))
error("Error flushing termios (TCIOFLUSH) on device: %m");
if (tcsetattr(devfd,TCSANOW,&tios))
devcmd(NULL,NULL,"\r\nAT");
smscset();
devcmd(NULL,NULL,"\r\nAT+CMGF=0");
devcmd("\n> ",NULL,"\r\nAT+CMGS=%d",(strlen(pdusmsc)+strlen(pdudata))/2);
devcmd(NULL,NULL,"\r\nAT");
smscset();
devcmd(NULL,NULL,"\r\nAT+CMGF=0");
devcmd("\n> ",NULL,"\r\nAT+CMGS=%d",(strlen(pdusmsc)+strlen(pdudata))/2);
- if (!(s=devcmd(NULL,"\n+CMGS:","!%s%s\x1A",pdusmsc,pdudata))) retrying();
+ if (!(s=devcmd(NULL,"\n+CMGS:","!%s%s\032",pdusmsc,pdudata))) retrying();