20 |
#undef NTOHS |
#undef NTOHS |
21 |
|
|
22 |
#include <stdlib.h> |
#include <stdlib.h> |
23 |
|
#include <util.h> |
24 |
#include <termios.h> |
#include <termios.h> |
25 |
#include <stdio.h> |
#include <stdio.h> |
26 |
#include <unistd.h> |
#include <unistd.h> |
29 |
#include <sys/signal.h> |
#include <sys/signal.h> |
30 |
#include <sys/types.h> |
#include <sys/types.h> |
31 |
|
|
32 |
#if PPP_SUPPORT |
#if PPP_SUPPORT && defined(linux) |
33 |
#include <pty.h> |
#include <pty.h> |
34 |
#endif |
#endif |
35 |
|
|
296 |
fifoInit( &siostate->myfifo ); |
fifoInit( &siostate->myfifo ); |
297 |
#endif /* ! PPP_SUPPORT */ |
#endif /* ! PPP_SUPPORT */ |
298 |
|
|
299 |
sprintf( dev, "/dev/ttyS%d", devnum ); |
snprintf( dev, sizeof(dev), "/dev/ttyS%d", devnum ); |
300 |
|
|
301 |
if ( (devnum == 1) || (devnum == 0) ) |
if ( (devnum == 1) || (devnum == 0) ) |
302 |
{ |
{ |