annotate src/s/osf1.h @ 79338:c58c35c1d5f9

*** empty log message ***
author Nick Roberts <nickrob@snap.net.nz>
date Mon, 05 Nov 2007 06:38:48 +0000
parents f06998349cfc
children 68df465b9550 f55f9811f5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
75942
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
1 /* Definitions file for GNU Emacs running on osf1.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006,
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
3 2007 Free Software Foundation, Inc.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
4
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
5 This file is part of GNU Emacs.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
6
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
7 GNU Emacs is free software; you can redistribute it and/or modify
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
8 it under the terms of the GNU General Public License as published by
78259
f06998349cfc Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents: 75942
diff changeset
9 the Free Software Foundation; either version 3, or (at your option)
75942
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
10 any later version.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
11
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
12 GNU Emacs is distributed in the hope that it will be useful,
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
15 GNU General Public License for more details.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
16
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
17 You should have received a copy of the GNU General Public License
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
18 along with GNU Emacs; see the file COPYING. If not, write to
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
20 Boston, MA 02110-1301, USA. */
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
21
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
22
3055
6e19d9e130c0 Changes for OSF/1:
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
23 #include "bsd4-3.h"
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
24
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
25 /* Identify OSF1 for the m- files. */
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
26
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
27 #define OSF1
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
28
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
29 #define C_SWITCH_SYSTEM -D_BSD
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
30 #define LIBS_SYSTEM -lbsd
8814
4f3260a22bc8 [__alpha] (LD_SWITCH_SYSTEM): Alternate definition.
Richard M. Stallman <rms@gnu.org>
parents: 3591
diff changeset
31
11677
8406623b45c4 (GETPGRP_NO_ARG): Define.
Richard M. Stallman <rms@gnu.org>
parents: 11360
diff changeset
32 #define GETPGRP_NO_ARG
8406623b45c4 (GETPGRP_NO_ARG): Define.
Richard M. Stallman <rms@gnu.org>
parents: 11360
diff changeset
33
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
34 #define SYSV_SYSTEM_DIR
11980
30b88291babf (COFF): Define.
Karl Heuer <kwzh@gnu.org>
parents: 11677
diff changeset
35
30b88291babf (COFF): Define.
Karl Heuer <kwzh@gnu.org>
parents: 11677
diff changeset
36 /* If your system uses COFF (Common Object File Format) then define the
30b88291babf (COFF): Define.
Karl Heuer <kwzh@gnu.org>
parents: 11677
diff changeset
37 preprocessor symbol "COFF". */
30b88291babf (COFF): Define.
Karl Heuer <kwzh@gnu.org>
parents: 11677
diff changeset
38
30b88291babf (COFF): Define.
Karl Heuer <kwzh@gnu.org>
parents: 11677
diff changeset
39 #define COFF
15837
f8a058024b5a (LD_SWITCH_SYSTEM): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 11980
diff changeset
40
f8a058024b5a (LD_SWITCH_SYSTEM): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 11980
diff changeset
41 /* 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
42 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
43 which is what OSF1 uses. */
f8a058024b5a (LD_SWITCH_SYSTEM): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 11980
diff changeset
44 #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
45
f36dbc0b1e80 (HAVE_TERMIOS): Define it.
Kenichi Handa <handa@m17n.org>
parents: 15837
diff changeset
46 #define HAVE_TERMIOS
f36dbc0b1e80 (HAVE_TERMIOS): Define it.
Kenichi Handa <handa@m17n.org>
parents: 15837
diff changeset
47
27678
c370bafa362e Define C_DEBUG_SWITCH for non-gcc.
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
48 #ifndef __GNUC__
c370bafa362e Define C_DEBUG_SWITCH for non-gcc.
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
49 /* Optimize, inaccurate debugging. */
c370bafa362e Define C_DEBUG_SWITCH for non-gcc.
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
50 #define C_DEBUG_SWITCH -g3
c370bafa362e Define C_DEBUG_SWITCH for non-gcc.
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
51 #endif
29913
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
52
29963
45af78901143 (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change (moved to osf5-0.h).
Dave Love <fx@gnu.org>
parents: 29913
diff changeset
53 #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
54 #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
55 /* 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
56 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
57 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
58 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
59 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
60 #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
61 #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
62 #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
63 #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
64 #undef bcopy
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
65 #undef bzero
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
66 #undef bcmp
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
67 #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
68 #endif
48427
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
69
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
70 #define ORDINARY_LINK
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
71
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
72 /* 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
73 #ifdef HAVE_LIBDNET
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
74 #define LIBS_MACHINE -ldnet
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
75 #else
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
76 #define LIBS_MACHINE -ldnet_stub
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
77 #endif
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
78
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
79 #define LIBS_DEBUG
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
80 #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
81
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
82 #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
83 #define PTY_NAME_SPRINTF /* none */
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
84 #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
85 #define PTY_OPEN \
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
86 do \
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
87 { \
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
88 int dummy; \
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
89 SIGMASKTYPE mask; \
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
90 mask = sigblock (sigmask (SIGCHLD)); \
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
91 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
92 fd = -1; \
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
93 sigsetmask (mask); \
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
94 emacs_close (dummy); \
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
95 } \
24cfc6cd2142 Move OSF1 stuff from m/alpha.h to here.
Dave Love <fx@gnu.org>
parents: 29963
diff changeset
96 while (0)
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 48427
diff changeset
97
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 48427
diff changeset
98 /* arch-tag: 65eaea67-fcc3-4de7-8574-d46beb82d4ed
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 48427
diff changeset
99 (do not change this comment) */