diff --git a/scp.c b/scp.c index a8583c4..7acd1f1 100644 --- a/scp.c +++ b/scp.c @@ -249,6 +249,10 @@ #include #endif +#if defined(SIM_NEED_GIT_COMMIT_ID) +#include ".git-commit-id.h" +#endif + #ifndef MAX #define MAX(a,b) (((a) >= (b)) ? (a) : (b)) #endif @@ -2932,6 +2936,8 @@ if (docmdp) { snprintf(nbuf, sizeof (nbuf), "\"%s%s%ssimh.ini\"", cptr2 ? cptr2 : "", cptr, strchr (cptr, '/') ? "/" : "\\"); stat = docmdp->action (-1, nbuf); /* simh.ini proc cmd file */ } + else + stat = SCPE_OPENERR; if (SCPE_BARE_STATUS(stat) == SCPE_OPENERR) stat = docmdp->action (-1, "simh.ini"); /* simh.ini proc cmd file */ if (*cbuf) /* cmd file arg? */ diff --git a/sim_defs.h b/sim_defs.h index d529fac..1f81625 100644 --- a/sim_defs.h +++ b/sim_defs.h @@ -121,6 +121,7 @@ #define SIM_DEFS_H_ 0 #include "sim_rev.h" + #include #include #include diff --git a/sim_disk.c b/sim_disk.c index f0bc326..9a26135 100644 --- a/sim_disk.c +++ b/sim_disk.c @@ -2439,6 +2439,8 @@ time_t now = time (NULL); t_offset total_sectors; t_offset highwater; +return SCPE_OK; + if ((dptr = find_dev_from_unit (uptr)) == NULL) return SCPE_NOATT; if (uptr->flags & UNIT_RO) @@ -2502,6 +2504,8 @@ t_offset total_sectors; t_offset highwater; t_offset footer_highwater; +return SCPE_OK; + if ((dptr = find_dev_from_unit (uptr)) == NULL) return SCPE_NOATT; if (uptr->flags & UNIT_RO) diff --git a/sim_rev.h b/sim_rev.h index 8eb95a0..d2bec30 100644 --- a/sim_rev.h +++ b/sim_rev.h @@ -44,17 +44,11 @@ #define SIM_VERSION_MODE "Current" #endif -#if defined(SIM_NEED_GIT_COMMIT_ID) -#include ".git-commit-id.h" -#endif - /* - Simh's git commit id would be undefined when working with an - extracted archive (zip file or tar ball). To address this - problem and record the commit id that the archive was created - from, the archive creation process populates the below - information as a consequence of the "sim_rev.h export-subst" - line in the .gitattributes file. + SIM__GIT_COMMMIT_ID is undefined when working with an + archive (zip file or tar ball). Use Git keyword subsitution + to record the archive's commit id via the .gitattributes + "export-subst". */ #define SIM_ARCHIVE_GIT_COMMIT_ID $Format:%H$ #define SIM_ARCHIVE_GIT_COMMIT_TIME $Format:%aI$ diff --git a/sim_sock.c b/sim_sock.c index 908c4ef..1d834ab 100644 --- a/sim_sock.c +++ b/sim_sock.c @@ -1088,7 +1088,7 @@ if (!(opt_flags & SIM_SOCK_OPT_BLOCKING)) { if (sta == SOCKET_ERROR) /* fcntl error? */ return sim_err_sock (newsock, "setnonblock"); } -sta = listen (newsock, 1); /* listen on socket */ +sta = listen (newsock, 64); /* listen on socket */ if (sta == SOCKET_ERROR) /* listen error? */ return sim_err_sock (newsock, "listen"); return newsock; /* got it! */