1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
|
static char h_rcsid[]="$Id: h.h,v 1.2 1997/08/08 19:51:25 decker Exp $";
/*----------------------------------------------------
* h.h Tom Green Mon Jan 31 10:44:31 1994
*
* Copyright 1993
*
* SUPER COMPUTER COMPUTATIONS RESEARCH INSTITUTE
* FLORIDA STATE UNIVERSITY
*
*
* SCRI representatives make no claims about the
* suitability of this software for any purpose.
* It is provided "as is" without express or
* implied warranty.
*
* $Log: h.h,v $
* Revision 1.2 1997/08/08 19:51:25 decker
* Patch by Janssen for Linux
*
* Revision 1.1.1.1 1997/04/10 15:10:35 green
* DQS 3.1.3.4.1 Distribution
*
* Revision 3.16 1997/03/25 18:13:50 nrl
* removed redundant definitions and some typing garbage
*
* Revision 3.15 1997/03/25 16:48:02 nrl
* Stripped garbage from Makefile.proto.in
*
* Revision 3.14 1996/11/20 23:05:01 nrl
* Several fixes submitted by or as a result of investigations by
* Ron Lee, Bodo Bechenback, Guntram Wolski and Frank Dwyyer.
*
* Revision 3.13 1996/07/09 22:05:51 nrl
* Added include path for openwin on SOLARIS platforms
*
* Revision 3.12 1996/03/14 03:16:52 nrl
* merge in subordinate queues and consumable resource changes
*
* Revision 3.11 1996/03/12 17:13:01 nrl
* removed aborts and replaced with an error messaging scheme
* to send email to the dqs adminsitrator and wait for
* actions by that administrator
*
* Revision 3.10 1996/02/07 13:08:28 nrl
* Added "process leader" and TMP_FILES link capability
*
* Revision 3.8 1995/05/29 18:09:01 nrl
* More solaris stuff GAGGHH had to differentiate more cases of
* solaris2.3 and solaris2.4 stuff
*
* Revision 3.7 1994/06/14 19:15:04 green
* yanked "#include <arpa/inet.h>"
*
* Revision 3.6 1994/06/02 18:49:30 green
* more portability headaches brought on by Sun Solaris
* now including "Makefile.h" which is generated by config.guess
* so we can stick in all sorts of #ifdefs in to handle Sloaris
*
* Revision 3.5 1994/06/02 13:44:33 green
* attempt to port to Sloaris...
* Work In Progress(WIPed)
*
* Revision 3.4 1994/05/31 14:25:39 green
* suns don't like #include <sys/select.h> - ifdef'ed out
*
* Revision 3.3 1994/05/31 12:03:52 green
* some OSes define MAXNAMELEN - some don't
* handled with an ifndef in def.h
*
* removed "#include "h.h"" in defined.c
*
* yanked ANSI prototyping in dsh.c/dshd.c as some(sic) C compilers can't
* swallow them
*
* #ifdef'ed fcntl(F_SETOWN) out for HPUX in dsh.c as HPUX doesn't define
* it
*
* #ifdef'ed "#include <sys/select.h>" out of h.h #ifdefed
* __hpux/bsd_4_2/SVR3/__osf__.(taken care of in types.h in most of
* these.)
*
* Revision 3.2 1994/05/30 23:56:16 green
* added necessary defs for DCMD/DSH to def.h
*
* added notes on necessary hooks to dqs_execd.c reqd for direct execing
* of dsh
*
* added "#include <setjmp.h>" to h.h
*
* Revision 3.1 1994/05/28 15:43:07 green
* added dqs_c_dshd.c to Makefile.proto
*
* misc type casting to squalk cc warnings
*
* Revision 3.0 1994/03/07 04:15:02 green
* 3.0 freeze
*
* Revision 1.1.1.1 1994/02/01 17:57:49 green
* DQS 3.0 ALPHA
*
*--------------------------------------------------*/
#include <setjmp.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <sys/signal.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <syslog.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <time.h>
#include <sys/time.h>
#include <sys/param.h>
#include <sys/file.h>
#ifdef _AIX
#include <sys/select.h>
#endif
#if defined(__hpux) && defined(__hppa)
# define _KERNEL
#endif
#include <sys/resource.h>
#if defined(__hpux) && defined(__hppa)
# undef _KERNEL
#endif
#include <pwd.h>
#include <sys/socket.h>
#if ( defined(sun) || defined(solaris) || defined (SOLARIS23) || defined (SOLARIS24) )
#include <dirent.h>
#ifndef RUSAGE_CHILDREN
/* why am I doing this - well SUN can't seem to decide whether to use
sys/rusage.h or not - they say it is "OBSOLETE" but don't have the
necessary defs anywhere else in Sloaris 2.3
Solaris 2.4+ now uses /usr/include/sys/resource.h for load_average definitions.
*/
#if ( defined (SOLARIS24) )
#include </usr/ucbinclude/sys/rusage.h>
#else
#include <sys/rusage.h>
#endif
#endif
#else
#include <sys/dir.h>
#endif
#include <sys/stat.h>
#include <grp.h>
#include <stdlib.h>
#ifndef _UNICOS
#include <sys/file.h>
#else
#include <dirent.h>
#include <sys/category.h>
#include <sys/times.h>
#endif
#ifdef __hpux
#include <sys/times.h>
#endif
#ifdef _AIX
#include <sys/select.h>
#endif
/*patch*/
#if !(defined(__linux__) && defined (__GLIBC__) && __GLIBC__ >= 2)
#include <nlist.h>
#endif
#if ( defined(i386) || defined(__MACH__) || defined(sun) || defined(solaris) || defined (SOLARIS23) || defined (SOLARIS24) || defined(NeXT) )
/* empty */
#else
#include <sys/sysinfo.h>
#include <unistd.h>
#endif
#ifndef NeXT
#include <unistd.h>
#endif
|