|
|
1.1 root 1: The X11R2 distribution wasn't included with 4.3BSD-tahoe due to
2: space considerations. It is available from MIT by anonymous ftp
3: from expo.lcs.mit.edu or on tape distribution. Minimal changes are
4: required to compile it under this release.
5:
6: The X11R2 code was compiled on a VAX, and servers for Digital
7: Equipment Corp. display hardware QDSS and QVSS were built (see
8: QDSS.README for details). The following is a list of changes that
9: are necessary to compile X11R2 servers for QDSS and QVSS.
10:
11: 1) Apply patches 1 through 33 to the stock MIT X11R2 distribution.
12: (patches available from expo.lcs.mit.edu via anonymous FTP)
13:
14: 2) In X11R2/server/ddx/dec/qdss/Ultrix2.0inc.h, comment out the
15: reference to "<sys/devio.h>".
16:
17: 3) Due to changes in preparation for ANSI C, the ioctl macros
18: have changed. In X11R2/server/ddx/dec/qdss/libtl/tl.h add
19: single quotes around the letters in the ioctl declarations.
20:
21: ------- tl.h -------
22: *** /tmp/d16813 Tue Jun 14 15:53:44 1988
23: --- tl.h Fri May 27 17:42:41 1988
24: ***************
25: *** 186,196 ****
26: extern char * Cur;
27: extern struct color_buf * Co[2];
28:
29: ! #define SG_MAPDEVICE _IOR(g, 9, struct sgmap) /* map device to user */
30: ! #define SG_VIDEOON _IO(g,23) /* turn on the video */
31: ! #define SG_VIDEOOFF _IO(g,24) /* turn off the video */
32: ! #define SG_CURSORON _IO(g,25) /* turn on the cursor */
33: ! #define SG_CURSOROFF _IO(g,26) /* turn off the cursor */
34: #define ADDRESS_COUNTER 0
35: #define REQUEST_ENABLE 1
36: #define STATUS 3
37: --- 186,196 ----
38: extern char * Cur;
39: extern struct color_buf * Co[2];
40:
41: ! #define SG_MAPDEVICE _IOR('g', 9, struct sgmap) /* map device to user */
42: ! #define SG_VIDEOON _IO('g',23) /* turn on the video */
43: ! #define SG_VIDEOOFF _IO('g',24) /* turn off the video */
44: ! #define SG_CURSORON _IO('g',25) /* turn on the cursor */
45: ! #define SG_CURSOROFF _IO('g',26) /* turn off the cursor */
46: #define ADDRESS_COUNTER 0
47: #define REQUEST_ENABLE 1
48: #define STATUS 3
49: ------------------------------------------------
50:
51: 4) In X11R2/server/ddx/dec/qdss/qdpushpxl.c there is a null
52: storage declaration which the Ultrix compiler doesn't mind,
53: but the 4.3BSD-tahoe compiler does. Move the null storage
54: declaration inside the "#ifdef notdef" section of code.
55:
56: ------- qdpushpxl.c -------
57: *** /tmp/d16864 Tue Jun 14 15:56:21 1988
58: --- qdpushpxl.c Fri May 27 18:07:04 1988
59: ***************
60: *** 247,255 ****
61: int x1, y1, x2, y2; /* clipping rectangle in pixmap coords*/
62: int xOrg, yOrg; /* origin of bitmap within pixmap */
63: {
64: - int mask[];
65:
66: #ifdef undef
67: register int chmask = 0xff << (ch*8);
68: u_char * destorig = ((QDPixPtr)pPixmap->devPrivate)->data
69: [ nch * pPixmap->width * pPixmap->height];
70: --- 247,255 ----
71: int x1, y1, x2, y2; /* clipping rectangle in pixmap coords*/
72: int xOrg, yOrg; /* origin of bitmap within pixmap */
73: {
74:
75: #ifdef undef
76: + int mask[];
77: register int chmask = 0xff << (ch*8);
78: u_char * destorig = ((QDPixPtr)pPixmap->devPrivate)->data
79: [ nch * pPixmap->width * pPixmap->height];
80: ---------------------------------
81:
82: 5) X11R2/server/os/4.2bsd/connection.c has a bug which causes
83: the unix domain socket to have the wrong permission, and clients
84: can't connect to it. Add a umask(0) before the bind().
85:
86: *** connection.c-r1.1 Tue Jun 14 15:44:43 1988
87: --- connection.c-r1.2 Tue Jun 14 15:44:44 1988
88: ***************
89: *** 219,226 ****
90: --- 219,228 ----
91: }
92: else
93: {
94: + oldUmask = umask (0);
95: if(bind(request,(struct sockaddr *)&unsock, strlen(unsock.sun_path)+2))
96: Error ("Binding Unix socket");
97: + (void)umask(oldUmask);
98: if (listen (request, 5)) Error ("Unix Listening");
99: WellKnownConnections |= (1 << request);
100: }
101: -----------------------------------
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.