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