Commit | Line | Data |
79072805 |
1 | /* $RCSfile: util.h,v $$Revision: 4.1 $$Date: 92/08/07 18:29:30 $ |
a687059c |
2 | * |
be3c0a43 |
3 | * Copyright (c) 1991-2002, Larry Wall |
a687059c |
4 | * |
d48672a2 |
5 | * You may distribute under the terms of either the GNU General Public |
6 | * License or the Artistic License, as specified in the README file. |
8d063cd8 |
7 | * |
8 | * $Log: util.h,v $ |
8d063cd8 |
9 | */ |
10 | |
11 | /* is the string for makedir a directory name or a filename? */ |
12 | |
55204971 |
13 | #define fatal Myfatal |
14 | |
8d063cd8 |
15 | #define MD_DIR 0 |
16 | #define MD_FILE 1 |
17 | |
8d063cd8 |
18 | #ifdef SETUIDGID |
19 | int eaccess(); |
20 | #endif |
9c8d0b29 |
21 | |
8d063cd8 |
22 | char *getwd(); |
8d063cd8 |
23 | int makedir(); |
9c8d0b29 |
24 | |
20ce7b12 |
25 | char * cpy2 ( char *to, char *from, int delim ); |
26 | char * cpytill ( char *to, char *from, int delim ); |
27 | void growstr ( char **strptr, int *curlen, int newlen ); |
28 | char * instr ( char *big, char *little ); |
29 | char * safecpy ( char *to, char *from, int len ); |
30 | char * savestr ( char *str ); |
31 | void croak ( char *pat, ... ); |
32 | void fatal ( char *pat, ... ); |
33 | void warn ( char *pat, ... ); |
34 | int prewalk ( int numit, int level, int node, int *numericptr ); |
55497cff |
35 | |
20ce7b12 |
36 | Malloc_t safemalloc (MEM_SIZE nbytes); |
37 | Malloc_t safecalloc (MEM_SIZE elements, MEM_SIZE size); |
38 | Malloc_t saferealloc (Malloc_t where, MEM_SIZE nbytes); |
39 | Free_t safefree (Malloc_t where); |