Patch for 'perldoc -f'
[p5sagit/p5-mst-13.2.git] / x2p / util.h
CommitLineData
79072805 1/* $RCSfile: util.h,v $$Revision: 4.1 $$Date: 92/08/07 18:29:30 $
a687059c 2 *
9607fc9c 3 * Copyright (c) 1991-1997, 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 22char *getwd();
8d063cd8 23int makedir();
9c8d0b29 24
25char * cpy2 _(( char *to, char *from, int delim ));
26char * cpytill _(( char *to, char *from, int delim ));
9c8d0b29 27void growstr _(( char **strptr, int *curlen, int newlen ));
28char * instr _(( char *big, char *little ));
9c8d0b29 29char * safecpy _(( char *to, char *from, int len ));
30char * savestr _(( char *str ));
55497cff 31#if defined(I_STDARG) && defined(HAS_VPRINTF)
32void croak _(( char *pat, ... ));
33void fatal _(( char *pat, ... ));
34void warn _(( char *pat, ... ));
35#else /* defined(I_STDARG) && defined(HAS_VPRINTF) */
36void croak _(( char *pat, int a1, int a2, int a3, int a4 ));
37void Myfatal ();
9c8d0b29 38void warn ();
55497cff 39#endif /* defined(I_STDARG) && defined(HAS_VPRINTF) */
40int prewalk _(( int numit, int level, int node, int *numericptr ));
41
42Malloc_t safemalloc _((MEM_SIZE nbytes));
43Malloc_t safecalloc _((MEM_SIZE elements, MEM_SIZE size));
44Malloc_t saferealloc _((Malloc_t where, MEM_SIZE nbytes));
45Free_t safefree _((Malloc_t where));