OSDN Git Service

Update/correct copyright notices.
[pf3gnuchains/pf3gnuchains3x.git] / gdb / config / xm-mpw.h
1 /* Macro definitions for running GDB on Apple Macintoshes.
2    Copyright 1994, 1995, 2001 Free Software Foundation, Inc.
3
4    This file is part of GDB.
5
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 59 Temple Place - Suite 330,
19    Boston, MA 02111-1307, USA.  */
20
21 #include "mpw.h"
22
23 #include "fopen-bin.h"
24
25 #include "spin.h"
26
27 #define CANT_FORK
28
29 /* Map these standard functions to versions that can do I/O in a console
30    window. */
31
32 #define printf hacked_printf
33 #define fprintf hacked_fprintf
34 #define vprintf hacked_vfprintf
35 #define fputs hacked_fputs
36 #define fputc hacked_fputc
37 #undef putc
38 #define putc hacked_putc
39 #define fflush hacked_fflush
40
41 #define fgetc hacked_fgetc
42
43 #define POSIX_UTIME
44
45 /* '.' indicates drivers on the Mac, so we need a different filename. */
46
47 #define GDBINIT_FILENAME "_gdbinit"
48
49 /* Commas are more common to separate dirnames in a path on Macs. */
50
51 #define DIRNAME_SEPARATOR ','
52
53 /* This is a real crufty hack. */
54
55 #define HAVE_TERMIO
56
57 /* Addons to the basic MPW-supported signal list. */
58
59 #ifndef SIGQUIT
60 #define SIGQUIT (1<<6)
61 #endif
62 #ifndef SIGHUP
63 #define SIGHUP (1<<7)
64 #endif
65
66 /* If __STDC__ is on, then this definition will be missing. */
67
68 #ifndef fileno
69 #define fileno(p)       (p)->_file
70 #endif
71
72 #ifndef R_OK
73 #define R_OK 4
74 #endif
75
76 extern int StandAlone;
77
78 extern int mac_app;