This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(blead patch) Skip a torture test under blead, and skip certain torture tests under...
[perl5.git] / x2p / util.h
1 /* $RCSfile: util.h,v $$Revision: 4.1 $$Date: 92/08/07 18:29:30 $
2  *
3  *    Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000,
4  *    by Larry Wall and others
5  *
6  *    You may distribute under the terms of either the GNU General Public
7  *    License or the Artistic License, as specified in the README file.
8  *
9  * $Log:        util.h,v $
10  */
11
12 /* is the string for makedir a directory name or a filename? */
13
14 #define fatal Myfatal
15
16 #define MD_DIR 0
17 #define MD_FILE 1
18
19 #ifdef SETUIDGID
20     int         eaccess();
21 #endif
22
23 char    *getwd();
24 int     makedir();
25
26 char * cpy2 ( char *to, char *from, int delim );
27 char * cpytill ( char *to, char *from, int delim );
28 void growstr ( char **strptr, int *curlen, int newlen );
29 char * instr ( char *big, char *little );
30 char * safecpy ( char *to, char *from, int len );
31 char * savestr ( char *str );
32 void croak ( char *pat, ... );
33 void fatal ( char *pat, ... );
34 void warn  ( char *pat, ... );
35 int prewalk ( int numit, int level, int node, int *numericptr );
36
37 Malloc_t safemalloc (MEM_SIZE nbytes);
38 Malloc_t safecalloc (MEM_SIZE elements, MEM_SIZE size);
39 Malloc_t saferealloc (Malloc_t where, MEM_SIZE nbytes);
40 Free_t   safefree (Malloc_t where);