* add p cc
[mascara-docs.git] / compilers / pcc / pcc-libs-1.0.0 / csu / linux / common.h
blobeaf97388fbf88c3b9f8c883d0e1101584cfc2613
1 /* $Id: common.h,v 1.5 2009/02/14 23:49:40 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 #define IDENT(x) asm(".ident\t\"" x "\"")
20 #define NULL (void *)0
22 extern int main(int argc, char *argv[], char *envp[]);
23 extern void exit(int);
24 extern int atexit(void (*fcn)(void));
26 #if PROFILE
27 extern void monstartup(unsigned long, unsigned long);
28 extern void _mcleanup(void);
29 extern unsigned char _etext, _eprol;
30 #endif
32 extern void _init(void);
33 extern void _fini(void);