annotate src/s/osf1.h @ 29913:f8892a11c005

Move string.h hack here from alpha.h and make it conditional. (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with _XOPEN_SOURCE. (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define. (SOCKLEN_TYPE): Don't define.
author Dave Love <fx@gnu.org>
date Fri, 23 Jun 2000 17:02:15 +0000
parents c370bafa362e
children 45af78901143
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3055
6e19d9e130c0 Changes for OSF/1:
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
1 #include "bsd4-3.h"
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3 /* Identify OSF1 for the m- files. */
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5 #define OSF1
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6
29913
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
7 /* The following used to be done, but -BSD loses when _XOPEN_SOURCE
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
8 gets defined by configure, at least on OSF5. It's possible this
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
9 will need to be reverted for earlier versions (for which OSF5 isn't
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
10 defined). */
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
11 #if 0
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
12 #define C_SWITCH_SYSTEM -D_BSD
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
13 #define LIBS_SYSTEM -lbsd
8814
4f3260a22bc8 [__alpha] (LD_SWITCH_SYSTEM): Alternate definition.
Richard M. Stallman <rms@gnu.org>
parents: 3591
diff changeset
14
29913
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
15 #else
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
16
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
17 #define C_SWITCH_SYSTEM -D_OSF_SOURCE
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
18 #define WAIT_USE_INT
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
19 #define SYS_SIGLIST_DECLARED
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
20 #define sys_siglist __sys_siglist
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
21 #define NSIG __sys_nsig
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
22 #endif /* 0 */
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
23
11677
8406623b45c4 (GETPGRP_NO_ARG): Define.
Richard M. Stallman <rms@gnu.org>
parents: 11360
diff changeset
24 #define GETPGRP_NO_ARG
8406623b45c4 (GETPGRP_NO_ARG): Define.
Richard M. Stallman <rms@gnu.org>
parents: 11360
diff changeset
25
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
26 #define SYSV_SYSTEM_DIR
11980
30b88291babf (COFF): Define.
Karl Heuer <kwzh@gnu.org>
parents: 11677
diff changeset
27
30b88291babf (COFF): Define.
Karl Heuer <kwzh@gnu.org>
parents: 11677
diff changeset
28 /* If your system uses COFF (Common Object File Format) then define the
30b88291babf (COFF): Define.
Karl Heuer <kwzh@gnu.org>
parents: 11677
diff changeset
29 preprocessor symbol "COFF". */
30b88291babf (COFF): Define.
Karl Heuer <kwzh@gnu.org>
parents: 11677
diff changeset
30
30b88291babf (COFF): Define.
Karl Heuer <kwzh@gnu.org>
parents: 11677
diff changeset
31 #define COFF
15837
f8a058024b5a (LD_SWITCH_SYSTEM): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 11980
diff changeset
32
f8a058024b5a (LD_SWITCH_SYSTEM): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 11980
diff changeset
33 /* 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
34 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
35 which is what OSF1 uses. */
f8a058024b5a (LD_SWITCH_SYSTEM): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 11980
diff changeset
36 #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
37
f36dbc0b1e80 (HAVE_TERMIOS): Define it.
Kenichi Handa <handa@m17n.org>
parents: 15837
diff changeset
38 #define HAVE_TERMIOS
f36dbc0b1e80 (HAVE_TERMIOS): Define it.
Kenichi Handa <handa@m17n.org>
parents: 15837
diff changeset
39
27678
c370bafa362e Define C_DEBUG_SWITCH for non-gcc.
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
40 #ifndef __GNUC__
c370bafa362e Define C_DEBUG_SWITCH for non-gcc.
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
41 /* Optimize, inaccurate debugging. */
c370bafa362e Define C_DEBUG_SWITCH for non-gcc.
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
42 #define C_DEBUG_SWITCH -g3
c370bafa362e Define C_DEBUG_SWITCH for non-gcc.
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
43 #endif
29913
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
44
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
45 #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
46 /* 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
47 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
48 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
49 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
50 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
51 #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
52 #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
53 #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
54 #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
55 #undef bcopy
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
56 #undef bzero
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
57 #undef bcmp
f8892a11c005 Move string.h hack here from alpha.h and make it conditional.
Dave Love <fx@gnu.org>
parents: 27678
diff changeset
58 #endif