From 9e443adaf679b071fb3319cfc3259e322dcb6e57 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 20 Mar 1996 14:57:41 +0000 Subject: Tue Mar 19 20:21:34 1996 Roland McGrath Merged VMS port from Klaus Kaempf . * make.h (PARAMS): New macro. * config.h-vms: New file. * makefile.com: New file. * makefile.vms: New file. * readme.vms: New file. * vmsdir.h: New file. * vmsfunctions.c: New file. * vmsify.c: New file. * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr. * ar.c: Added prototypes and changes for VMS. * commands.c: Likewise. * commands.h: Likewise. * default.c: Likewise. * dep.h: Likewise. * dir.c: Likewise. * expand.c: Likewise. * file.c: Likewise. * function.c: Likewise. * implicit.c: Likewise. * job.c: Likewise. * job.h: Likewise. * main.c: Likewise. * make.h: Likewise. * misc.c: Likewise. * read.c: Likewise. * remake.c: Likewise. * remote-stub.c: Likewise. * rule.c: Likewise. * rule.h: Likewise. * variable.c: Likewise. * variable.h: Likewise. * vpath.c: Likewise. * compatMakefile (srcs): Rename file.h to filedef.h. --- commands.c | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'commands.c') diff --git a/commands.c b/commands.c index 97ccbb1..1a4372f 100644 --- a/commands.c +++ b/commands.c @@ -18,12 +18,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "make.h" #include "dep.h" -#include "commands.h" -#include "file.h" +#include "filedef.h" #include "variable.h" #include "job.h" +#include "commands.h" -extern int remote_kill (); +extern int remote_kill PARAMS ((int id, int sig)); #ifndef HAVE_UNISTD_H extern int getpid (); @@ -154,8 +154,11 @@ set_file_variables (file) bcopy (c, cp, len); cp += len; +#if VMS + *cp++ = ','; +#else *cp++ = ' '; - +#endif if (! d->changed) qmark_len -= len + 1; /* Don't space in $? for this one. */ } @@ -193,13 +196,20 @@ set_file_variables (file) bcopy (c, cp, len); cp += len; +#if VMS + *cp++ = ','; +#else *cp++ = ' '; - +#endif if (d->changed) { bcopy (c, qp, len); qp += len; +#if VMS + *qp++ = ','; +#else *qp++ = ' '; +#endif } } @@ -413,7 +423,7 @@ fatal_error_signal (sig) if (sig == SIGQUIT) /* We don't want to send ourselves SIGQUIT, because it will cause a core dump. Just exit instead. */ - exit (1); + exit (EXIT_FAILURE); /* Signal the same code; this time it will really be fatal. The signal will be unblocked when we return and arrive then to kill us. */ -- cgit v1.2.3