param.c

/**
   @file      param.c
   @author    Mitch Richling <http://www.mitchr.me/>
   @Copyright Copyright 2004 by Mitch Richling.  All rights reserved.
   @brief     How to use paths.h@EOL
   @Keywords  paths.h unix
   @Std       UNKNOWN
   
              This is an example program intended to illustrate how to
              make use of the param.h header available on some UNIX
              systems (BSD variants).

   @Tested    
              - MacOS X.3
*/

#include <stdio.h>              /* I/O lib         ISOC  */
#include <sys/param.h>          /* UNIX Params     ????  */

int main(int argc, char *argv[]);

int main(int argc, char *argv[]) {
#ifndef __CYGWIN__
  printf("MAXINTERP        max interpreter file name length   %d\n", (int)MAXINTERP);
  printf("MAXLOGNAME       max login name length              %d\n", (int)MAXLOGNAME);
  printf("MAXUPRC          max simultaneous processes         %d\n", (int)MAXUPRC);
  printf("NCARGS           max bytes for an exec function     %d\n", (int)NCARGS);
  printf("NOGROUP          marker for empty group set member  %d\n", (int)NOGROUP);
  printf("MAXDOMNAMELEN    maximum domain name length         %d\n", (int)MAXDOMNAMELEN);
#endif
  printf("NGROUPS          max number groups                  %d\n", (int)NGROUPS);
  printf("NOFILE           default max open files per process %d\n", (int)NOFILE);
  printf("MAXHOSTNAMELEN   max hostname size                  %d\n", (int)MAXHOSTNAMELEN);

  return 0;
} /* end func main */

Generated by GNU Enscript 1.6.5.2.