home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / x11r5pat.zip / patchfile.sola < prev    next >
Text File  |  1992-09-10  |  13KB  |  466 lines

  1. *** mit/config/sv4Lib.rules.orig    Fri Jul 19 21:39:37 1991
  2. --- mit/config/sv4Lib.rules    Wed Jul 29 11:50:21 1992
  3. ***************
  4. *** 53,63 ****
  5. --- 53,79 ----
  6.    * the library gone for long periods.
  7.    */
  8.   #ifndef SharedLibraryTarget
  9. + #if defined(SunArchitecture) && defined(SVR4)
  10.   #define SharedLibraryTarget(libname,rev,solist,down,up)            @@\
  11.   AllTarget(Concat(lib,libname.so.rev))                    @@\
  12.                                       @@\
  13.   Concat(lib,libname.so.rev):  solist                    @@\
  14.       $(RM) $@~                            @@\
  15. +     (cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) -h $@ solist $(REQUIREDLIBS))        @@\
  16. +     $(RM) $@                             @@\
  17. +     $(MV) $@~ $@                            @@\
  18. +     $(RM) Concat(lib,libname.so)                    @@\
  19. +     $(LN) $@ Concat(lib,libname.so)                    @@\
  20. +                                     @@\
  21. + clean::                                    @@\
  22. +     $(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
  23. + #else
  24. + #define SharedLibraryTarget(libname,rev,solist,down,up)            @@\
  25. + AllTarget(Concat(lib,libname.so.rev))                    @@\
  26. +                                     @@\
  27. + Concat(lib,libname.so.rev):  solist                    @@\
  28. +     $(RM) $@~                            @@\
  29.       (cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) -h $@ solist)        @@\
  30.       $(RM) $@                             @@\
  31.       $(MV) $@~ $@                            @@\
  32. ***************
  33. *** 66,71 ****
  34. --- 82,88 ----
  35.                                       @@\
  36.   clean::                                    @@\
  37.       $(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
  38. + #endif /* Sun & SVR4 */
  39.   
  40.   #endif /* SharedLibraryTarget */
  41.   
  42. *** mit/config/Imake.rules.orig    Thu Aug 22 23:04:24 1991
  43. --- mit/config/Imake.rules    Wed Jul 29 13:46:18 1992
  44. ***************
  45. *** 211,216 ****
  46. --- 211,236 ----
  47.   
  48.   
  49.   #ifndef SetUIDProgramTarget
  50. + #if defined(SunArchitecture) && defined(SystemV4)
  51. + #ifdef ProjectRoot
  52. + #define    SetUIDProgramTarget(program,objects,deplibs,locallibs,syslibs)    @@\
  53. + program: objects deplibs                        @@\
  54. +     RemoveTargetProgram($@)                        @@\
  55. +     LD_RUN_PATH=ProjectRoot/lib:/usr/ucblib; export LD_RUN_PATH; $(CC) -o $@ objects $(LDOPTIONS) locallibs $(LDLIBS) syslibs $(EXTRA_LOAD_FLAGS) @@\
  56. +                                     @@\
  57. + clean::                                    @@\
  58. +     $(RM) program
  59. + #else    /* ProjectRoot */
  60. + #define    SetUIDProgramTarget(program,objects,deplibs,locallibs,syslibs)    @@\
  61. + program: objects deplibs                        @@\
  62. +     RemoveTargetProgram($@)                        @@\
  63. +     LD_RUN_PATH=/usr/ucblib; export LD_RUN_PATH; $(CC) -o $@ objects $(LDOPTIONS) locallibs $(LDLIBS) syslibs $(EXTRA_LOAD_FLAGS) @@\
  64. +                                     @@\
  65. + clean::                                    @@\
  66. +     $(RM) program
  67. + #endif    /* ProjectRoot */
  68. + #endif
  69. + #else
  70.   #define SetUIDProgramTarget NormalProgramTarget
  71.   #endif
  72.   
  73. *** mit/lib/oldX/Imakefile.orig    Wed Sep 25 15:10:58 1991
  74. --- mit/lib/oldX/Imakefile    Wed Jul 29 11:43:18 1992
  75. ***************
  76. *** 9,14 ****
  77. --- 9,18 ----
  78.   REQUIREDLIBS = $(XLIBSRC)/libX11.a
  79.   #endif
  80.   
  81. + #if defined(SunArchitecture) && defined(SystemV4)
  82. + REQUIREDLIBS=    -lc
  83. + #endif
  84.   #if Malloc0ReturnsNull
  85.           DEFINES = -DMALLOC_0_RETURNS_NULL
  86.   #endif
  87. *** mit/lib/X/Imakefile.orig    Tue Dec 17 09:16:24 1991
  88. --- mit/lib/X/Imakefile    Wed Jul 29 11:59:27 1992
  89. ***************
  90. *** 9,14 ****
  91. --- 9,18 ----
  92.   #define MotifBC NO
  93.   #endif
  94.   
  95. + #if defined(SunArchitecture) && defined(SystemV4)
  96. + REQUIREDLIBS=    -lc
  97. + #endif
  98.   #ifndef BuildXimp
  99.   #define BuildXimp NO
  100.   #endif
  101. *** mit/lib/Xt/Imakefile.orig    Wed Sep 25 15:10:58 1991
  102. --- mit/lib/Xt/Imakefile    Wed Jul 29 13:16:53 1992
  103. ***************
  104. *** 13,18 ****
  105. --- 13,22 ----
  106.   REQUIREDLIBS = $(XLIBSRC)/libX11.a
  107.   #endif
  108.   
  109. + #if defined(SunArchitecture) && defined(SystemV4)
  110. + REQUIREDLIBS=    -lc
  111. + #endif
  112.   /* config options */
  113.   
  114.   XFILESEARCHPATHDEFAULT = XFileSearchPathDefault
  115. *** mit/lib/Xaw/Imakefile.orig    Wed Sep 25 15:10:57 1991
  116. --- mit/lib/Xaw/Imakefile    Wed Jul 29 14:53:09 1992
  117. ***************
  118. *** 9,14 ****
  119. --- 9,18 ----
  120.   REQUIREDLIBS = $(XMUSRC)/libXmu.a $(EXTENSIONSRC)/lib/libXext.a $(TOOLKITSRC)/libXt.a $(XLIBSRC)/libX11.a
  121.   #endif
  122.   
  123. + #if defined(SunArchitecture) && defined(SystemV4)
  124. + REQUIREDLIBS=    -lc
  125. + #endif
  126.      INSTALLFLAGS = $(INSTINCFLAGS)
  127.          LINTLIBS = $(LINTXLIB) $(LINTXTOOL)
  128.   
  129. *** mit/extensions/lib/Imakefile.orig    Tue Jul 23 04:57:23 1991
  130. --- mit/extensions/lib/Imakefile    Wed Jul 29 12:01:07 1992
  131. ***************
  132. *** 9,14 ****
  133. --- 9,18 ----
  134.   REQUIREDLIBS = $(XLIBSRC)/libX11.a
  135.   #endif
  136.   
  137. + #if defined(SunArchitecture) && defined(SystemV4)
  138. + REQUIREDLIBS=    -lc
  139. + #endif
  140.   #if BuildXInputLib || BuildPexClients
  141.   #define IHaveSubdirs
  142.   #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
  143. *** mit/extensions/lib/xinput/Imakefile.orig    Wed Jul 24 21:39:44 1991
  144. --- mit/extensions/lib/xinput/Imakefile    Wed Jul 29 11:56:38 1992
  145. ***************
  146. *** 13,18 ****
  147. --- 13,22 ----
  148.   REQUIREDLIBS = $(EXTENSIONSRC)/lib/libXext.a $(XLIBSRC)/libX11.a
  149.   #endif
  150.   
  151. + #if defined(SunArchitecture) && defined(SystemV4)
  152. + REQUIREDLIBS=    -lc
  153. + #endif
  154.   #if Malloc0ReturnsNull
  155.    DEFINES = -DMALLOC_0_RETURNS_NULL
  156.   #endif
  157. *** mit/clients/xterm/Imakefile.orig    Fri Mar 20 15:22:43 1992
  158. --- mit/clients/xterm/Imakefile    Wed Jul 29 14:03:00 1992
  159. ***************
  160. *** 70,76 ****
  161. --- 70,85 ----
  162.   #endif
  163.   
  164.   #if InstallXtermSetUID && defined(SunArchitecture) && HasSharedLibraries
  165. + #if defined(SystemV4)
  166.   #if AlternateUsrLibDir
  167. + DO_LD_RUN=    "LD_RUN_PATH=$(DESTDIR)$(USRLIBDIR):/usr/ucblib; export LD_RUN_PATH; "
  168. + #else
  169. + DO_LD_RUN=    "LD_RUN_PATH=/usr/ucblib; export LD_RUN_PATH; "
  170. + #endif    /* AlternateUsrLibDir */
  171. + #else
  172. + DO_LD_RUN=
  173. + #endif
  174. + #if AlternateUsrLibDir
  175.   #if OSMajorVersion > 4 || (OSMajorVersion == 4 && OSMinorVersion >= 1)
  176.   LDOVERRIDE = -L$(DESTDIR)$(USRLIBDIR)
  177.   #else
  178. ***************
  179. *** 85,91 ****
  180.   install:: xterm
  181.       MakeDir($(DESTDIR)$(BINDIR))
  182.       $(RM) xterm.inst
  183. !     $(CC) -o xterm.inst $(OBJS1) $(LDOPTIONS) $(LDOVERRIDE) -lXaw -lXmu -lXt -lXext -lX11 $(LDRESUME) $(LDLIBS) $(TERMCAPLIB) $(PTYLIB) $(EXTRA_LOAD_FLAGS)
  184.       $(INSTALL) -c $(INSTPGMFLAGS) $(INSTUIDFLAGS) xterm.inst $(DESTDIR)$(BINDIR)/xterm
  185.       $(RM) xterm.inst
  186.   #else
  187. --- 94,100 ----
  188.   install:: xterm
  189.       MakeDir($(DESTDIR)$(BINDIR))
  190.       $(RM) xterm.inst
  191. !     DO_LD_RUN $(CC) -o xterm.inst $(OBJS1) $(LDOPTIONS) $(LDOVERRIDE) -lXaw -lXmu -lXt -lXext -lX11 $(LDRESUME) $(LDLIBS) $(TERMCAPLIB) $(PTYLIB) $(EXTRA_LOAD_FLAGS)
  192.       $(INSTALL) -c $(INSTPGMFLAGS) $(INSTUIDFLAGS) xterm.inst $(DESTDIR)$(BINDIR)/xterm
  193.       $(RM) xterm.inst
  194.   #else
  195. *** mit/clients/xload/Imakefile.orig    Wed Jul 17 06:46:31 1991
  196. --- mit/clients/xload/Imakefile    Wed Jul 29 13:53:46 1992
  197. ***************
  198. *** 21,27 ****
  199. --- 21,31 ----
  200.         DEFINES = -DOSMAJORVERSION=$(OSMAJORVERSION) -DOSMINORVERSION=$(OSMINORVERSION) 
  201.   
  202.   AllTarget(xload)
  203. + #if defined(SunArchitecture) && defined(SystemV4)
  204. + SetUIDProgramTarget(xload,$(OBJS),$(DEPLIBS),$(LOCAL_LIBRARIES),NullParameter)
  205. + #else
  206.   NormalProgramTarget(xload,$(OBJS),$(DEPLIBS),$(LOCAL_LIBRARIES),NullParameter)
  207. + #endif
  208.   InstallProgramWithFlags(xload,$(BINDIR),$(INSTKMEMFLAGS))
  209.   InstallManPage(xload,$(MANDIR))
  210.   
  211. *** mit/clients/xconsole/Imakefile.orig    Wed Jul 17 05:07:12 1991
  212. --- mit/clients/xconsole/Imakefile    Wed Jul 29 16:15:45 1992
  213. ***************
  214. *** 5,10 ****
  215. --- 5,30 ----
  216.           DEPLIBS = XawClientDepLibs
  217.   LOCAL_LIBRARIES = XawClientLibs
  218.   
  219. + #if defined(SunArchitecture) && defined(SystemV4)
  220. + SetUIDProgramTarget(xconsole,$(OBJS),$(DEPLIBS),$(LOCAL_LIBRARIES),)
  221. + AllTarget(xconsole)
  222. + SaberProgramTarget(program,$(SRCS),$(OBJS),$(LOCAL_LIBRARIES),NullParameter)
  223. + InstallManPage(program,$(MANDIR))
  224. + DependTarget()
  225. + LintTarget()
  226. + clean::
  227. +         $(RM) xconsole
  228. + InstallProgramWithFlags($(PROGRAMS),$(BINDIR),$(INSTUIDFLAGS))
  229. + #else
  230.   ComplexProgramTarget(xconsole)
  231. + InstallProgramWithFlags($(PROGRAMS),$(BINDIR),NullParameter)
  232. + #endif
  233.   
  234.   InstallAppDefaults(XConsole)
  235. *** mit/server/ddx/sun/sunInit.c.orig    Tue May  5 09:10:25 1992
  236. --- mit/server/ddx/sun/sunInit.c    Thu Jul 30 10:06:03 1992
  237. ***************
  238. *** 228,235 ****
  239. --- 228,240 ----
  240.        */
  241.       if (nonBlockConsole) {
  242.       if (!setup_on_exit) {
  243. + #ifdef SVR4
  244. +         if (atexit(sunNonBlockConsoleOff))
  245. +         ErrorF("InitOutput: can't register NBIO exit handler\n");
  246. + #else
  247.           if (on_exit(sunNonBlockConsoleOff, (char *)0))
  248.           ErrorF("InitOutput: can't register NBIO exit handler\n");
  249. + #endif
  250.           setup_on_exit = 1;
  251.       }
  252.       i = fcntl(2, F_GETFL, 0);
  253. *** mit/fonts/lib/font/fontfile/Imakefile.orig    Tue Jul 23 04:21:54 1991
  254. --- mit/fonts/lib/font/fontfile/Imakefile    Thu Jul 30 10:04:21 1992
  255. ***************
  256. *** 6,19 ****
  257.   #ifdef FontFormatDefines
  258.        FORMAT_DEFS = FontFormatDefines
  259.   #endif
  260.               SRCS = dirfile.c fontdir.c fontfile.c fontscale.c \
  261. !                fontutil.c defaults.c bitsource.c renderers.c
  262.               OBJS = dirfile.o fontdir.o fontfile.o fontscale.o \
  263. !                fontutil.o defaults.o bitsource.o renderers.o
  264.   
  265.   SubdirLibraryRule($(OBJS))
  266.   NormalLibraryObjectRule()
  267.   NormalLintTarget($(SRCS))
  268.   
  269.   DependTarget()
  270.   
  271. --- 6,31 ----
  272.   #ifdef FontFormatDefines
  273.        FORMAT_DEFS = FontFormatDefines
  274.   #endif
  275. + #if defined(SunArchitecture) && defined(SystemV4)
  276. + FONTUTIL=    font_util
  277. + #else
  278. + FONTUTIL=    fontutil
  279. + #endif
  280.               SRCS = dirfile.c fontdir.c fontfile.c fontscale.c \
  281. !                $(FONTUTIL).c defaults.c bitsource.c renderers.c
  282.               OBJS = dirfile.o fontdir.o fontfile.o fontscale.o \
  283. !                $(FONTUTIL).o defaults.o bitsource.o renderers.o
  284.   
  285.   SubdirLibraryRule($(OBJS))
  286.   NormalLibraryObjectRule()
  287.   NormalLintTarget($(SRCS))
  288. + #if defined(SunArchitecture) && defined(SystemV4)
  289. + $(FONTUTIL).c:    fontutil.c
  290. +     -rm -f $(FONTUTIL).c
  291. +     ln -s fontutil.c $(FONTUTIL).c
  292. + #endif
  293.   
  294.   DependTarget()
  295.   
  296. *** mit/server/ddx/cfb/stipsparc.s.orig    Wed Jun 12 23:03:31 1991
  297. --- mit/server/ddx/cfb/stipsparc.s    Thu Jul 30 10:21:57 1992
  298. ***************
  299. *** 81,88 ****
  300. --- 81,96 ----
  301.   #define ForEachBits    LY4
  302.   #define NextBits    LY5
  303.   
  304. + #ifdef    SVR4
  305.   #ifdef TETEXT
  306. + #define    _stipplestack    stipplestackte
  307. + #else
  308. + #define    _stipplestack    stipplestack
  309. + #endif
  310. + #else
  311. + #ifdef TETEXT
  312.   #define    _stipplestack    _stipplestackte
  313. + #endif
  314.   #endif
  315.   
  316.       .seg    "text"
  317. *** mit/server/ddx/sun/sunMouse.c.orig    Mon Nov 18 15:44:51 1991
  318. --- mit/server/ddx/sun/sunMouse.c    Thu Jul 30 12:27:16 1992
  319. ***************
  320. *** 48,53 ****
  321. --- 48,57 ----
  322.   static char sccsid[] = "%W %G Copyright 1987 Sun Micro";
  323.   #endif
  324.   
  325. + #ifdef SVR4
  326. + #define    sigmask(m)    (1 <<((m)-1))
  327. + #endif
  328.   #define NEED_EVENTS
  329.   #include    "sun.h"
  330.   #include    "mipointer.h"
  331. ***************
  332. *** 129,136 ****
  333.               Error ("Opening /dev/mouse");
  334.               return (!Success);
  335.               }
  336.               if (fcntl (fd, F_SETFL, (FNDELAY|FASYNC)) < 0
  337. !             || fcntl(fd, F_SETOWN, getpid()) < 0) {
  338.                   perror("sunMouseProc");
  339.                   ErrorF("Can't set up mouse on fd %d\n", fd);
  340.               }
  341. --- 133,145 ----
  342.               Error ("Opening /dev/mouse");
  343.               return (!Success);
  344.               }
  345. + #ifdef SVR4
  346. +             if (fcntl (fd, F_SETFL, (FNDELAY|FASYNC)) < 0)
  347. + #else
  348.               if (fcntl (fd, F_SETFL, (FNDELAY|FASYNC)) < 0
  349. !             || fcntl(fd, F_SETOWN, getpid()) < 0)
  350. ! #endif
  351. !                                 {
  352.                   perror("sunMouseProc");
  353.                   ErrorF("Can't set up mouse on fd %d\n", fd);
  354.               }
  355. *** mit/server/os/connection.c.orig    Wed Sep 18 08:48:51 1991
  356. --- mit/server/os/connection.c    Thu Jul 30 12:11:07 1992
  357. ***************
  358. *** 71,76 ****
  359. --- 71,86 ----
  360.   # endif
  361.   #endif
  362.   
  363. + #if defined(sun) && defined(SVR4)
  364. + #include <sys/time.h>
  365. + #include <sys/resource.h>
  366. + /* According to setsockopt(3N), SO_DONTLINGER is not supported, but SO_LINGER is */
  367. + #if defined(TCPCONN) && defined(SO_DONTLINGER)
  368. + #undef SO_DONTLINGER
  369. + #endif
  370. + #endif
  371.   #ifdef UNIXCONN
  372.   /*
  373.    * sites should be careful to have separate /tmp directories for diskless nodes
  374. ***************
  375. *** 362,367 ****
  376. --- 372,380 ----
  377.   CreateWellKnownSockets()
  378.   {
  379.       int        request, i;
  380. + #if defined(SVR4) && defined(sun)
  381. +     struct rlimit    rl;
  382. + #endif
  383.   
  384.       CLEARBITS(AllSockets);
  385.       CLEARBITS(AllClients);
  386. ***************
  387. *** 370,380 ****
  388.   
  389.       for (i=0; i<MAXSOCKS; i++) ConnectionTranslation[i] = 0;
  390.       
  391. ! #if defined(hpux) || defined(SVR4)
  392.       lastfdesc = _NFILE - 1;
  393.   #else
  394.       lastfdesc = getdtablesize() - 1;
  395. ! #endif    /* hpux */
  396.   
  397.       if (lastfdesc > MAXSOCKS)
  398.       {
  399. --- 383,400 ----
  400.   
  401.       for (i=0; i<MAXSOCKS; i++) ConnectionTranslation[i] = 0;
  402.       
  403. ! #ifdef SVR4
  404. ! #if defined(hpux)
  405.       lastfdesc = _NFILE - 1;
  406. + #elif defined(sun)
  407. +     getrlimit(RLIMIT_NOFILE, &rl);
  408. +     lastfdesc = rl.rlim_cur;
  409.   #else
  410.       lastfdesc = getdtablesize() - 1;
  411. ! #endif
  412. ! #else
  413. !     lastfdesc = getdtablesize() - 1;
  414. ! #endif    /* SVR4 */
  415.   
  416.       if (lastfdesc > MAXSOCKS)
  417.       {
  418. *** xmag.c.orig    Wed Sep 18 08:48:47 1991
  419. --- xmag.c    Tue Aug 11 16:37:32 1992
  420. ***************
  421. *** 888,894 ****
  422.   
  423.   
  424.   
  425. ! static Widget pane1, pane2, pane3, cclose, replace, new, select, paste, label;
  426.   
  427.   /*
  428.    * PopupNewScale() -- Create and popup a new scale composite.
  429. --- 888,894 ----
  430.   
  431.   
  432.   
  433. ! static Widget pane1, pane2, pane3, cclose, replace, new, paste, label;
  434.   
  435.   /*
  436.    * PopupNewScale() -- Create and popup a new scale composite.
  437. ***************
  438. *** 897,902 ****
  439. --- 897,903 ----
  440.   PopupNewScale(data)
  441.        hlPtr data;
  442.   {
  443. +   Widget select;
  444.     Arg warg;
  445.   
  446.     data->scaleShell = 
  447.