1 |
#include <unistd.h> |
#include <unistd.h> |
2 |
#include <fcntl.h> |
#include <fcntl.h> |
3 |
#include <termios.h> |
#include <termios.h> |
4 |
|
#include <strings.h> |
5 |
#include "rdesktop.h" |
#include "rdesktop.h" |
6 |
|
|
7 |
#define FILE_DEVICE_SERIAL_PORT 0x1b |
#define FILE_DEVICE_SERIAL_PORT 0x1b |
287 |
/* optarg = com1, pos2 = /dev/ttyS0 */ |
/* optarg = com1, pos2 = /dev/ttyS0 */ |
288 |
strcpy(g_rdpdr_device[*id].name,optarg); |
strcpy(g_rdpdr_device[*id].name,optarg); |
289 |
|
|
290 |
toupper(g_rdpdr_device[*id].name); |
toupper_str(g_rdpdr_device[*id].name); |
291 |
|
|
292 |
g_rdpdr_device[*id].local_path = xmalloc( strlen(pos2) + 1 ); |
g_rdpdr_device[*id].local_path = xmalloc( strlen(pos2) + 1 ); |
293 |
strcpy(g_rdpdr_device[*id].local_path,pos2); |
strcpy(g_rdpdr_device[*id].local_path,pos2); |