home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / trn / part01 / util.h < prev   
Encoding:
C/C++ Source or Header  |  1991-12-02  |  1.8 KB  |  58 lines

  1. /* $Id: util.h,v 4.4 1991/09/09 20:27:37 sob Exp sob $
  2.  *
  3.  * $Log: util.h,v $
  4.  * Revision 4.4  1991/09/09  20:27:37  sob
  5.  * release 4.4
  6.  *
  7.  *
  8.  * 
  9.  */
  10. /* This software is Copyright 1991 by Stan Barber. 
  11.  *
  12.  * Permission is hereby granted to copy, reproduce, redistribute or otherwise
  13.  * use this software as long as: there is no monetary profit gained
  14.  * specifically from the use or reproduction of this software, it is not
  15.  * sold, rented, traded or otherwise marketed, and this copyright notice is
  16.  * included prominently in any copy made. 
  17.  *
  18.  * The author make no claims as to the fitness or correctness of this software
  19.  * for any use whatsoever, and it is provided as is. Any use of this software
  20.  * is at the user's own risk. 
  21.  */
  22.  
  23. EXT bool waiting INIT(FALSE);    
  24.             /* are we waiting for subprocess (in doshell)? */
  25. EXT int len_last_line_got INIT(0);
  26.             /* strlen of some_buf after */
  27.             /*  some_buf = get_a_line(bufptr,buffersize,fp) */
  28.  
  29. /* is the string for makedir a directory name or a filename? */
  30.  
  31. #define MD_DIR     0
  32. #define MD_FILE 1
  33.  
  34. void    util_init ANSI((void));
  35. int    doshell ANSI((char *,char *));
  36. char    *safemalloc ANSI((MEM_SIZE));
  37. char    *saferealloc ANSI((char *,MEM_SIZE));
  38. char    *safecpy ANSI((char *,char *,int));
  39. char    *safecat ANSI((char *,char *,int));
  40. char    *cpytill ANSI((char *,char *,int));
  41. char    *instr ANSI((char *,char *, int));
  42. #ifdef SETUIDGID
  43.     int        eaccess ANSI((char *,int));
  44. #endif
  45. char    *getwd ANSI((char *));
  46. char    *get_a_line ANSI((char *,int,FILE *));
  47. char    *savestr ANSI((char *));
  48. int    makedir ANSI((char *,int));
  49. void    setenv ANSI((char *,char *));
  50. int    envix ANSI((char *));
  51. void    notincl ANSI((char *));
  52. char    *getval ANSI((char *,char *));
  53. void    growstr ANSI((char **,int *,int));
  54. void    setdef ANSI((char *,char *));
  55. #ifdef SERVER
  56. int    nntp_get ANSI((char *, int));
  57. #endif
  58.