home *** CD-ROM | disk | FTP | other *** search
- /* $Header: util.h,v 4.3.3.1 91/01/16 03:41:51 davison Trn $
- *
- * $Log: util.h,v $
- * Revision 4.3.3.1 91/01/16 03:41:51 davison
- * Added optional prototyping.
- *
- * Revision 4.3 85/05/01 11:51:58 lwall
- * Baseline for release with 4.3bsd.
- *
- */
-
- EXT bool waiting INIT(FALSE); /* are we waiting for subprocess (in doshell)? */
- EXT int len_last_line_got INIT(0);
- /* strlen of some_buf after */
- /* some_buf = get_a_line(bufptr,buffersize,fp) */
-
- /* is the string for makedir a directory name or a filename? */
-
- #define MD_DIR 0
- #define MD_FILE 1
-
- void util_init ANSI((void));
- int doshell ANSI((char *,char *));
- char *safemalloc ANSI((MEM_SIZE));
- char *saferealloc ANSI((char *,MEM_SIZE));
- char *safecpy ANSI((char *,char *,int));
- char *safecat ANSI((char *,char *,int));
- char *cpytill ANSI((char *,char *,int));
- char *instr ANSI((char *,char *));
- #ifdef SETUIDGID
- int eaccess ANSI((char *,int));
- #endif
- char *getwd ANSI((char *));
- char *get_a_line ANSI((char *,int,FILE *));
- char *savestr ANSI((char *));
- int makedir ANSI((char *,int));
- void setenv ANSI((char *,char *));
- int envix ANSI((char *));
- void notincl ANSI((char *));
- char *getval ANSI((char *,char *));
- void growstr ANSI((char **,int *,int));
- void setdef ANSI((char *,char *));
-