Mercurial > hg > xemacs-beta
comparison src/s/windowsnt.h @ 288:e11d67e05968 r21-0b42
Import from CVS: tag r21-0b42
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:35:54 +0200 |
parents | c42ec1d1cded |
children | 70ad99077275 |
comparison
equal
deleted
inserted
replaced
287:13a0bd77a29d | 288:e11d67e05968 |
---|---|
119 to make Emacs work on this system. For example, | 119 to make Emacs work on this system. For example, |
120 you might define certain system call names that don't | 120 you might define certain system call names that don't |
121 exist on your system, or that do different things on | 121 exist on your system, or that do different things on |
122 your system and must be used only through an encapsulation | 122 your system and must be used only through an encapsulation |
123 (Which you should place, by convention, in sysdep.c). */ | 123 (Which you should place, by convention, in sysdep.c). */ |
124 | |
125 #if 0 | |
126 /* Define this to be the separator between path elements */ | |
127 #define DIRECTORY_SEP XINT (Vdirectory_sep_char) | |
128 #endif | |
129 | 124 |
130 /* XEmacs file I/O for DOS text files requires FILE_CODING */ | 125 /* XEmacs file I/O for DOS text files requires FILE_CODING */ |
131 #define FILE_CODING | 126 #define FILE_CODING |
132 | 127 |
133 #define DIRECTORY_SEP '\\' | 128 #define DIRECTORY_SEP '\\' |
250 | 245 |
251 #define kill sys_kill | 246 #define kill sys_kill |
252 int kill (int pid, int sig); | 247 int kill (int pid, int sig); |
253 | 248 |
254 /* map to MSVC names */ | 249 /* map to MSVC names */ |
250 #define popen _popen | |
251 #define pclose _pclose | |
252 | |
253 #if 0 | |
255 #define chdir _chdir | 254 #define chdir _chdir |
256 #define execlp _execlp | 255 #define execlp _execlp |
257 #define execvp _execvp | 256 #define execvp _execvp |
258 #define fcloseall _fcloseall | 257 #define fcloseall _fcloseall |
259 #define fdopen _fdopen | 258 #define fdopen _fdopen |
265 #define getpid _getpid | 264 #define getpid _getpid |
266 #define isatty _isatty | 265 #define isatty _isatty |
267 #define logb _logb | 266 #define logb _logb |
268 #define _longjmp longjmp | 267 #define _longjmp longjmp |
269 #define lseek _lseek | 268 #define lseek _lseek |
270 #define popen _popen | |
271 #define pclose _pclose | |
272 #define putw _putw | 269 #define putw _putw |
273 #define umask _umask | 270 #define umask _umask |
274 /* #define utime _utime */ | 271 /* #define utime _utime */ |
275 #define index strchr | 272 #define index strchr |
276 #define rindex strrchr | 273 #define rindex strrchr |
280 | 277 |
281 #ifdef HAVE_NTGUI | 278 #ifdef HAVE_NTGUI |
282 #define abort win32_abort | 279 #define abort win32_abort |
283 #endif | 280 #endif |
284 | 281 |
282 #endif /* 0 */ | |
283 | |
284 /* Encapsulation of system calls */ | |
285 #ifndef DONT_ENCAPSULATE | |
286 #define getpid sys_getpid | |
287 int getpid (void); | |
288 #endif | |
289 | |
285 /* Random global functions called everywhere. Implemented in nt.c */ | 290 /* Random global functions called everywhere. Implemented in nt.c */ |
291 /* #### Most of these are FSFisms and must be avoided */ | |
292 /* #### All of these are FSFisms and must be avoided */ | |
286 void dostounix_filename (char *p); | 293 void dostounix_filename (char *p); |
287 void unixtodos_filename (char *p); | 294 void unixtodos_filename (char *p); |
295 int crlf_to_lf (int n, unsigned char *buf, unsigned int *lf_count); | |
296 | |
288 char *getwd (char *dir); | 297 char *getwd (char *dir); |
298 | |
299 void *sbrk (unsigned long increment); | |
300 | |
301 struct passwd; | |
302 struct passwd *getpwuid (int uid); | |
303 struct passwd *getpwnam (const char *name); | |
304 int getuid (); | |
305 int geteuid (); | |
306 int getgid (void); | |
307 int getegid (); | |
289 | 308 |
290 /* Setitimer is emulated */ | 309 /* Setitimer is emulated */ |
291 #define HAVE_SETITIMER | 310 #define HAVE_SETITIMER |
292 | 311 |
293 /* We now have emulation for some signals */ | 312 /* We now have emulation for some signals */ |
308 /* For integration with MSDOS support. */ | 327 /* For integration with MSDOS support. */ |
309 #define getdisk() (_getdrive () - 1) | 328 #define getdisk() (_getdrive () - 1) |
310 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) | 329 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) |
311 | 330 |
312 #define EMACS_CONFIGURATION get_emacs_configuration () | 331 #define EMACS_CONFIGURATION get_emacs_configuration () |
332 const char *get_emacs_configuration (void); | |
313 #define EMACS_CONFIG_OPTIONS "NT" /* Not very meaningful yet. */ | 333 #define EMACS_CONFIG_OPTIONS "NT" /* Not very meaningful yet. */ |
314 | 334 |
315 #if 0 /* they do. -kkm */ | 335 #if 0 /* they do. -kkm */ |
316 /* Define this so that winsock.h definitions don't get included when windows.h | 336 /* Define this so that winsock.h definitions don't get included when windows.h |
317 is... I don't know if they do the right thing for emacs. For this to | 337 is... I don't know if they do the right thing for emacs. For this to |
339 #include <string.h> | 359 #include <string.h> |
340 | 360 |
341 /* Define process implementation */ | 361 /* Define process implementation */ |
342 #define HAVE_WIN32_PROCESSES | 362 #define HAVE_WIN32_PROCESSES |
343 | 363 |
344 #if 0 | |
345 /* Emacs takes care of ensuring that these are defined. */ | |
346 #ifdef max | |
347 #undef max | |
348 #undef min | |
349 #endif | |
350 #endif | |
351 | |
352 /* We need a little extra space, see ../../lisp/loadup.el */ | 364 /* We need a little extra space, see ../../lisp/loadup.el */ |
353 #define SYSTEM_PURESIZE_EXTRA 15000 | 365 #define SYSTEM_PURESIZE_EXTRA 15000 |
354 | 366 |
355 /* ============================================================ */ | 367 /* ============================================================ */ |