home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume28 / lb / part01 / config.h < prev    next >
C/C++ Source or Header  |  1994-05-16  |  2KB  |  60 lines

  1. /*
  2.  * Copyright (c) 1989-1994 University of Rochester
  3.  * Department of Electrical Engineering
  4.  * All rights reserved.
  5.  *
  6.  * Redistribution and use in source and binary forms are permitted
  7.  * provided that the above copyright notice and this paragraph are
  8.  * duplicated in all such forms and that any documentation,
  9.  * advertising materials, and other materials related to such
  10.  * distribution and use acknowledge that the software was developed
  11.  * at the University of Rochester.
  12.  *
  13.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16.  */
  17.  
  18.  
  19. #define    CONFIGFILE    "./lb.conf"
  20. #define    RSH        "/usr/ucb/rsh"
  21.  
  22. #define loadavg(sp,n)  (((float) (sp)->avenrun[n]) / 256.0)
  23.  
  24. #define MAXLINE        255        /* largest line in config file      */
  25. #define MAXSHBUF    10240        /* max size of shell buffer         */
  26. #define MAXHOST        64        /* longest allowable hostname       */
  27. #define MAXFNAME    255        /* max length of a file name        */
  28. #define NUMHOSTS    64        /* {Max} Number of hosts available  */
  29.  
  30. /*
  31.  * Optimum value for MAXFORKS is the maximum number of machines 
  32.  * that are down, plus at least 1
  33.  *
  34.  */
  35. #define MAXFORKS    10        /* Max # of forks allowed */
  36.  
  37. #define TIMEOUT        245        /* seconds to timeout */
  38.  
  39. #if u3b || u3b5 || sun
  40. #define MAXFLOAT    ((float)3.40282346638528860e+38)
  41. #endif
  42.  
  43. #if pdp11 || vax
  44. #define MAXFLOAT    ((float)1.701411733192644299e+38)
  45. #endif
  46.  
  47. #ifndef MAXFLOAT
  48. #define MAXFLOAT    ((float)1.701411733192644299e+38)
  49. #endif
  50.  
  51. #ifndef FALSE
  52. #define FALSE        0
  53. #endif
  54.  
  55. #ifndef TRUE
  56. #define TRUE        1
  57. #endif
  58.  
  59. typedef int boolean;
  60.