aboutsummaryrefslogtreecommitdiff
path: root/unix/os/zglobl.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /unix/os/zglobl.c
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
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];