aboutsummaryrefslogtreecommitdiff
path: root/unix/os/zglobl.c
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /unix/os/zglobl.c
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'unix/os/zglobl.c')
-rw-r--r--unix/os/zglobl.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/unix/os/zglobl.c b/unix/os/zglobl.c
new file mode 100644
index 00000000..0fec31e6
--- /dev/null
+++ b/unix/os/zglobl.c
@@ -0,0 +1,19 @@
+/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+ */
+
+#include <stdio.h>
+#define import_spp
+#define import_kernel
+#include <iraf.h>
+
+#define SZ_PROCNAME 256
+
+/* Allocate ZFD, the global data structure for the kernel file i/o system.
+ * Also allocate a buffer for the process name, used by the error handling
+ * code to identify the process generating an abort.
+ */
+struct fiodes zfd[MAXOFILES];
+char os_process_name[SZ_PROCNAME];
+PKCHAR osfn_bkgfile[SZ_PATHNAME/sizeof(PKCHAR)+1];
+int save_prtype = 0;
+char oscwd[SZ_PATHNAME+1];