Mercurial > hg > xemacs-beta
comparison src/sysdep.c @ 231:557eaa0339bf r20-5b14
Import from CVS: tag r20-5b14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:13:48 +0200 |
parents | 12579d965149 |
children | 41f2f0e326e9 |
comparison
equal
deleted
inserted
replaced
230:39ed1d2bdd9d | 231:557eaa0339bf |
---|---|
61 #endif | 61 #endif |
62 #include "sysfile.h" | 62 #include "sysfile.h" |
63 #include "syswait.h" | 63 #include "syswait.h" |
64 #include "sysdir.h" | 64 #include "sysdir.h" |
65 #include "systime.h" | 65 #include "systime.h" |
66 #if defined(WINDOWSNT) || defined(__CYGWIN32__) | |
67 #include "syssignal.h" | |
68 #endif | |
69 #ifndef WINDOWSNT | |
70 #include <sys/times.h> | |
71 #endif | |
72 | |
66 #if defined(WINDOWSNT) | 73 #if defined(WINDOWSNT) |
67 #include "syssignal.h" | |
68 #else | |
69 #include <sys/times.h> | |
70 #endif | |
71 | |
72 #ifdef WINDOWSNT | |
73 #include <direct.h> | 74 #include <direct.h> |
74 /* In process.h which conflicts with the local copy. */ | 75 /* In process.h which conflicts with the local copy. */ |
75 #define _P_WAIT 0 | 76 #define _P_WAIT 0 |
76 int _CRTAPI1 _spawnlp (int, const char *, const char *, ...); | 77 int _CRTAPI1 _spawnlp (int, const char *, const char *, ...); |
77 int _CRTAPI1 _getpid (void); | 78 int _CRTAPI1 _getpid (void); |
2193 break; | 2194 break; |
2194 | 2195 |
2195 hostname_size <<= 1; | 2196 hostname_size <<= 1; |
2196 hostname = (char *) alloca (hostname_size); | 2197 hostname = (char *) alloca (hostname_size); |
2197 } | 2198 } |
2198 # ifdef HAVE_SOCKETS | 2199 # if defined( HAVE_SOCKETS) && !defined(__CYGWIN32__) |
2199 /* Turn the hostname into the official, fully-qualified hostname. | 2200 /* Turn the hostname into the official, fully-qualified hostname. |
2200 Don't do this if we're going to dump; this can confuse system | 2201 Don't do this if we're going to dump; this can confuse system |
2201 libraries on some machines and make the dumped emacs core dump. */ | 2202 libraries on some machines and make the dumped emacs core dump. */ |
2202 # ifndef CANNOT_DUMP | 2203 # ifndef CANNOT_DUMP |
2203 if (initialized) | 2204 if (initialized) |
3243 /* Strings corresponding to defined signals */ | 3244 /* Strings corresponding to defined signals */ |
3244 /************************************************************************/ | 3245 /************************************************************************/ |
3245 | 3246 |
3246 #if !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST) | 3247 #if !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST) |
3247 | 3248 |
3248 #ifdef WINDOWSNT | 3249 #if defined(WINDOWSNT) || defined(__CYGWIN32__) |
3249 char *sys_siglist[] = | 3250 CONST char *sys_siglist[] = |
3250 { | 3251 { |
3251 "bum signal!!", | 3252 "bum signal!!", |
3252 "hangup", | 3253 "hangup", |
3253 "interrupt", | 3254 "interrupt", |
3254 "quit", | 3255 "quit", |