Mercurial > hg > xemacs-beta
comparison src/sysdep.h @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 Boston, MA 02111-1307, USA. */ | 19 Boston, MA 02111-1307, USA. */ |
20 | 20 |
21 /* Synched up with: FSF 19.30. Split out of sysdep.c/emacs.c. */ | 21 /* Synched up with: FSF 19.30. Split out of sysdep.c/emacs.c. */ |
22 | 22 |
23 #ifndef INCLUDED_sysdep_h_ | 23 #ifndef _XEMACS_SYSDEP_H_ |
24 #define INCLUDED_sysdep_h_ | 24 #define _XEMACS_SYSDEP_H_ |
25 | 25 |
26 #include <setjmp.h> | 26 #include <setjmp.h> |
27 | 27 |
28 #ifndef WIN32_NATIVE | |
29 extern char **environ; | 28 extern char **environ; |
30 #endif | |
31 | 29 |
32 #ifdef PDUMP | 30 struct emacs_tty; |
33 int pdump_read_file (char **pdump_start_pos, size_t *pdump_length); | 31 int emacs_get_tty (int fd, struct emacs_tty *settings); |
34 #endif | 32 int emacs_set_tty (int fd, struct emacs_tty *settings, int waitp); |
35 | 33 |
36 int eight_bit_tty (struct device *d); | 34 int eight_bit_tty (struct device *d); |
37 | 35 |
38 void stuff_char (struct console *con, int c); | 36 void stuff_char (struct console *con, int c); |
39 | 37 |
48 int get_pty_max_bytes (int fd); | 46 int get_pty_max_bytes (int fd); |
49 Bufbyte get_eof_char (int fd); | 47 Bufbyte get_eof_char (int fd); |
50 | 48 |
51 /* Wait for subprocess with process id `pid' to terminate and | 49 /* Wait for subprocess with process id `pid' to terminate and |
52 make sure it will get eliminated (not remain forever as a zombie) */ | 50 make sure it will get eliminated (not remain forever as a zombie) */ |
53 #ifndef WIN32_NATIVE | |
54 void wait_for_termination (int pid); | 51 void wait_for_termination (int pid); |
55 #endif | |
56 | 52 |
57 /* flush any pending output | 53 /* flush any pending output |
58 * (may flush input as well; it does not matter the way we use it) | 54 * (may flush input as well; it does not matter the way we use it) |
59 */ | 55 */ |
60 void flush_pending_output (int channel); | 56 void flush_pending_output (int channel); |
80 naturally interruptible. */ | 76 naturally interruptible. */ |
81 | 77 |
82 extern JMP_BUF break_system_call_jump; | 78 extern JMP_BUF break_system_call_jump; |
83 extern volatile int can_break_system_calls; | 79 extern volatile int can_break_system_calls; |
84 | 80 |
85 ssize_t sys_write_1 (int fildes, const void *buf, size_t nbyte, | 81 int sys_write_1 (int fildes, CONST void *buf, size_t nbyte, |
86 int allow_quit); | 82 int allow_quit); |
87 ssize_t sys_read_1 (int fildes, void *buf, size_t nbyte, | 83 int sys_read_1 (int fildes, void *buf, size_t nbyte, |
88 int allow_quit); | 84 int allow_quit); |
89 | 85 |
90 /* Call these functions if you want to change some terminal parameter -- | 86 /* Call these functions if you want to change some terminal parameter -- |
91 reset the console, change the parameter, and init it again. */ | 87 reset the console, change the parameter, and init it again. */ |
92 void init_one_console (struct console *c); | 88 void init_one_console (struct console *c); |
93 void reset_one_console (struct console *c); | 89 void reset_one_console (struct console *c); |
144 | 140 |
145 /* Get_system_name returns as its value a string for system-name to return. */ | 141 /* Get_system_name returns as its value a string for system-name to return. */ |
146 void init_system_name (void); | 142 void init_system_name (void); |
147 | 143 |
148 #ifndef HAVE_GETCWD | 144 #ifndef HAVE_GETCWD |
149 char *getcwd (char *pathname, size_t size); | 145 char *getcwd (char *pathname, int size); |
150 #endif | 146 #endif |
151 | 147 |
152 #ifndef HAVE_RENAME | 148 #ifndef HAVE_RENAME |
153 int rename (const char *from, const char *to); | 149 int rename (CONST char *from, CONST char *to); |
154 #endif | 150 #endif |
155 | 151 |
156 #ifndef HAVE_DUP2 | 152 #ifndef HAVE_DUP2 |
157 int dup2 (int oldd, int newd); | 153 int dup2 (int oldd, int newd); |
158 #endif | 154 #endif |
160 #ifndef HAVE_STRERROR | 156 #ifndef HAVE_STRERROR |
161 /* X11R6 defines strerror as a macro */ | 157 /* X11R6 defines strerror as a macro */ |
162 # ifdef strerror | 158 # ifdef strerror |
163 # undef strerror | 159 # undef strerror |
164 # endif | 160 # endif |
165 const char *strerror (int); | 161 CONST char *strerror (int); |
166 #endif | 162 #endif |
167 | 163 |
168 int interruptible_open (const char *path, int oflag, int mode); | 164 #ifdef WINDOWSNT |
165 void mswindows_set_errno (unsigned long win32_error); | |
166 void mswindows_set_last_errno (void); | |
167 #endif | |
168 | |
169 int interruptible_open (CONST char *path, int oflag, int mode); | |
169 | 170 |
170 #ifndef HAVE_H_ERRNO | 171 #ifndef HAVE_H_ERRNO |
171 extern int h_errno; | 172 extern int h_errno; |
172 #endif | 173 #endif |
173 | 174 |
174 #ifdef HAVE_REALPATH | 175 #ifdef HAVE_REALPATH |
175 #define xrealpath realpath | 176 #define xrealpath realpath |
176 #else | 177 #else |
177 char *xrealpath(const char *path, char resolved_path []); | 178 char *xrealpath(CONST char *path, char resolved_path []); |
178 #endif | 179 #endif |
179 | 180 |
180 #endif /* INCLUDED_sysdep_h_ */ | 181 #endif /* _XEMACS_SYSDEP_H_ */ |