comparison src/process.c @ 2357:9faa3a02ea97

* process.c [VMS] (DCL_PROMPT): Remove hack. (WIFSTOPPED, WIFSIGNALED, WIFEXITED, XRETCODE, WSTOPSIG, WCOREDUMP, WTERMSIG): New dummy definitions. (deactivate_process): Add missing semicolon.
author Jim Blandy <jimb@redhat.com>
date Thu, 25 Mar 1993 02:27:16 +0000
parents be6c70bd6e33
children 96b55f2f19cd
comparison
equal deleted inserted replaced
2356:f7b80bd03e70 2357:9faa3a02ea97
157 #define WIFEXITED(w) (WTERMSIG (w) == 0) 157 #define WIFEXITED(w) (WTERMSIG (w) == 0)
158 #endif 158 #endif
159 #endif /* BSD or UNIPLUS or STRIDE */ 159 #endif /* BSD or UNIPLUS or STRIDE */
160 #endif /* no WAITTYPE */ 160 #endif /* no WAITTYPE */
161 #else /* VMS */ 161 #else /* VMS */
162
163 /* For the CMU PTY driver + */
164 #define DCL_PROMPT "$ "
165 /* This is a hack. I have no idea what needs to go here, but this */
166 /* will get it to compile. We can fix it later. rbr */
167 #define WAITTYPE int 162 #define WAITTYPE int
163 #define WIFSTOPPED(w) 0
164 #define WIFSIGNALED(w) 0
165 #define WIFEXITED(w) ((w) != -1)
166 #define WRETCODE(w) (w)
167 #define WSTOPSIG(w) (w)
168 #define WCOREDUMP(w) 0
169 #define WTERMSIG(w) (w)
168 #include <ssdef.h> 170 #include <ssdef.h>
169 #include <iodef.h> 171 #include <iodef.h>
170 #include <clidef.h> 172 #include <clidef.h>
171 #include "vmsproc.h" 173 #include "vmsproc.h"
172 #endif /* VMS */ 174 #endif /* VMS */
1525 flush_pending_output (inchannel); 1527 flush_pending_output (inchannel);
1526 #ifdef VMS 1528 #ifdef VMS
1527 { 1529 {
1528 VMS_PROC_STUFF *get_vms_process_pointer (), *vs; 1530 VMS_PROC_STUFF *get_vms_process_pointer (), *vs;
1529 sys$dassgn (outchannel); 1531 sys$dassgn (outchannel);
1530 vs = get_vms_process_pointer (p->pid) 1532 vs = get_vms_process_pointer (p->pid);
1531 if (vs) 1533 if (vs)
1532 give_back_vms_process_stuff (vs); 1534 give_back_vms_process_stuff (vs);
1533 } 1535 }
1534 #else 1536 #else
1535 close (inchannel); 1537 close (inchannel);