2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #ifndef OPENAFS_PMGTPRIVATE_H
11 #define OPENAFS_PMGTPRIVATE_H
13 /* Private process management definitions and declarations that we don't
14 * want to export in the public procmgmt.h.
18 /* Private process management definitions and declarations for Windows NT */
20 /* Macros to encode/test/decode process exit status to indicate a signal */
21 #define PMGT_SIGSTATUS_ENCODE(signo) \
22 (0x0AF50000 | (UINT)(((signo) & 0xFF) << 8))
24 #define PMGT_IS_SIGSTATUS(status) \
25 ((((status) & 0xFF) == 0) && (((status) & 0xFFFF0000) == 0x0AF50000))
27 #define PMGT_SIGSTATUS_DECODE(status) \
28 ((int)(((status) >> 8) & 0xFF))
31 extern int pmgt_SignalRaiseLocalByName(const char *signo, int *libSigno);
32 extern int pmgt_RedirectNativeSignals(void);
33 extern int pmgt_RestoreNativeSignals(void);
36 /* Private process management definitions and declarations for Unix */
38 #endif /* AFS_NT40_ENV */
40 #endif /* OPENAFS_PMGTPRIVATE_H */