OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / libiberty / functions.def
1 /*
2  * List of function definitions that may *optionally* be included
3  * in libiberty.a.  The function names must match the filenames,
4  * e.g. bzero() is defined in bzero.c.  (While each file can contain
5  * extra functions, do not list them.)
6  *
7  * In the default libiberty configuration, these object files
8  * (e.g bzero.o) are included if and only if cc fails to find
9  * the corresponding function in libc.
10  */
11
12 DEF(atexit, int, (f), void (*f)())
13 DEF(bcmp, int, (s1, s2, length), char *s1 AND char *s2 AND int length )
14 DEF(bcopy, void, (s1, s2, length), char *s1 AND char *s2 AND int length )
15 DEF(bzero, void, (s, length), char *s AND int length)
16 DEF(clock, clock_t, (), NOTHING)
17 DEF(getopt, int, (argc, argv, optstring),
18         int argc AND char **argv AND CONST char *optstring)     
19 DEF(getpagesize, int , (), NOTHING)
20 DEF(getcwd, char*, (buf, len), char *buf AND int len)
21 DEF(index, char*, (s, c), char *s AND int c)
22 DEF(insque, void, (), NOTHING)
23 DEF(memchr, PTR, (s, c, length), CONST PTR s AND int c AND size_t length)
24 DEF(memcmp, int, (s1, s2, length),
25         CONST PTR s1 AND CONST PTR s2 AND size_t length)
26 DEF(memcpy, PTR, (s1, s2, length), PTR s1 AND CONST PTR s2 AND size_t length)
27 DEF(memmove, PTR, (s1, s2, length), PTR s1 AND CONST PTR s2 AND size_t length)
28 DEF(memset, PTR, (s, val, length), PTR s AND int val AND size_t length )
29 DEF(random, long int, (), NOTHING)
30 DEF(rename, int, (f, t), char *f AND char *t)
31 DEF(rindex, char*, (s, c), char *s AND int c)
32 DEF(strcasecmp, int, (s1, s2), char *s1 AND char *s2)
33 DEF(strncasecmp, int, (s1, s2, n), char *s1 AND char *s2 AND int n)
34 DEF(strchr, char*, (s, c), CONST char *s AND int c)
35 DEF(strdup, char*, (s1), char * s1)
36 DEF(strrchr, char*, (s, c), CONST char *s AND int c)
37 DEF(strstr, char*, (), NOTHING)
38 DEF(strtod, double, (), NOTHING)
39 DEF(strtol, long, (), NOTHING)
40 DEF(strtoul, unsigned long, (), NOTHING)
41 DEF(tmpnam, char *, (s), char * s)
42 DEF(vfork, int, (), NOTHING)
43 DEF(vfprintf, int, (), NOTHING)
44 DEF(vprintf, int, (), NOTHING)
45 DEF(vsprintf, int, (), NOTHING)
46 DEF(sigsetmask, int, (), NOTHING)
47 DEF(alloca, PTR, (size), size_t size)
48 DEF(waitpid, int, (pid, statp, opts), int pid AND int* statp AND int opts )
49 DEF(vasprintf, int, (), NOTHING)
50
51 /* List of global variables that we want to look for in the host
52    environment, and to generate an entry NEED_<variable> in config.h
53    if they are not found.  The first arg is the variable name, the
54    second arg is how to declare the variable, and the third is how to
55    use it. */
56
57 DEFVAR(sys_nerr, int sys_nerr, sys_nerr = 0)
58 DEFVAR(sys_errlist, char *sys_errlist[], sys_errlist[0] = 0)
59 DEFVAR(sys_siglist, char *sys_siglist[], sys_siglist[0] = 0)
60
61 /* List of global functions that we want to look for in the host
62    environment, and to generate an entry NEED_<funcname> in config.h
63    if they are not found. */
64
65 DEFFUNC(strerror, char*, (), NOTHING)
66 DEFFUNC(psignal, void, (signo, message), unsigned signo AND char *message)
67 DEFFUNC(basename, char *, (name), CONST char *name)
68 DEFFUNC(on_exit, void, (f, arg), void (*f)() AND char *arg)
69 DEFFUNC(strsignal, char *, (), NOTHING)