annotate src/getpagesize.h @ 32967:7625203dacf3

2000-10-27 ShengHuo ZHU <zsh@cs.rochester.edu> * message.el (message-send-mail-partially): Replace the header delimiter with a blank line. (message-sending-message): New variable. (message-send): Use it. (message-default-charset): Default value for non-Mule Emacsen. (message-alternative-emails): New. (message-use-alternative-email-as-from): New. (message-setup): Use them. (message-default-charset): Set default value in non-MULE XEmacsen as iso-8859-1. 2000-10-27 Emerick Rogul <emerick@csa.bu.edu> * message.el (message-setup-fill-variables): New variable. (message-mode): Use it. 2000-10-27 Bjorn Torkelsson <torkel@hpc2n.umu.se> * message.el: xemacs cleanup (use featurep ' xemacs) 2000-10-27 Stanislav Shalunov <shalunov@internet2.edu> * message.el (message-make-in-reply-to): In-Reply-To is message-id (see DRUMS). 2000-10-27 Simon Josefsson <simon@josefsson.org> * message.el (message-send): Make sure error is signalled if no send method is specified.
author Dave Love <fx@gnu.org>
date Fri, 27 Oct 2000 17:58:21 +0000
parents 4f9e6148ce6a
children c8fb06423da0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4356
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
1 /* Emulate getpagesize on systems that lack it. */
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
2
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
3 #ifndef HAVE_GETPAGESIZE
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
4
16599
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
5 # ifdef VMS
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
6 # define getpagesize() 512
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
7 # endif
4356
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
8
16599
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
9 # ifdef HAVE_UNISTD_H
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
10 # include <unistd.h>
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
11 # endif
4356
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
12
16599
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
13 # ifdef _SC_PAGESIZE
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
14 # define getpagesize() sysconf(_SC_PAGESIZE)
16600
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
15 # else /* no _SC_PAGESIZE */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
16 # ifdef HAVE_SYS_PARAM_H
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
17 # include <sys/param.h>
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
18 # ifdef EXEC_PAGESIZE
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
19 # define getpagesize() EXEC_PAGESIZE
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
20 # else /* no EXEC_PAGESIZE */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
21 # ifdef NBPG
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
22 # define getpagesize() NBPG * CLSIZE
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
23 # ifndef CLSIZE
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
24 # define CLSIZE 1
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
25 # endif /* no CLSIZE */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
26 # else /* no NBPG */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
27 # ifdef NBPC
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
28 # define getpagesize() NBPC
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
29 # else /* no NBPC */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
30 # ifdef PAGESIZE
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
31 # define getpagesize() PAGESIZE
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
32 # endif /* PAGESIZE */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
33 # endif /* no NBPC */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
34 # endif /* no NBPG */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
35 # endif /* no EXEC_PAGESIZE */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
36 # else /* no HAVE_SYS_PARAM_H */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
37 # define getpagesize() 8192 /* punt totally */
4f9e6148ce6a If no sys/param.h, default to 8k.
David J. MacKenzie <djm@gnu.org>
parents: 16599
diff changeset
38 # endif /* no HAVE_SYS_PARAM_H */
16599
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
39 # endif /* no _SC_PAGESIZE */
4356
3f0d5006a2c4 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
40
16599
ae726fd5403b Indent for readability.
David J. MacKenzie <djm@gnu.org>
parents: 9421
diff changeset
41 #endif /* no HAVE_GETPAGESIZE */