Mercurial > emacs
annotate src/s/freebsd.h @ 23091:25c95d9da0af
Multi-byte buffer handling.
(ps-print-version): New version number (4.0) and doc fix.
(ps-color-device, ps-face-bold-p, ps-face-italic-p): Conditional
compilation for GNU Emacs and emacsens.
(ps-generate-postscript-with-faces): Force invisible text to be
visible.
(dos-ps-printer): New var to avoid compilation gripes.
(ps-mule-plot-string): Pay attention to the case
that no more characters can't be printed in the current line.
(ps-mule-find-wrappoint): ENDPOS should not be greater than TO.
Add codes to make ps-print.el work also on Emacs
20.2 and the earlier version.
(ps-mule-encode-7bit, ps-mule-encode-8bit): Modified for 20.2.
(ccl-encode-ethio-unicode, ps-mule-encode-ethiopic): Likewise.
(ps-mule-find-wrappoint): Likewise.
(ps-mule-generate-font): Change `X' to `x' in format
control-string.
(ps-generate): Call ps-mule-begin before calling ps-begin-job.
(ps-mule-cmpchar-prologue): Delete unnecessary `gsave' and
`restore' form procedures `BC' and `EC'.
(ps-print-prologue-1): Handle the case that FontBBox
is an executable procedure. Make LineThickness, Xshadow, and
Yshadow relative to FontHeight. Set SpaceWidth in BeginDoc.
(ps-mule-font-info-database, ps-mule-font-info-database-ps,
ps-mule-font-info-database-bdf): New vars.
(ps-mule-encode-7bit, ps-mule-encode-8bit): New funs.
(ccl-encode-ethio-unicode): New CCL program.
(ps-mule-encode-ethiopic): New fun.
(ps-mule-current-charset): New var.
(ps-mule-get-font-spec, ps-mule-font-spec-src,
ps-mule-font-spec-name, ps-mule-font-spec-encoding,
ps-mule-font-spec-bytes, ps-mule-printable-p): New funs.
(ps-mule-external-libraries): New var.
(ps-mule-init-external-library): New fun.
(ps-mule-font-cache): New var.
(ps-mule-generate-font, ps-mule-generate-glyphs): New funs.
(ps-last-font): New var.
(ps-mule-prepare-font): New fun.
(ps-mule-charset-list): New var.
(ps-mule-prologue-generated, ps-mule-prologue): New vars.
(ps-mule-skip-same-charset, ps-mule-find-wrappoint,
ps-mule-plot-string): New funs.
(ps-mule-cmpchar-prologue-generated, ps-mule-cmpchar-prologue):
New vars.
(ps-mule-plot-rule-cmpchar, ps-mule-plot-cmpchar,
ps-mule-prepare-cmpchar-font): New funs.
(ps-mule-bitmap-prologue-generated, ps-mule-bitmap-prologue): New
vars.
(ps-mule-generate-bitmap-prologue, ps-mule-generate-bitmap-font,
ps-mule-generate-bitmap-glyph): New funs.
(ps-mule-initialize, ps-mule-begin): New funs.
(ps-output-string-prim): Insert string as unibyte.
(ps-output-prologue): New fun.
(ps-flush-output): Handle the case of 'prologue.
(ps-begin-file): Call ps-mule-initialize.
(ps-begin-job): Set ps-control-or-escape-regexp differently if
printing multibyte characters.
(ps-begin-page): Set ps-mule-current-charset to 'ascii.
(ps-basic-plot-string): Handle the case of printing ASCII
characters by external libraries (e.g. BDF).
(ps-set-font): Set ps-last-font.
(ps-plot-region): Handle multibyte characters, use
ps-mule-plot-string for them.
(ps-generate): Set the spool buffer unibyte. Call ps-mule-begin.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 24 Aug 1998 10:19:29 +0000 |
parents | 18d2ab8a8a62 |
children | a647cbfb4169 |
rev | line source |
---|---|
6261 | 1 /* s/ file for freebsd system. */ |
2 | |
22976
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
3 /* Get the correct __FreeBSD_version, even if this is before that was |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
4 defined. */ |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
5 #ifndef __FreeBSD__ |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
6 #define __FreeBSD_version 199401 |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
7 #elif __FreeBSD__ == 1 |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
8 #define __FreeBSD_version 199405 |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
9 #else |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
10 #include <osreldate.h> |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
11 #endif |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
12 |
6930
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
13 /* '__FreeBSD__' is defined by the preprocessor on FreeBSD-1.1 and up. |
8869
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
14 Earlier versions do not have shared libraries, so inhibit them. |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
15 You can inhibit them on newer systems if you wish |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
16 by defining NO_SHARED_LIBS. */ |
6930
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
17 #ifndef __FreeBSD__ |
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
18 #define NO_SHARED_LIBS |
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
19 #endif |
6261 | 20 |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
21 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
22 #if 0 /* This much, alone, seemed sufficient as of 19.23. |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
23 But it seems better to be independent of netbsd.h. */ |
6930
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
24 #include "netbsd.h" |
6261 | 25 |
6930
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
26 #undef LIB_GCC |
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
27 #define LIB_GCC -lgcc |
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
28 #undef NEED_ERRNO |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
29 #endif /* 0 */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
30 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
31 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
32 /* Get most of the stuff from bsd4.3 */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
33 #include "bsd4-3.h" |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
34 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
35 /* For mem-limits.h. */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
36 #define BSD4_2 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
37 |
9930
3b0788d087b6
(LD_SWITCH_SYSTEM): Add -dc and -dp.
Richard M. Stallman <rms@gnu.org>
parents:
9495
diff
changeset
|
38 /* These aren't needed, since we have getloadavg. */ |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
39 #undef KERNEL_FILE |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
40 #undef LDAV_SYMBOL |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
41 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
42 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
43 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
44 #define LIBS_DEBUG |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
45 #define LIBS_SYSTEM -lutil |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
46 #define LIBS_TERMCAP -ltermcap |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
47 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
48 #define SYSV_SYSTEM_DIR |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
49 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
50 /* freebsd has POSIX-style pgrp behavior. */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
51 #undef BSD_PGRPS |
11738
cb413eec7a2f
(GETPGRP_NO_ARG): Defined
Richard M. Stallman <rms@gnu.org>
parents:
9930
diff
changeset
|
52 #define GETPGRP_NO_ARG |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
53 |
22976
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
54 #ifdef __ELF__ |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
55 |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
56 #define LD_SWITCH_SYSTEM |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
57 #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
58 #define UNEXEC unexelf.o |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
59 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
60 #undef LIB_GCC |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
61 #define LIB_GCC |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
62 |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
63 #else /* not __ELF__ */ |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
64 |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
65 #ifndef NO_SHARED_LIBS |
23078
18d2ab8a8a62
(LD_SWITCH_SYSTEM): Delete -dp.
Richard M. Stallman <rms@gnu.org>
parents:
22976
diff
changeset
|
66 #define LD_SWITCH_SYSTEM -e start -dc |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
67 #define HAVE_TEXT_START /* No need to define `start_of_text'. */ |
22976
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
68 #if __FreeBSD_version >= 300002 |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
69 #define START_FILES pre-crt0.o /usr/lib/aout/crt0.o |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
70 #else /* __FreeBSD_version < 300002 */ |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
71 #define START_FILES pre-crt0.o /usr/lib/crt0.o |
22976
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
72 #endif /* __FreeBSD_version < 300002 */ |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
73 #define UNEXEC unexsunos4.o |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
74 #define RUN_TIME_REMAP |
22976
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
75 #define LIB_GCC -lgcc |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
76 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
77 #ifndef N_TRELOFF |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
78 #define N_PAGSIZ(x) __LDPGSZ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
79 #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data)) |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
80 #define N_TRELOFF(x) N_RELOFF(x) |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
81 #endif |
8869
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
82 #else /* NO_SHARED_LIBS */ |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
83 #ifdef __FreeBSD__ /* shared libs are available, but the user prefers |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
84 not to use them. */ |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
85 #define LD_SWITCH_SYSTEM -Bstatic |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
86 #define A_TEXT_OFFSET(x) (sizeof (struct exec)) |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
87 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
88 #endif /* __FreeBSD__ */ |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
89 #endif /* NO_SHARED_LIBS */ |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
90 |
22976
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
91 #endif /* not __ELF__ */ |
f1457fc159c9
(__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents:
19071
diff
changeset
|
92 |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
93 #define HAVE_WAIT_HEADER |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
94 #define HAVE_GETLOADAVG |
11738
cb413eec7a2f
(GETPGRP_NO_ARG): Defined
Richard M. Stallman <rms@gnu.org>
parents:
9930
diff
changeset
|
95 /*#define HAVE_GETPAGESIZE /* configure now puts this in config.h */ |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
96 #define HAVE_TERMIOS |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
97 #define NO_TERMIO |
8869
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
98 #define DECLARE_GETPWUID_WITH_UID_T |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
99 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
100 /* freebsd uses OXTABS instead of the expected TAB3. */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
101 #define TABDLY OXTABS |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
102 #define TAB3 OXTABS |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
103 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
104 /* this silences a few compilation warnings */ |
16220
02044b05d8e0
Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents:
15367
diff
changeset
|
105 #undef BSD_SYSTEM |
9018
e8f02eb00bbf
(BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents:
8869
diff
changeset
|
106 #if __FreeBSD__ == 1 |
16220
02044b05d8e0
Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents:
15367
diff
changeset
|
107 #define BSD_SYSTEM 199103 |
9018
e8f02eb00bbf
(BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents:
8869
diff
changeset
|
108 #elif __FreeBSD__ == 2 |
16220
02044b05d8e0
Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents:
15367
diff
changeset
|
109 #define BSD_SYSTEM 199306 |
17351
e53338c19ba5
(BSD_SYSTEM): Alternate definition for FreeBSD v3.
Richard M. Stallman <rms@gnu.org>
parents:
16220
diff
changeset
|
110 #elif __FreeBSD__ == 3 |
e53338c19ba5
(BSD_SYSTEM): Alternate definition for FreeBSD v3.
Richard M. Stallman <rms@gnu.org>
parents:
16220
diff
changeset
|
111 #define BSD_SYSTEM 199506 |
9018
e8f02eb00bbf
(BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents:
8869
diff
changeset
|
112 #endif |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
113 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
114 #define WAITTYPE int |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
115 /* get this since it won't be included if WAITTYPE is defined */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
116 #ifdef emacs |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
117 #include <sys/wait.h> |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
118 #endif |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
119 #define WRETCODE(w) (_W_INT(w) >> 8) |
14493
9b8b46e18f97
(vfork): Define as fork.
Richard M. Stallman <rms@gnu.org>
parents:
13017
diff
changeset
|
120 |
9b8b46e18f97
(vfork): Define as fork.
Richard M. Stallman <rms@gnu.org>
parents:
13017
diff
changeset
|
121 /* Needed to avoid hanging when child process writes an error message |
9b8b46e18f97
(vfork): Define as fork.
Richard M. Stallman <rms@gnu.org>
parents:
13017
diff
changeset
|
122 and exits -- enami tsugutomo <enami@ba2.so-net.or.jp>. */ |
9b8b46e18f97
(vfork): Define as fork.
Richard M. Stallman <rms@gnu.org>
parents:
13017
diff
changeset
|
123 #define vfork fork |
15367
179cd20f2f8a
(DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
14493
diff
changeset
|
124 |
179cd20f2f8a
(DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
14493
diff
changeset
|
125 /* Don't close pty in process.c to make it as controlling terminal. |
179cd20f2f8a
(DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
14493
diff
changeset
|
126 It is already a controlling terminal of subprocess, because we did |
179cd20f2f8a
(DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
14493
diff
changeset
|
127 ioctl TIOCSCTTY. */ |
179cd20f2f8a
(DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
14493
diff
changeset
|
128 #define DONT_REOPEN_PTY |
19071 | 129 |
130 /* CLASH_DETECTION is defined in bsd4-3.h. | |
131 In FreeBSD 2.1.5 (and other 2.1.x), this results useless symbolic links | |
132 remaining in /tmp or other directories with +t bit. | |
133 To avoid this problem, you could #undef it to use no file lock. */ | |
134 /* #undef CLASH_DETECTION */ |