--- freem/src/mpsdef.h 2025/04/02 03:02:42 1.6 +++ freem/src/mpsdef.h 2025/04/13 04:22:43 1.9 @@ -1,5 +1,5 @@ /* - * $Id: mpsdef.h,v 1.6 2025/04/02 03:02:42 snw Exp $ + * $Id: mpsdef.h,v 1.9 2025/04/13 04:22:43 snw Exp $ * common external definitions for all mumps modules * * @@ -24,6 +24,15 @@ * along with FreeM. If not, see . * * $Log: mpsdef.h,v $ + * Revision 1.9 2025/04/13 04:22:43 snw + * Fix snprintf calls + * + * Revision 1.8 2025/04/10 01:24:38 snw + * Remove C++ style comments + * + * Revision 1.7 2025/04/04 19:43:18 snw + * Switch to using environment catalog to determine user and group for environment, and remove -u and -g flags from freem + * * Revision 1.6 2025/04/02 03:02:42 snw * Stop requiring users to pass -e to fmadm when -u or -g are passed * @@ -247,6 +256,7 @@ extern int noclear; extern int standard; /* 1=standard only, */ extern int quiet_mode; /* quiet mode */ extern char config_file[4096]; /* path to configuration file */ +extern char env_config_file[4096]; /* path to environment config file */ extern char shm_env[255]; /* shared memory environment */ /* 0=non standard features enabled */ extern short ierr; @@ -381,7 +391,7 @@ extern short direct_mode; extern short loadsw; /* flag to avoid redundant loads */ extern short extr_types[NESTLEVLS + 1]; /* return types of extrinsic functions */ -extern char destructors[10][50]; +extern char destructors[10][OBJ_DSTRSIZE]; extern int destructor_ct; extern char private_keys[MAX_PRIVATE_KEYS][255]; @@ -400,7 +410,6 @@ extern short timeoutms; extern char tmp4[80]; extern short param; /* parameter count */ extern short paramx; /* current parameter */ -//extern char *calloc (); extern short level; /* level count */ extern short nestlt[NESTLEVLS + 1]; /* stack $T / stack levelcount */ extern pid_t pid; /* $J = process ID */ @@ -420,9 +429,6 @@ extern short first_process; extern size_t shm_init_size; extern short inrpt_after_async; -//#ifndef OLDUNIX -// extern struct sigaction act; /* signals stuff */ -//#endif /* OLDUNIX */ /* Macros */ /* Create a new variable of type (datatype) with space for qty instances */