comparison src/s/cygwin32.h @ 388:aabb7f5b1c81 r21-2-9

Import from CVS: tag r21-2-9
author cvs
date Mon, 13 Aug 2007 11:09:42 +0200
parents d883f39b8495
children 1f50e6fe4f3f
comparison
equal deleted inserted replaced
387:f892a9d0bb8d 388:aabb7f5b1c81
26 * Note that if you make changes to this file you do NOT want to define 26 * Note that if you make changes to this file you do NOT want to define
27 * WINDOWSNT, I repeat - do not define this, it will break everything 27 * WINDOWSNT, I repeat - do not define this, it will break everything
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 * When building make sure your HOME path is unix style - i.e. without
32 * mounted filesystem. i.e. something mounted like: mount -b c: 32 * a drive letter.
33 * /binary. If you do not do this then compilation of el files may 33 *
34 * produce garbage. As of b24 there are fixes in xemacs to make 34 * once you have done this, configure and make.
35 * building on text mounts but I don't generally do this. Make sure
36 * you have installed cygwin32 b18 + patched dll (which can be found
37 * at http://www.lexa.ru/sos or on my home page
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.
45 *
46 * once you have done this, configure and make. If you want unexec
47 * support you need to download a.out.h from my web page or use cygwin
48 * b19. You probably want to build with mule support since this
49 * addresses crlf issues in a sensible way.
50 * 35 *
51 * windows '95 - I haven't tested this under '95, it will probably 36 * 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 37 * build but I konw there are some limitations with cygwin under 95 so
53 * YMMV. I build with NT4 SP3. 38 * YMMV. I build with NT4 SP3.
54 * 39 *
55 * What I want to do: 40 * Andy Piper <andy@xemacs.org> 8/1/98
56 *
57 * the fileio stuff merely uses the unix system calls this means that
58 * the mount type of your fs will determine how files are edited. This
59 * is fine except in the instance that you want to convert one to the
60 * other. In this instance I would like to bring the buffer_file_type
61 * code into the picture without all the other windows-nt
62 * cruft. Apparently the best way to do this is use the mule coding
63 * stuff.
64 *
65 * process support needs fixing although basic support works (a la
66 * make-docfile)
67 *
68 * Andy Piper <andyp@parallax.co.uk> 8/1/98
69 * http://www.parallax.co.uk/~andyp */ 41 * http://www.parallax.co.uk/~andyp */
70 42
71 /* cheesy way to determine cygwin version */ 43 /* cheesy way to determine cygwin version */
72 #ifndef NOT_C_CODE 44 #ifndef NOT_C_CODE
73 #include <signal.h> 45 #include <signal.h>
131 #define MAC_CHARSET 77 103 #define MAC_CHARSET 77
132 104
133 #endif 105 #endif
134 #endif 106 #endif
135 107
108 #define PBS_SMOOTH 0x01
109
136 #ifdef HAVE_MS_WINDOWS 110 #ifdef HAVE_MS_WINDOWS
137 #define HAVE_NTGUI 111 #define HAVE_NTGUI
138 #define HAVE_FACES 112 #define HAVE_FACES
139 #endif 113 #endif
140 114
268 #define HAVE_PTYS 242 #define HAVE_PTYS
269 #define FIRST_PTY_LETTER 'z' 243 #define FIRST_PTY_LETTER 'z'
270 244
271 /* Pseudo-terminal support under SVR4 only loops to deal with errors. */ 245 /* Pseudo-terminal support under SVR4 only loops to deal with errors. */
272 246
273 #define PTY_ITERATION for (i = 0; i < 1; i++) 247 #define PTY_ITERATION for (i = 0, c = 0; i < 1; i++)
274 248
275 /* This sets the name of the master side of the PTY. */ 249 /* This sets the name of the master side of the PTY. */
276 250
277 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx"); 251 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
278 252