From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- unix/os/zglobl.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 unix/os/zglobl.c (limited to 'unix/os/zglobl.c') 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 +#define import_spp +#define import_kernel +#include + +#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]; -- cgit