Mercurial > emacs
annotate src/s/osf1.h @ 50244:fef96ba449a2
(get_glyph_string_clip_rect): Use FRAME_INTERNAL_BORDER_WIDTH.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Fri, 21 Mar 2003 21:48:44 +0000 |
parents | 24cfc6cd2142 |
children | 695cf19ef79e |
rev | line source |
---|---|
3055 | 1 #include "bsd4-3.h" |
1113 | 2 |
3 /* Identify OSF1 for the m- files. */ | |
4 | |
5 #define OSF1 | |
6 | |
7 #define C_SWITCH_SYSTEM -D_BSD | |
8 #define LIBS_SYSTEM -lbsd | |
8814
4f3260a22bc8
[__alpha] (LD_SWITCH_SYSTEM): Alternate definition.
Richard M. Stallman <rms@gnu.org>
parents:
3591
diff
changeset
|
9 |
11677
8406623b45c4
(GETPGRP_NO_ARG): Define.
Richard M. Stallman <rms@gnu.org>
parents:
11360
diff
changeset
|
10 #define GETPGRP_NO_ARG |
8406623b45c4
(GETPGRP_NO_ARG): Define.
Richard M. Stallman <rms@gnu.org>
parents:
11360
diff
changeset
|
11 |
1113 | 12 #define SYSV_SYSTEM_DIR |
11980 | 13 |
14 /* If your system uses COFF (Common Object File Format) then define the | |
15 preprocessor symbol "COFF". */ | |
16 | |
17 #define COFF | |
15837
f8a058024b5a
(LD_SWITCH_SYSTEM): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
11980
diff
changeset
|
18 |
f8a058024b5a
(LD_SWITCH_SYSTEM): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
11980
diff
changeset
|
19 /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option |
f8a058024b5a
(LD_SWITCH_SYSTEM): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
11980
diff
changeset
|
20 says where to find X windows at run time. We convert it to a -rpath option |
f8a058024b5a
(LD_SWITCH_SYSTEM): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
11980
diff
changeset
|
21 which is what OSF1 uses. */ |
f8a058024b5a
(LD_SWITCH_SYSTEM): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
11980
diff
changeset
|
22 #define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'` |
17888
f36dbc0b1e80
(HAVE_TERMIOS): Define it.
Kenichi Handa <handa@m17n.org>
parents:
15837
diff
changeset
|
23 |
f36dbc0b1e80
(HAVE_TERMIOS): Define it.
Kenichi Handa <handa@m17n.org>
parents:
15837
diff
changeset
|
24 #define HAVE_TERMIOS |
f36dbc0b1e80
(HAVE_TERMIOS): Define it.
Kenichi Handa <handa@m17n.org>
parents:
15837
diff
changeset
|
25 |
27678
c370bafa362e
Define C_DEBUG_SWITCH for non-gcc.
Dave Love <fx@gnu.org>
parents:
26090
diff
changeset
|
26 #ifndef __GNUC__ |
c370bafa362e
Define C_DEBUG_SWITCH for non-gcc.
Dave Love <fx@gnu.org>
parents:
26090
diff
changeset
|
27 /* Optimize, inaccurate debugging. */ |
c370bafa362e
Define C_DEBUG_SWITCH for non-gcc.
Dave Love <fx@gnu.org>
parents:
26090
diff
changeset
|
28 #define C_DEBUG_SWITCH -g3 |
c370bafa362e
Define C_DEBUG_SWITCH for non-gcc.
Dave Love <fx@gnu.org>
parents:
26090
diff
changeset
|
29 #endif |
29913
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
30 |
29963
45af78901143
(C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change (moved to osf5-0.h).
Dave Love <fx@gnu.org>
parents:
29913
diff
changeset
|
31 #ifndef NOT_C_CODE |
29913
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
32 #ifndef OSF5 /* fixed in 5.0 */ |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
33 /* Hack alert! For reasons unknown to mankind the string.h file insists |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
34 on defining bcopy etc. as taking char pointers as arguments. With |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
35 Emacs this produces an endless amount of warning which are harmless, |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
36 but tends to flood the real errors. This hack works around this problem |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
37 by not prototyping. */ |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
38 #define bcopy string_h_bcopy |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
39 #define bzero string_h_bzero |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
40 #define bcmp string_h_bcmp |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
41 #include <string.h> |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
42 #undef bcopy |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
43 #undef bzero |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
44 #undef bcmp |
f8892a11c005
Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents:
27678
diff
changeset
|
45 #endif |
29963
45af78901143
(C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change (moved to osf5-0.h).
Dave Love <fx@gnu.org>
parents:
29913
diff
changeset
|
46 #endif |
48427
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
47 |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
48 #define ORDINARY_LINK |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
49 |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
50 /* Some systems seem to have this, others don't. */ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
51 #ifdef HAVE_LIBDNET |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
52 #define LIBS_MACHINE -ldnet |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
53 #else |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
54 #define LIBS_MACHINE -ldnet_stub |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
55 #endif |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
56 |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
57 #define LIBS_DEBUG |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
58 #define START_FILES pre-crt0.o |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
59 |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
60 #define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
61 #define PTY_NAME_SPRINTF /* none */ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
62 #define PTY_TTY_NAME_SPRINTF /* none */ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
63 #define PTY_OPEN \ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
64 do \ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
65 { \ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
66 int dummy; \ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
67 SIGMASKTYPE mask; \ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
68 mask = sigblock (sigmask (SIGCHLD)); \ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
69 if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
70 fd = -1; \ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
71 sigsetmask (mask); \ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
72 emacs_close (dummy); \ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
73 } \ |
24cfc6cd2142
Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents:
29963
diff
changeset
|
74 while (0) |