update.
[chise/xemacs-chise.git-] / src / sysdep.h
index 8b50a1f..c06a235 100644 (file)
@@ -20,16 +20,14 @@ Boston, MA 02111-1307, USA.  */
 
 /* Synched up with: FSF 19.30.  Split out of sysdep.c/emacs.c. */
 
-#ifndef _XEMACS_SYSDEP_H_
-#define _XEMACS_SYSDEP_H_
+#ifndef INCLUDED_sysdep_h_
+#define INCLUDED_sysdep_h_
 
 #include <setjmp.h>
 
+#ifndef WINDOWSNT
 extern char **environ;
-
-struct emacs_tty;
-int emacs_get_tty (int fd, struct emacs_tty *settings);
-int emacs_set_tty (int fd, struct emacs_tty *settings, int waitp);
+#endif
 
 int eight_bit_tty (struct device *d);
 
@@ -48,7 +46,12 @@ Bufbyte get_eof_char (int fd);
 
 /* Wait for subprocess with process id `pid' to terminate and
    make sure it will get eliminated (not remain forever as a zombie) */
+#ifdef WINDOWSNT
+#include <windows.h>
+void wait_for_termination (HANDLE pid);
+#else
 void wait_for_termination (int pid);
+#endif
 
 /* flush any pending output
  * (may flush input as well; it does not matter the way we use it)
@@ -59,7 +62,7 @@ void child_setup_tty (int out);
 
 /* Suspend the Emacs process; give terminal to its superior.  */
 void sys_suspend (void);
-/* Suspend a process if possible; give termianl to its superior. */
+/* Suspend a process if possible; give terminal to its superior. */
 void sys_suspend_process (int process);
 
 void request_sigio (void);
@@ -78,10 +81,10 @@ void reset_poll_for_quit (void);
 extern JMP_BUF break_system_call_jump;
 extern volatile int can_break_system_calls;
 
-int sys_write_1 (int fildes, CONST void *buf, size_t nbyte,
-                int allow_quit);
-int sys_read_1 (int fildes, void *buf, size_t nbyte,
-               int allow_quit);
+ssize_t sys_write_1 (int fildes, CONST void *buf, size_t nbyte,
+                    int allow_quit);
+ssize_t sys_read_1 (int fildes, void *buf, size_t nbyte,
+                   int allow_quit);
 
 /* Call these functions if you want to change some terminal parameter --
    reset the console, change the parameter, and init it again. */
@@ -178,4 +181,4 @@ extern int h_errno;
 char *xrealpath(CONST char *path, char resolved_path []);
 #endif
 
-#endif /* _XEMACS_SYSDEP_H_ */
+#endif /* INCLUDED_sysdep_h_ */