1 /*********************************************************************** 2 * * 3 * This software is part of the ast package * 4 * Copyright (c) 1985-2012 AT&T Intellectual Property * 5 * and is licensed under the * 6 * Eclipse Public License, Version 1.0 * 7 * by AT&T Intellectual Property * 8 * * 9 * A copy of the License is available at * 10 * http://www.eclipse.org/org/documents/epl-v10.html * 11 * (with md5 checksum b35adb5213ca9657e911e9befb180842) * 12 * * 13 * Information and Software Systems Research * 14 * AT&T Research * 15 * Florham Park NJ * 16 * * 17 * Glenn Fowler <gsf@research.att.com> * 18 * David Korn <dgk@research.att.com> * 19 * Phong Vo <kpv@research.att.com> * 20 * * 21 ***********************************************************************/ 22 #pragma prototyped 23 /* 24 * Glenn Fowler 25 * AT&T Research 26 * 27 * process library definitions 28 */ 29 30 #ifndef _PROCLIB_H 31 #define _PROCLIB_H 32 33 #include <ast_standards.h> 34 #include <ast.h> 35 #include <errno.h> 36 #include <sig.h> 37 #include <wait.h> 38 39 #if _lib_sigprocmask 40 typedef sigset_t Sig_mask_t; 41 #else 42 typedef unsigned long Sig_mask_t; 43 #endif 44 45 struct Mods_s; 46 47 #define _PROC_PRIVATE_ \ 48 struct Mod_s* mods; /* process modification state */ \ 49 long flags; /* original PROC_* flags */ \ 50 Sig_mask_t mask; /* original blocked sig mask */ \ 51 Sig_handler_t sigchld; /* PROC_FOREGROUND SIG_DFL */ \ 52 Sig_handler_t sigint; /* PROC_FOREGROUND SIG_IGN */ \ 53 Sig_handler_t sigquit; /* PROC_FOREGROUND SIG_IGN */ 54 55 #include <proc.h> 56 57 #define proc_default _proc_info_ /* hide external symbol */ 58 59 extern Proc_t proc_default; /* first proc */ 60 61 #ifndef errno 62 extern int errno; 63 #endif 64 65 #endif 66