annotate src/getpagesize.h @ 35453:26726eff41ca zsh-sync-ognus-2

2001-01-21 ShengHuo ZHU <zsh@cs.rochester.edu> * message.el (message-forward): Use mule4. * mm-util.el (mm-string-as-unibyte): New. * message.el (message-forward): Use it. * message.el (message-cite-original-without-signature): Don't peel off the blank line. (message-get-reply-headers): Add Cc if it is not in follow-to. * message.el (message-send-mail): Content-Type may not be there. By Alberto Lusiani. * gnus-art.el (article-display-x-face): Insert X-Face if there is not. * rfc2047.el (rfc2047-fold-region): Don't insert LWSP if there is one. * gnus-win.el (gnus-configure-windows): switch-to-buffer in XEmacs. (gnus-remove-some-windows): Ditto. * mm-decode.el (mm-interactively-view-part): Don't copy-sequence handle. * gnus-art.el (gnus-mime-view-part): Copy it. (gnus-mime-view-part-as-type): Add into gnus-article-mime-handles. * nnmail.el (nnmail-get-new-mail): Find group only if file is not orig-file. Use ',source. * nnslashdot.el (nnslashdot-request-list): Get the right year. By Lars Magne Ingebrigtsen. * pop3.el (pop3-get-message-count): Andrew Innes <andrewi@gnu.org>'s patch of 1999-12-01 was not fully committed.
author ShengHuo ZHU <zsh@cs.rochester.edu>
date Sun, 21 Jan 2001 05:33:42 +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 */