This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactoring to Sv*_set() macros - patch #5
[perl5.git] / x2p / util.h
CommitLineData
79072805 1/* $RCSfile: util.h,v $$Revision: 4.1 $$Date: 92/08/07 18:29:30 $
a687059c 2 *
4bb101f2
JH
3 * Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000,
4 * by Larry Wall and others
a687059c 5 *
d48672a2
LW
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.
8d063cd8
LW
8 *
9 * $Log: util.h,v $
8d063cd8
LW
10 */
11
12/* is the string for makedir a directory name or a filename? */
13
55204971
LW
14#define fatal Myfatal
15
8d063cd8
LW
16#define MD_DIR 0
17#define MD_FILE 1
18
8d063cd8
LW
19#ifdef SETUIDGID
20 int eaccess();
21#endif
9c8d0b29 22
8d063cd8 23char *getwd();
8d063cd8 24int makedir();
9c8d0b29 25
20ce7b12
GS
26char * cpy2 ( char *to, char *from, int delim );
27char * cpytill ( char *to, char *from, int delim );
28void growstr ( char **strptr, int *curlen, int newlen );
29char * instr ( char *big, char *little );
30char * safecpy ( char *to, char *from, int len );
31char * savestr ( char *str );
32void croak ( char *pat, ... );
33void fatal ( char *pat, ... );
34void warn ( char *pat, ... );
35int prewalk ( int numit, int level, int node, int *numericptr );
55497cff 36
20ce7b12
GS
37Malloc_t safemalloc (MEM_SIZE nbytes);
38Malloc_t safecalloc (MEM_SIZE elements, MEM_SIZE size);
39Malloc_t saferealloc (Malloc_t where, MEM_SIZE nbytes);
40Free_t safefree (Malloc_t where);