Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / pcc / dist / pcc-libs / csu / darwin / common.h
blob7e591826c4038c662cabf976e0d3cf9f7f152d2c
1 /* $Id: common.h,v 1.1.1.2 2009/09/04 00:27:35 gmcgarry Exp $ */
2 /*-
3 * Copyright (c) 2008 Gregory McGarry <g.mcgarry@ieee.org>
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 #if defined(__ppc__)
19 #define IDENT(x) asm(".cstring\n\t.ascii \"" x "\\0\"")
20 #elif defined(__i386__)
21 #define IDENT(x) asm(".cstring\n\t.ascii \"" x "\\0\"")
22 #endif
24 #define NULL (void *)0
26 extern int main(int argc, char *argv[], char *envp[]);
27 extern void exit(int);
28 extern int atexit(void (*fcn)(void));
30 #ifdef CRT
31 static char *_strrchr(char *, int);
32 static int _strcmp(char *, char *);
33 #endif
35 #if PROFILE
36 extern void moninit(void);
37 static void _mcleanup(void);
38 extern void monitor(char *, char *, char *, int, int);
39 #endif
41 #ifdef DYNAMIC
42 extern void _dyld_init(void);
43 extern void _dyld_fini(void);
44 extern int _dyld_func_lookup(const char *, void **);
45 #endif
47 extern int (*mach_init_routine)(void);
48 extern int (*_cthread_init_routine)(void);
50 extern void _init(void);
51 extern void _fini(void);