diff options
author | Glenn Morris <rgm@gnu.org> | 2008-06-13 08:08:20 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2008-06-13 08:08:20 +0000 |
commit | d888760c951787ccc3a48d7f90bc798ee0996b9b (patch) | |
tree | 1aabac1ac803d6d2e8614eef3dcf35874e5841de /src/w32.h | |
parent | 07d99e7544ffa51339ae1ba1a3785f49247e0c6e (diff) | |
download | emacs-d888760c951787ccc3a48d7f90bc798ee0996b9b.tar.gz |
Daniel Engeler <engeler at gmail.com>
These changes add serial port access.
* process.c: Add HAVE_SERIAL.
(Fdelete_process, Fprocess_status, Fset_process_buffer)
(Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
(list_processes_1, select_wrapper, Fstop_process)
(Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
(status_notify): Modify to handle serial processes.
[HAVE_SERIAL] (Fserial_process_configure)
[HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
New functions.
* process.h (struct Lisp_Process): Add `type'.
* sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
New functions.
* w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle serial ports.
(serial_open, serial_configure) New functions.
* w32.h: Add FILE_SERIAL.
(struct _child_process): Add ovl_read, ovl_write.
Diffstat (limited to 'src/w32.h')
-rw-r--r-- | src/w32.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/w32.h b/src/w32.h index c57d8956411..65483c00ca4 100644 --- a/src/w32.h +++ b/src/w32.h @@ -72,6 +72,8 @@ typedef struct _child_process PROCESS_INFORMATION procinfo; volatile int status; char chr; + OVERLAPPED ovl_read; + OVERLAPPED ovl_write; } child_process; #define MAXDESC FD_SETSIZE @@ -99,6 +101,7 @@ extern filedesc fd_info [ MAXDESC ]; #define FILE_PIPE 0x0100 #define FILE_SOCKET 0x0200 #define FILE_NDELAY 0x0400 +#define FILE_SERIAL 0x0800 extern child_process * new_child (void); extern void delete_child (child_process *cp); |