1N/A/* $RCSfile: util.h,v $$Revision: 4.1 $$Date: 92/08/07 18:29:30 $
1N/A *
1N/A * Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000,
1N/A * by Larry Wall and others
1N/A *
1N/A * You may distribute under the terms of either the GNU General Public
1N/A * License or the Artistic License, as specified in the README file.
1N/A *
1N/A * $Log: util.h,v $
1N/A */
1N/A
1N/A/* is the string for makedir a directory name or a filename? */
1N/A
1N/A#define fatal Myfatal
1N/A
1N/A#define MD_DIR 0
1N/A#define MD_FILE 1
1N/A
1N/A#ifdef SETUIDGID
1N/A int eaccess();
1N/A#endif
1N/A
1N/Achar *getwd();
1N/Aint makedir();
1N/A
1N/Achar * cpy2 ( char *to, char *from, int delim );
1N/Achar * cpytill ( char *to, char *from, int delim );
1N/Avoid growstr ( char **strptr, int *curlen, int newlen );
1N/Achar * instr ( char *big, char *little );
1N/Achar * safecpy ( char *to, char *from, int len );
1N/Achar * savestr ( char *str );
1N/Avoid croak ( char *pat, ... );
1N/Avoid fatal ( char *pat, ... );
1N/Avoid warn ( char *pat, ... );
1N/Aint prewalk ( int numit, int level, int node, int *numericptr );
1N/A
1N/AMalloc_t safemalloc (MEM_SIZE nbytes);
1N/AMalloc_t safecalloc (MEM_SIZE elements, MEM_SIZE size);
1N/AMalloc_t saferealloc (Malloc_t where, MEM_SIZE nbytes);
1N/AFree_t safefree (Malloc_t where);