1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884
|
diff -crP xc.orig/config/cf/Imake.cf xc/config/cf/Imake.cf
*** xc.orig/config/cf/Imake.cf Sat Jul 26 20:41:02 1997
--- xc/config/cf/Imake.cf Thu Mar 12 18:35:53 1998
***************
*** 144,149 ****
--- 144,166 ----
# endif
#endif /* NetBSD */
+ #ifdef OSKIT
+ # define MacroIncludeFile <oskit.cf>
+ # define MacroFile oskit.cf
+ # undef OSKIT
+ # define OskitArchitecture
+ # if defined(i386) || defined(__i386__)
+ # define i386Architecture
+ # undef i386
+ # endif
+ # ifdef __FreeBSD__
+ # undef __FreeBSD__
+ # endif
+ # ifdef linux
+ # undef linux
+ # endif
+ #endif /* OSKIT */
+
#ifdef __FreeBSD__
# define MacroIncludeFile <FreeBSD.cf>
# define MacroFile FreeBSD.cf
diff -crP xc.orig/config/cf/oskit.cf xc/config/cf/oskit.cf
*** xc.orig/config/cf/oskit.cf Wed Dec 31 17:00:00 1969
--- xc/config/cf/oskit.cf Thu Mar 12 18:35:53 1998
***************
*** 0 ****
--- 1,213 ----
+ XCOMM oskit.cf
+
+ /*
+ * Configuration file for the oskit.
+ */
+
+ #ifndef OSName
+ #define OSName OSKit
+ #endif
+ XCOMM operating system: OSName
+ #ifndef OSMajorVersion
+ #define OSMajorVersion 1
+ #endif
+ #ifndef OSMinorVersion
+ #define OSMinorVersion 0
+ #endif
+ #ifndef OSTeenyVersion
+ #define OSTeenyVersion 0
+ #endif
+ #ifndef OSVendor
+ #define OSVendor University of Utah CSL
+ #endif
+
+ #define OSKitArchitecture YES
+
+ /* Configuration Defaults */
+
+
+ /* Set this to point to your oskit installation directory. */
+ #ifndef OskitTop
+ #define OskitTop /usr/flux
+ #endif
+
+ #define ProjectRoot OskitTop
+
+ /* Set this if you're building with ELF tools. */
+
+ #define ElfOskit YES
+
+ /* Set these depending on what you're using for cross compiling. */
+ #define ArCmdBase i486-linux-ar
+ #define AsCmd i486-linux-as
+ #define CcCmd i486-linux-gcc -fpcc-struct-return OskitIncludes OskitDefines DefaultGcc2i386Opt -g
+ #define CplusplusCmd i486-linux-g++ OskitIncludes OskitDefines -g
+ #define CplusplusFilt i486-linux-c++filt
+ #define CppCmd /usr/flux/lib/gcc-lib/i486-linux/2.7.2.2/cpp OskitIncludes OskitDefines
+ #define LdCmd i486-linux-ld OskitLoadFlags
+ #define RanlibCmd i486-linux-ranlib
+
+ /* Undefine the os-specific defines that might be lurking around. */
+ #define OskitUndefines -Ulinux -U__linux__ -U__linux
+
+
+ #define BuildFonts NO
+ #define BuildFontServer NO
+ #define BuildPexExt NO
+ #define BuildXIE NO
+
+ #define BuildLBX NO /* needs writev! */
+ #define BuildXprint NO
+
+ #define BuildServer NO
+ #define BuildFontServer NO
+ #define BuildFonts NO
+ #define BuildPhigs NO
+ #define BuildXKBlib NO
+
+ #define UseInternalMalloc YES
+ #define StripInstalledPrograms NO
+
+ #define ConnectionFlags -DTCPCONN
+
+ OTOP = OskitTop
+
+
+ /* XXX Need to figure out how to determine if we're ELF or not... */
+ #ifdef ElfOskit
+ #define StandardDefines -DX_LOCALE -D__ELF__
+ #else
+ #define StandardDefines -DX_LOCALE
+ #endif
+ #define StandardCppDefines StandardDefines
+ #define DefaultCDebugFlags
+ #define DefaultGcc2i386Opt -O
+
+
+ /* These would be `Standard', but the cross build stuff dosen't work very
+ * well. =(
+ */
+ #define OskitIncludes -I$(OTOP)/include \
+ -I$(OTOP)/include/oskit/freebsd
+ #define OskitDefines -DOSKIT OskitUndefines StandardDefines
+
+
+ /* These would be `Extra', but the cross build stuff dosen't work very
+ * well. =(
+ */
+ #define OskitLibraries -loskit_x11client -loskit_startup -loskit_bootp -loskit_freebsd_net -loskit_linux_dev -loskit_dev -loskit_kern -loskit_freebsd_c -loskit_kern -loskit_dev -loskit_lmm -loskit_com -loskit_freebsd_c
+ #define OskitLoadFlags -L$(OTOP)/lib
+ #define MathLibrary -loskit_freebsd_m
+
+ #define BootstrapCFlags -DOSKIT -DCROSS_COMPILE
+
+ /*
+ * Use the cross compilation rules!
+ */
+ #define CrossCompiling YES
+
+
+
+ /*
+ * LinkRule - link a program
+ */
+ /* #ifndef LinkRule */
+ #define LinkRule(program,options,objects,libraries) \
+ $(LD) -Ttext 100000 -o program options $(OTOP)/lib/oskit/multiboot.o objects libraries OskitLibraries $(OTOP)/lib/oskit/crtn.o $(EXTRA_LOAD_FLAGS)
+ /* #endif /* LinkRule */
+
+ /*
+ * HostLinkRule - link a utility to be used on the build host
+ * (differs from LinkRule if cross compiling)
+ */
+ #ifndef HostLinkRule
+ #define HostLinkRule(program,options,objects,libraries) \
+ cc -o program options objects libraries $(EXTRA_HOST_LOAD_FLAGS)
+ #endif /* HostLinkRule */
+
+
+ /* ComplexHostProgramTarget - Compile a program such that we can run
+ * it on this host, i.e., don't use the default cross compiler.
+ */
+ #ifndef ComplexHostProgramTarget
+ #define ComplexHostProgramTarget(program) @@\
+ CC=cc @@\
+ STD_INCLUDES= @@\
+ CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS) -DHOSTRULE @@\
+ EXTRA_LOAD_FLAGS= @@\
+ PROGRAM = program @@\
+ @@\
+ AllTarget(program) @@\
+ @@\
+ program: $(OBJS) $(DEPLIBS) @@\
+ RemoveTargetProgram($@) @@\
+ HostLinkRule($@,$(_NOOP_),$(OBJS),$(DEPLIBS) $(LOCAL_LIBRARIES)) @@\
+ @@\
+ DependTarget() @@\
+ @@\
+ LintTarget() @@\
+ @@\
+ clean:: @@\
+ RemoveFile(ProgramTargetName(program))
+ #endif /* ComplexHostProgramTarget */
+
+
+ #ifndef SimpleHostProgramTarget
+ #define SimpleHostProgramTarget(program) @@\
+ OBJS = program.o @@\
+ SRCS = program.c @@\
+ @@\
+ ComplexHostProgramTarget(program)
+ #endif /* SimpleHostProgramTarget */
+
+ /*
+ * NormalProgramTarget - generate rules to compile and link the indicated
+ * program; since it does not use any default object files, it may be used for
+ * multiple programs in the same Imakefile.
+ */
+ #ifndef NormalHostProgramTarget
+ #define NormalHostProgramTarget(program,objects,deplibs,locallibs,syslibs) @@\
+ ProgramTargetName(program): objects deplibs @@\
+ RemoveTargetProgram($@) @@\
+ HostLinkRule($@,$(LDOPTIONS),objects,locallibs $(LDLIBS) syslibs) @@\
+ @@\
+ clean:: @@\
+ RemoveFile(ProgramTargetName(program))
+ #endif /* NormalHostProgramTarget */
+
+
+ #define GccUsesGas YES
+ #define HasSnprintf YES
+ #define AvoidNullMakeCommand YES
+ #define CompressAllFonts YES
+ #define NeedConstPrototypes YES
+ #define NeedFunctionPrototypes YES
+ #define NeedNestedPrototypes YES
+ #define NeedVarargsPrototypes YES
+ #define NeedWidePrototypes NO
+
+
+
+ #ifdef i386Architecture
+
+ #define XFree86ServerOSDefines -DDDXOSINIT -DDDXOSFATALERROR
+ #define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
+
+ #define XF86SVGAServer YES
+ #define XF86VGA16Server NO
+ #define XF86VGA16DualServer NO
+ #define XF86MonoServer NO
+ #define XF86MonoDualServer NO
+ #define XF86S3Server YES
+ #define XF86S3VServer NO
+ #define XF86I8514Server NO
+ #define XF86Mach8Server NO
+ #define XF86Mach32Server NO
+ #define XF86Mach64Server YES
+ #define XF86P9000Server NO
+ #define XF86AGXServer NO
+ #define XF86W32Server NO
+ #define XF86I128Server NO
+
+ #include <xfree86.cf>
+ #endif
diff -crP xc.orig/config/imake/imakemdep.h xc/config/imake/imakemdep.h
*** xc.orig/config/imake/imakemdep.h Sat Jul 26 20:41:05 1997
--- xc/config/imake/imakemdep.h Thu Mar 12 18:35:53 1998
***************
*** 537,542 ****
--- 537,551 ----
"-traditional",
"-Demxos2",
#endif
+ #ifdef OSKIT
+ "-DOSKIT",
+ # ifdef CROSS_COMPILE
+ "-DCROSS_COMPILE",
+ # endif
+ # ifdef __i386__
+ "-D__i386__",
+ # endif
+ #endif
};
diff -crP xc.orig/config/util/Imakefile xc/config/util/Imakefile
*** xc.orig/config/util/Imakefile Sun Dec 22 22:56:12 1996
--- xc/config/util/Imakefile Thu Mar 12 18:35:53 1998
***************
*** 62,68 ****
--- 62,72 ----
SimpleProgramTarget(mkdirhier)
#endif
+ #if CrossCompiling
+ NormalHostProgramTarget(makestrs,makestrs.o,,,)
+ #else
NormalProgramTarget(makestrs,makestrs.o,,,)
+ #endif
InstallManPage(makestrs,$(MANDIR))
diff -crP xc.orig/include/Xos.h xc/include/Xos.h
*** xc.orig/include/Xos.h Fri Jan 17 23:51:16 1997
--- xc/include/Xos.h Thu Mar 12 18:48:04 1998
***************
*** 240,245 ****
--- 240,257 ----
#endif /* SYSV */
+ #if defined(OSKIT) && !defined(HOSTRULE)
+
+ /* XXX Blatant but harmless lies. */
+ #ifndef OPEN_MAX
+ #define OPEN_MAX 256
+ #endif
+
+ #ifndef PATH_MAX
+ #define PATH_MAX 512
+ #endif
+ #endif /* OSKIT */
+
/* define X_GETTIMEOFDAY macro, a portable gettimeofday() */
#if defined(_XOPEN_XPG4) || defined(_XOPEN_UNIX) /* _XOPEN_UNIX is XPG4.2 */
#define X_GETTIMEOFDAY(t) gettimeofday(t, (struct timezone*)0)
diff -crP xc.orig/lib/FS/FSlibos.h xc/lib/FS/FSlibos.h
*** xc.orig/lib/FS/FSlibos.h Sun Dec 22 22:58:50 1996
--- xc/lib/FS/FSlibos.h Thu Mar 12 18:35:53 1998
***************
*** 78,84 ****
#endif
#endif
#ifndef OPEN_MAX
! #ifdef SVR4
#define OPEN_MAX 256
#else
#include <sys/param.h>
--- 78,84 ----
#endif
#endif
#ifndef OPEN_MAX
! #if defined(SVR4) || defined(OSKIT)
#define OPEN_MAX 256
#else
#include <sys/param.h>
diff -crP xc.orig/lib/X11/GetDflt.c xc/lib/X11/GetDflt.c
*** xc.orig/lib/X11/GetDflt.c Sun Jun 15 01:25:26 1997
--- xc/lib/X11/GetDflt.c Thu Mar 12 18:35:53 1998
***************
*** 63,69 ****
#endif
#endif
#ifndef PATH_MAX
! #ifdef WIN32
#define PATH_MAX 512
#else
#include <sys/param.h>
--- 63,69 ----
#endif
#endif
#ifndef PATH_MAX
! #if defined(WIN32) || defined(OSKIT)
#define PATH_MAX 512
#else
#include <sys/param.h>
***************
*** 80,86 ****
#ifdef XTHREADS
#include <X11/Xthreads.h>
#endif
! #ifndef WIN32
#define X_INCLUDE_PWD_H
#define XOS_USE_XLIB_LOCKING
#include <X11/Xos_r.h>
--- 80,86 ----
#ifdef XTHREADS
#include <X11/Xthreads.h>
#endif
! #if !defined(WIN32) && !defined(OSKIT)
#define X_INCLUDE_PWD_H
#define XOS_USE_XLIB_LOCKING
#include <X11/Xos_r.h>
***************
*** 97,103 ****
char *dest;
int len;
{
! #ifdef WIN32
register char *ptr;
char* users = "/users/";
--- 97,103 ----
char *dest;
int len;
{
! #if defined(WIN32) || defined(OSKIT)
register char *ptr;
char* users = "/users/";
diff -crP xc.orig/lib/X11/XKBGAlloc.c xc/lib/X11/XKBGAlloc.c
*** xc.orig/lib/X11/XKBGAlloc.c Sun Oct 13 05:17:25 1996
--- xc/lib/X11/XKBGAlloc.c Thu Mar 12 18:35:53 1998
***************
*** 49,55 ****
#endif /* XKB_IN_SERVER */
! #ifdef X_NOT_POSIX
#define Size_t unsigned int
#else
#define Size_t size_t
--- 49,55 ----
#endif /* XKB_IN_SERVER */
! #if defined(X_NOT_POSIX) || defined(OSKIT)
#define Size_t unsigned int
#else
#define Size_t size_t
diff -crP xc.orig/lib/Xmu/LocBitmap.c xc/lib/Xmu/LocBitmap.c
*** xc.orig/lib/Xmu/LocBitmap.c Sun May 5 23:54:35 1996
--- xc/lib/Xmu/LocBitmap.c Thu Mar 12 18:35:53 1998
***************
*** 52,58 ****
#endif
#endif /* X_NOT_POSIX */
#ifndef PATH_MAX
! #ifdef WIN32
#define PATH_MAX 512
#else
#include <sys/param.h>
--- 52,58 ----
#endif
#endif /* X_NOT_POSIX */
#ifndef PATH_MAX
! #if defined(WIN32) || defined(OSKIT)
#define PATH_MAX 512
#else
#include <sys/param.h>
diff -crP xc.orig/lib/Xmu/StrToCurs.c xc/lib/Xmu/StrToCurs.c
*** xc.orig/lib/Xmu/StrToCurs.c Wed Apr 27 01:09:24 1994
--- xc/lib/Xmu/StrToCurs.c Thu Mar 12 18:35:53 1998
***************
*** 66,72 ****
#endif
#endif /* X_NOT_POSIX */
#ifndef PATH_MAX
! #ifdef WIN32
#define PATH_MAX 512
#else
#include <sys/param.h>
--- 66,72 ----
#endif
#endif /* X_NOT_POSIX */
#ifndef PATH_MAX
! #if defined(WIN32) || defined(OSKIT)
#define PATH_MAX 512
#else
#include <sys/param.h>
diff -crP xc.orig/lib/Xp/XpJob.c xc/lib/Xp/XpJob.c
*** xc.orig/lib/Xp/XpJob.c Sun Jan 12 03:39:56 1997
--- xc/lib/Xp/XpJob.c Thu Mar 12 18:35:53 1998
***************
*** 45,51 ****
#include "X11/Xos.h"
#include "extutil.h"
#include <limits.h>
! #ifndef WIN32
#define X_INCLUDE_PWD_H
#define XOS_USE_XLIB_LOCKING
#include <X11/Xos_r.h>
--- 45,51 ----
#include "X11/Xos.h"
#include "extutil.h"
#include <limits.h>
! #if !defined(WIN32) && !defined(OSKIT)
#define X_INCLUDE_PWD_H
#define XOS_USE_XLIB_LOCKING
#include <X11/Xos_r.h>
***************
*** 100,106 ****
{
char *joa; /* job owner attribute */
char *PwName;
! #ifndef WIN32
_Xgetpwparams pwparams;
struct passwd *pw;
pw = _XGetpwuid(getuid(),pwparams);
--- 100,106 ----
{
char *joa; /* job owner attribute */
char *PwName;
! #if !defined(WIN32) && !defined(OSKIT)
_Xgetpwparams pwparams;
struct passwd *pw;
pw = _XGetpwuid(getuid(),pwparams);
diff -crP xc.orig/lib/Xt/Initialize.c xc/lib/Xt/Initialize.c
*** xc.orig/lib/Xt/Initialize.c Sat May 17 06:24:54 1997
--- xc/lib/Xt/Initialize.c Thu Mar 12 18:35:53 1998
***************
*** 72,78 ****
#ifdef XTHREADS
#include <X11/Xthreads.h>
#endif
! #ifndef WIN32
#define X_INCLUDE_PWD_H
#define XOS_USE_XT_LOCKING
#include <X11/Xos_r.h>
--- 72,78 ----
#ifdef XTHREADS
#include <X11/Xthreads.h>
#endif
! #if !defined(WIN32) && !defined(OSKIT)
#define X_INCLUDE_PWD_H
#define XOS_USE_XT_LOCKING
#include <X11/Xos_r.h>
***************
*** 235,240 ****
--- 235,249 ----
dest[len-1] = '\0';
} else
*dest = '\0';
+ #elif defined(OSKIT)
+ String ptr = NULL;
+
+ if ((ptr = getenv("USER"))) {
+ (void) strncpy (dest, ptr, len);
+ dest[len-1] = '\0';
+ } else {
+ (void) strcpy (dest, "OskitUser");
+ }
#else
_Xgetpwparams pwparams;
struct passwd *pw;
***************
*** 258,264 ****
String dest;
int len;
{
! #ifdef WIN32
register char *ptr;
if (ptr = getenv("HOME")) {
--- 267,273 ----
String dest;
int len;
{
! #if defined(WIN32) || defined(OSKIT)
register char *ptr;
if (ptr = getenv("HOME")) {
diff -crP xc.orig/lib/font/util/fontxlfd.c xc/lib/font/util/fontxlfd.c
*** xc.orig/lib/font/util/fontxlfd.c Sun Dec 22 23:02:34 1996
--- xc/lib/font/util/fontxlfd.c Thu Mar 12 18:35:53 1998
***************
*** 43,49 ****
#if !defined(X_NOT_STDC_ENV) || defined(SCO)
#include <stdlib.h>
#endif
! #if defined(X_NOT_STDC_ENV) || (defined(sony) && !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV))
#define NO_LOCALE
#endif
#ifndef NO_LOCALE
--- 43,49 ----
#if !defined(X_NOT_STDC_ENV) || defined(SCO)
#include <stdlib.h>
#endif
! #if defined(X_NOT_STDC_ENV) || (defined(sony) && !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV)) || defined(OSKIT)
#define NO_LOCALE
#endif
#ifndef NO_LOCALE
diff -crP xc.orig/lib/lbxutil/lbx_zlib/lbx_zlib.c xc/lib/lbxutil/lbx_zlib/lbx_zlib.c
*** xc.orig/lib/lbxutil/lbx_zlib/lbx_zlib.c Sat Jan 18 00:18:17 1997
--- xc/lib/lbxutil/lbx_zlib/lbx_zlib.c Fri Mar 13 13:44:15 1998
***************
*** 66,72 ****
#endif
#include "lbxzlib.h"
#include <sys/types.h>
! #if !defined(WIN32) && !defined(Lynx)
#include <sys/param.h>
#endif
#include "lbxbufstr.h"
--- 66,72 ----
#endif
#include "lbxzlib.h"
#include <sys/types.h>
! #if !defined(WIN32) && !defined(Lynx) && !defined(OSKIT)
#include <sys/param.h>
#endif
#include "lbxbufstr.h"
diff -crP xc.orig/lib/lbxutil/lbx_zlib/lbx_zlib_io.c xc/lib/lbxutil/lbx_zlib/lbx_zlib_io.c
*** xc.orig/lib/lbxutil/lbx_zlib/lbx_zlib_io.c Sun Jul 6 01:28:05 1997
--- xc/lib/lbxutil/lbx_zlib/lbx_zlib_io.c Fri Mar 13 13:44:34 1998
***************
*** 33,39 ****
#ifdef X_NOT_STDC_ENV
extern int errno;
#endif
! #if !defined(WIN32) && !defined(Lynx)
#include <sys/param.h>
#endif
#include "lbxbufstr.h"
--- 33,39 ----
#ifdef X_NOT_STDC_ENV
extern int errno;
#endif
! #if !defined(WIN32) && !defined(Lynx) && !defined(OSKIT)
#include <sys/param.h>
#endif
#include "lbxbufstr.h"
diff -crP xc.orig/programs/Imakefile xc/programs/Imakefile
*** xc.orig/programs/Imakefile Sat May 3 03:44:32 1997
--- xc/programs/Imakefile Thu Mar 12 18:35:53 1998
***************
*** 51,56 ****
--- 51,59 ----
#if BuildServersOnly
SUBDIRS = $(XSSRCDIR)
#else
+ #ifdef OSKitArchitecture
+ SUBDIRS = bitmap oclock
+ #else
SUBDIRS = \
appres bdftopcf bitmap $(SCREENSAVESRCDIR) editres fsinfo \
fslsfonts fstobdf \
***************
*** 66,71 ****
--- 69,75 ----
$(XTERMSRCDIR) $(XVIDTUNESRCDIR) xwd xwininfo xwud \
$(XSSRCDIR) $(XASSRCDIR) \
$(LBXPROXYSRCDIR) $(SCRIPTSDIR)
+ #endif
#endif
MakeSubdirs($(SUBDIRS))
diff -crP xc.orig/programs/bitmap/BitEdit.c xc/programs/bitmap/BitEdit.c
*** xc.orig/programs/bitmap/BitEdit.c Wed Apr 27 01:12:37 1994
--- xc/programs/bitmap/BitEdit.c Thu Mar 12 18:35:53 1998
***************
*** 52,57 ****
--- 52,65 ----
#include <X11/bitmaps/xlogo16>
+ #ifdef OSKIT
+ #include <oskit/dev/dev.h>
+ #include <oskit/dev/linux.h>
+ #include <oskit/dev/freebsd.h>
+ #include <oskit/net/freebsd.h>
+ #include <oskit/c/fd.h>
+ #endif
+
static char *usage = "[-options ...] filename\n\
\n\
where options include all standard toolkit options plus:\n\
***************
*** 810,815 ****
--- 818,824 ----
}
}
BWGetFilepath(bitmap_widget, &filename);
+
RetryLoad:
if (PopupDialog(input_dialog, "Load file:",
filename, &filename, XtGrabExclusive) == Okay) {
***************
*** 982,995 ****
--- 991,1016 ----
Arg wargs[2];
Widget w;
Widget radio_group; XtPointer radio_data;
+
+ #ifdef OSKIT
+ fd_set_console();
+ fs_mount("/", (oskit_file_t *)oskit_bmod_init());
+ oskit_linux_init_ethernet_tulip();
+ oskit_dev_probe();
+ oskit_dump_devices();
+ start_network();
+ start_clock();
+ #endif
top_widget = XtInitialize(NULL, "Bitmap",
options, XtNumber(options), &argc, argv);
+ #ifndef OSKIT
if (argc > 2) {
fprintf(stderr, usage);
exit (0);
}
+ #endif
check_mark = XCreateBitmapFromData(XtDisplay(top_widget),
RootWindowOfScreen(XtScreen(top_widget)),
***************
*** 997,1003 ****
--- 1018,1026 ----
xlogo16_width,
xlogo16_height);
+
XtAddActions(actions_table, XtNumber(actions_table));
+
XtOverrideTranslations
(top_widget,
XtParseTranslationTable("<Message>WM_PROTOCOLS: do-quit()"));
***************
*** 1011,1021 ****
fileMenu_widget = XtCreatePopupShell("fileMenu",
simpleMenuWidgetClass,
formy_widget, NULL, 0);
!
fileButton_widget = XtCreateManagedWidget("fileButton",
menuButtonWidgetClass,
formy_widget, NULL, 0);
for (i = 0; i < XtNumber(file_menu); i++) {
w = XtCreateManagedWidget(file_menu[i].name,
(file_menu[i].trap ?
smeBSBObjectClass : smeLineObjectClass),
--- 1034,1045 ----
fileMenu_widget = XtCreatePopupShell("fileMenu",
simpleMenuWidgetClass,
formy_widget, NULL, 0);
!
fileButton_widget = XtCreateManagedWidget("fileButton",
menuButtonWidgetClass,
formy_widget, NULL, 0);
for (i = 0; i < XtNumber(file_menu); i++) {
+
w = XtCreateManagedWidget(file_menu[i].name,
(file_menu[i].trap ?
smeBSBObjectClass : smeLineObjectClass),
***************
*** 1027,1033 ****
file_menu[i].widget = w;
}
!
editMenu_widget = XtCreatePopupShell("editMenu",
simpleMenuWidgetClass,
formy_widget, NULL, 0);
--- 1051,1057 ----
file_menu[i].widget = w;
}
!
editMenu_widget = XtCreatePopupShell("editMenu",
simpleMenuWidgetClass,
formy_widget, NULL, 0);
***************
*** 1055,1060 ****
--- 1079,1086 ----
pane_widget = XtCreateManagedWidget("pane", panedWidgetClass,
parent_widget, NULL, 0);
+
+
form_widget = XtCreateManagedWidget("form", formWidgetClass,
pane_widget, NULL, 0);
***************
*** 1106,1112 ****
XtSetArg(wargs[n], XtNbitmap, BWGetUnzoomedPixmap(bitmap_widget)); n++;
XtSetValues(normal_image_widget, wargs, n);
XtSetValues(inverted_image_widget, wargs, n);
!
XtRealizeWidget(image_shell);
BWNotify(bitmap_widget, FixUp);
--- 1132,1138 ----
XtSetArg(wargs[n], XtNbitmap, BWGetUnzoomedPixmap(bitmap_widget)); n++;
XtSetValues(normal_image_widget, wargs, n);
XtSetValues(inverted_image_widget, wargs, n);
!
XtRealizeWidget(image_shell);
BWNotify(bitmap_widget, FixUp);
***************
*** 1122,1124 ****
--- 1148,1151 ----
XtMainLoop();
}
+
diff -crP xc.orig/programs/oclock/oclock.c xc/programs/oclock/oclock.c
*** xc.orig/programs/oclock/oclock.c Tue Jan 16 03:23:12 1996
--- xc/programs/oclock/oclock.c Thu Mar 12 18:35:53 1998
***************
*** 40,45 ****
--- 40,54 ----
#include "oclock.bit"
#include "oclmask.bit"
+ #ifdef OSKIT
+ #include <oskit/dev/dev.h>
+ #include <oskit/dev/linux.h>
+ #include <oskit/dev/freebsd.h>
+ #include <oskit/net/freebsd.h>
+ #include <oskit/c/fd.h>
+ #endif
+
+
extern void exit();
static void quit();
***************
*** 107,117 ****
Widget clock;
Arg arg[2];
int i;
!
toplevel = XtOpenApplication(&xtcontext, "Clock",
options, XtNumber(options), &argc, argv, NULL,
sessionShellWidgetClass, NULL, 0);
if (argc != 1) usage();
XtAddCallback(toplevel, XtNsaveCallback, save, NULL);
XtAddCallback(toplevel, XtNdieCallback, die, NULL);
--- 116,138 ----
Widget clock;
Arg arg[2];
int i;
!
! #ifdef OSKIT
! fd_set_console();
! fs_mount("/", (oskit_file_t *)oskit_bmod_init());
! oskit_linux_init_ethernet_tulip();
! oskit_dev_probe();
! oskit_dump_devices();
! start_network();
! start_clock();
! #endif
!
toplevel = XtOpenApplication(&xtcontext, "Clock",
options, XtNumber(options), &argc, argv, NULL,
sessionShellWidgetClass, NULL, 0);
+ #ifndef OSKIT
if (argc != 1) usage();
+ #endif
XtAddCallback(toplevel, XtNsaveCallback, save, NULL);
XtAddCallback(toplevel, XtNdieCallback, die, NULL);
diff -crP xc.orig/programs/xlogo/xlogo.c xc/programs/xlogo/xlogo.c
*** xc.orig/programs/xlogo/xlogo.c Tue Jan 16 08:09:23 1996
--- xc/programs/xlogo/xlogo.c Thu Mar 12 18:35:53 1998
***************
*** 35,40 ****
--- 35,48 ----
#include <X11/extensions/XKBbells.h>
#endif
+ #ifdef OSKIT
+ #include <oskit/fdev/fdev.h>
+ #include <oskit/fdev/linux.h>
+ #include <oskit/fdev/freebsd.h>
+ #include <oskit/net/freebsd.h>
+ #include <oskit/c/fd.h>
+ #endif
+
extern void exit();
static void quit();
***************
*** 108,119 ****
--- 116,138 ----
Widget toplevel;
XtAppContext app_con;
+ #ifdef OSKIT
+ fd_set_console();
+ fdev_linux_init_ethernet_tulip();
+ fdev_probe();
+ fdev_dump_devices();
+ start_network();
+ start_clock();
+ #endif
+
toplevel = XtOpenApplication(&app_con, "XLogo",
options, XtNumber(options),
&argc, argv, fallback_resources,
sessionShellWidgetClass, NULL, ZERO);
+ #if 0
if (argc != 1)
Syntax(toplevel, argv[0]);
+ #endif
XtAddCallback(toplevel, XtNsaveCallback, save, NULL);
XtAddCallback(toplevel, XtNdieCallback, die, NULL);
***************
*** 127,132 ****
--- 146,152 ----
False);
(void) XSetWMProtocols (XtDisplay(toplevel), XtWindow(toplevel),
&wm_delete_window, 1);
+
XtAppMainLoop(app_con);
}
|