Mercurial > hg > xemacs-beta
diff src/sysdep.h @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 8de8e3f6228a |
children | 5fd7ba8b56e7 |
line wrap: on
line diff
--- a/src/sysdep.h Mon Aug 13 11:33:40 2007 +0200 +++ b/src/sysdep.h Mon Aug 13 11:35:02 2007 +0200 @@ -25,10 +25,14 @@ #include <setjmp.h> -#ifndef WINDOWSNT +#ifndef WIN32_NATIVE extern char **environ; #endif +#ifdef PDUMP +int pdump_read_file (char **pdump_start_pos, size_t *pdump_length); +#endif + int eight_bit_tty (struct device *d); void stuff_char (struct console *con, int c); @@ -46,10 +50,7 @@ /* 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 +#ifndef WIN32_NATIVE void wait_for_termination (int pid); #endif @@ -81,7 +82,7 @@ extern JMP_BUF break_system_call_jump; extern volatile int can_break_system_calls; -ssize_t sys_write_1 (int fildes, CONST void *buf, size_t nbyte, +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); @@ -145,11 +146,11 @@ void init_system_name (void); #ifndef HAVE_GETCWD -char *getcwd (char *pathname, int size); +char *getcwd (char *pathname, size_t size); #endif #ifndef HAVE_RENAME -int rename (CONST char *from, CONST char *to); +int rename (const char *from, const char *to); #endif #ifndef HAVE_DUP2 @@ -161,15 +162,10 @@ # ifdef strerror # undef strerror # endif -CONST char *strerror (int); +const char *strerror (int); #endif -#ifdef WINDOWSNT -void mswindows_set_errno (unsigned long win32_error); -void mswindows_set_last_errno (void); -#endif - -int interruptible_open (CONST char *path, int oflag, int mode); +int interruptible_open (const char *path, int oflag, int mode); #ifndef HAVE_H_ERRNO extern int h_errno; @@ -178,7 +174,7 @@ #ifdef HAVE_REALPATH #define xrealpath realpath #else -char *xrealpath(CONST char *path, char resolved_path []); +char *xrealpath(const char *path, char resolved_path []); #endif #endif /* INCLUDED_sysdep_h_ */