home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume23 / trn / part14 / util.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-22  |  1.2 KB  |  43 lines

  1. /* $Header: util.h,v 4.3.3.1 91/01/16 03:41:51 davison Trn $
  2.  *
  3.  * $Log:    util.h,v $
  4.  * Revision 4.3.3.1  91/01/16  03:41:51  davison
  5.  * Added optional prototyping.
  6.  * 
  7.  * Revision 4.3  85/05/01  11:51:58  lwall
  8.  * Baseline for release with 4.3bsd.
  9.  * 
  10.  */
  11.  
  12. EXT bool waiting INIT(FALSE);        /* are we waiting for subprocess (in doshell)? */
  13. EXT int len_last_line_got INIT(0);
  14.             /* strlen of some_buf after */
  15.             /*  some_buf = get_a_line(bufptr,buffersize,fp) */
  16.  
  17. /* is the string for makedir a directory name or a filename? */
  18.  
  19. #define MD_DIR 0
  20. #define MD_FILE 1
  21.  
  22. void    util_init ANSI((void));
  23. int    doshell ANSI((char *,char *));
  24. char    *safemalloc ANSI((MEM_SIZE));
  25. char    *saferealloc ANSI((char *,MEM_SIZE));
  26. char    *safecpy ANSI((char *,char *,int));
  27. char    *safecat ANSI((char *,char *,int));
  28. char    *cpytill ANSI((char *,char *,int));
  29. char    *instr ANSI((char *,char *));
  30. #ifdef SETUIDGID
  31.     int        eaccess ANSI((char *,int));
  32. #endif
  33. char    *getwd ANSI((char *));
  34. char    *get_a_line ANSI((char *,int,FILE *));
  35. char    *savestr ANSI((char *));
  36. int    makedir ANSI((char *,int));
  37. void    setenv ANSI((char *,char *));
  38. int    envix ANSI((char *));
  39. void    notincl ANSI((char *));
  40. char    *getval ANSI((char *,char *));
  41. void    growstr ANSI((char **,int *,int));
  42. void    setdef ANSI((char *,char *));
  43.