comparison src/s/cygwin32.h @ 259:11cf20601dec r20-5b28

Import from CVS: tag r20-5b28
author cvs
date Mon, 13 Aug 2007 10:23:02 +0200
parents 677f6a0ee643
children 727739f917cb
comparison
equal deleted inserted replaced
258:58424f6abf56 259:11cf20601dec
28 * horribly. What does get defined is HAVE_MS_WINDOWS, but this is 28 * horribly. What does get defined is HAVE_MS_WINDOWS, but this is
29 * done by configure and only applies to the window system. 29 * done by configure and only applies to the window system.
30 * 30 *
31 * The important thing about building is that it is done on a binary 31 * The important thing about building is that it is done on a binary
32 * mounted filesystem. i.e. something mounted like: mount -b c: 32 * mounted filesystem. i.e. something mounted like: mount -b c:
33 * /binary. If you do not do this then compilation of el files will 33 * /binary. If you do not do this then compilation of el files may
34 * produce garbage. Make sure you have installed cygwin32 b18 + 34 * produce garbage. As of b24 there are fixes in xemacs to make
35 * patched dll (which can be found at http://www.lexa.ru/sos or on my 35 * building on text mounts but I don't generally do this. Make sure
36 * home page. Alternatively when b19 comes out the patched dll will be 36 * you have installed cygwin32 b18 + patched dll (which can be found
37 * unnecessary. Also make sure your HOME path is unix style - 37 * at http://www.lexa.ru/sos or on my home page
38 * i.e. without a drive letter. 38 * http://www.parallax.co.uk/~andyp. Alternatively when b19 comes out
39 * the patched dll will be unnecessary. Also make sure your HOME path
40 * is unix style - i.e. without a drive letter.
41 *
42 * Note that some people have reported problems with the patched
43 * cygwin.dll on Sergey's home page so you may want to use the one on
44 * mine which I *know* works.
39 * 45 *
40 * once you have done this, configure and make. If you want unexec 46 * once you have done this, configure and make. If you want unexec
41 * support you need to download coff.h from my web page or use cygwin 47 * support you need to download a.out.h from my web page or use cygwin
42 * b19. You probably want to build with mule support since this 48 * b19. You probably want to build with mule support since this
43 * addresses crlf issues in a sensible way. 49 * addresses crlf issues in a sensible way.
50 *
51 * windows '95 - I haven't tested this under '95, it will probably
52 * build but I konw there are some limitations with cygwin under 95 so
53 * YMMV. I build with NT4 SP3.
44 * 54 *
45 * What I want to do: 55 * What I want to do:
46 * 56 *
47 * the fileio stuff merely uses the unix system calls this means that 57 * the fileio stuff merely uses the unix system calls this means that
48 * the mount type of your fs will determine how files are edited. This 58 * the mount type of your fs will determine how files are edited. This
64 #ifdef SIGIO 74 #ifdef SIGIO
65 #define CYGWIN_B19 75 #define CYGWIN_B19
66 #else 76 #else
67 #define BROKEN_CYGWIN 77 #define BROKEN_CYGWIN
68 #endif 78 #endif
79 extern void cygwin32_win32_to_posix_path_list(const char*, char*);
80 extern int cygwin32_win32_to_posix_path_list_buf_size(const char*);
69 #endif 81 #endif
70 82
71 #ifdef HAVE_MS_WINDOWS 83 #ifdef HAVE_MS_WINDOWS
72 #define HAVE_NTGUI 84 #define HAVE_NTGUI
73 #define HAVE_FACES 85 #define HAVE_FACES
112 #define SIGPROF 0 124 #define SIGPROF 0
113 #define SIGWINCH 0 125 #define SIGWINCH 0
114 #endif 126 #endif
115 127
116 #undef MAIL_USE_SYSTEM_LOCK 128 #undef MAIL_USE_SYSTEM_LOCK
129 #define MAIL_USE_POP
117 130
118 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a 131 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
119 * group of arguments and treat it as an array of the arguments. */ 132 * group of arguments and treat it as an array of the arguments. */
120 133
121 #define NO_ARG_ARRAY 134 #define NO_ARG_ARRAY
206 219
207 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B") 220 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B")
208 221
209 /* We need a little extra space, see ../../lisp/loadup.el */ 222 /* We need a little extra space, see ../../lisp/loadup.el */
210 #define SYSTEM_PURESIZE_EXTRA 15000 223 #define SYSTEM_PURESIZE_EXTRA 15000
224
225 #define CYGWIN_CONV_PATH(src, dst) \
226 dst = alloca (cygwin32_win32_to_posix_path_list_buf_size(src)); \
227 cygwin32_win32_to_posix_path_list(src, dst)
211 228
212 /* 229 /*
213 * stolen from usg. 230 * stolen from usg.
214 */ 231 */
215 #define HAVE_PTYS 232 #define HAVE_PTYS