Mercurial > hg > xemacs-beta
annotate src/s/cygwin-common.h @ 5888:a85efdabe237
Call #'read-passwd when requesting a password from the user, tls.c
src/ChangeLog addition:
2015-04-09 Aidan Kehoe <kehoea@parhasard.net>
* tls.c (nss_pk11_password):
* tls.c (gnutls_pk11_password):
* tls.c (openssl_password):
* tls.c (syms_of_tls):
Our read-a-password function is #'read-passwd, not
#'read-password, correct that in this file.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 09 Apr 2015 14:54:37 +0100 |
parents | abe88cd200c9 |
children |
rev | line source |
---|---|
5877
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
1 /* system description file for both 32-bit and 64-bit cygwin. |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
2 Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
3 Copyright (C) 2001 Ben Wing. |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
4 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
5 This file is part of XEmacs. |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
6 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
7 XEmacs is free software: you can redistribute it and/or modify it |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
8 under the terms of the GNU General Public License as published by the |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
9 Free Software Foundation, either version 3 of the License, or (at your |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
10 option) any later version. |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
11 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
15 for more details. |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
16 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
17 You should have received a copy of the GNU General Public License |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
18 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
19 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
20 /* Building under cygwin |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
21 * |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
22 * The approach I have taken with this port is to use primarily the |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
23 * UNIX code base adding stuff that is MS-Windows specific. This works |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
24 * quite well, and is in keeping with my perception of the cygwin |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
25 * philosophy. Note that if you make changes to this file you do NOT |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
26 * want to define WIN32_NATIVE (formerly "WINDOWSNT"), I repeat - do |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
27 * not define this, it will break everything horribly. What does get |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
28 * defined is HAVE_MS_WINDOWS, but this is done by configure and only |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
29 * applies to the window system. |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
30 * |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
31 * When building make sure your HOME path is unix style - i.e. without |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
32 * a drive letter. |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
33 * |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
34 * once you have done this, configure and make. |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
35 * |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
36 * Andy Piper <andy@xemacs.org> 8/1/98 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
37 * http://www.xemacs.freeserve.co.uk/ */ |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
38 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
39 #include "win32-common.h" |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
40 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
41 /* Identify ourselves */ |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
42 #define CYGWIN |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
43 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
44 /* We are using Cygwin-style headers in /usr/include, also used by MinGW */ |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
45 #define CYGWIN_HEADERS |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
46 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
47 /* cheesy way to determine cygwin version */ |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
48 #ifndef NOT_C_CODE |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
49 # include <signal.h> |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
50 # include <cygwin/version.h> |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
51 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
52 /* Still left out of 1.1! */ |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
53 double logb (double); |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
54 int killpg (int pgrp, int sig); |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
55 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
56 #endif |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
57 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
58 #ifndef ORDINARY_LINK |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
59 #define ORDINARY_LINK |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
60 #endif |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
61 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
62 #if __GNUC__ >= 3 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
63 #define C_SWITCH_SYSTEM -fno-caller-saves |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
64 #else |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
65 #define C_SWITCH_SYSTEM -fno-caller-saves -fvtable-thunks |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
66 #endif |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
67 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
68 #define LIBS_SYSTEM -lwinmm |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
69 #define WIN32_LEAN_AND_MEAN |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
70 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
71 #define TEXT_START -1 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
72 #define HEAP_IN_DATA |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
73 #define NO_LIM_DATA |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
74 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
75 #define BROKEN_SIGIO |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
76 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
77 #define CYGWIN_BROKEN_SIGNALS |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
78 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
79 #define strnicmp strncasecmp |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
80 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
81 #undef MAIL_USE_SYSTEM_LOCK |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
82 |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
83 /* Cygwin bogusly forgets to copy mmap()ed regions into the child when |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
84 a fork is done; thus, any reference to anything in mmap()ed space |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
85 (under PDUMP, in particular, this bites, since all data loaded from |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
86 PDUMP is normally done using mmap()) will cause an immediate segfault. */ |
abe88cd200c9
Configure support for 64-bit cygwin
Vin Shelton <acs@xemacs.org>
parents:
diff
changeset
|
87 #undef HAVE_MMAP |