├── Makefile ├── README ├── XTrap ├── Imakefile ├── Makefile ├── xf86XTrapModule.c ├── xtrapddmi.c ├── xtrapdi.c ├── xtrapdiswp.c └── xtrapditbl.c ├── Xext ├── EVI.c ├── EVIstruct.h ├── Imakefile ├── Makefile ├── SecurityPolicy ├── bigreq.c ├── cup.c ├── dgaproc.h ├── dpms.c ├── dpmsproc.h ├── dpmsstubs.c ├── extmod │ ├── EVI.c │ ├── Imakefile │ ├── Makefile │ ├── bigreq.c │ ├── cup.c │ ├── dpms.c │ ├── dpmsstr.h │ ├── mitmisc.c │ ├── modinit.c │ ├── sampleEVI.c │ ├── saver.c │ ├── shape.c │ ├── sync.c │ ├── xcmisc.c │ ├── xf86dga.c │ ├── xf86dga2.c │ ├── xf86misc.c │ ├── xf86vmode.c │ ├── xvdisp.c │ ├── xvmain.c │ ├── xvmc.c │ └── xvmod.c ├── fontcache.c ├── mbuf.c ├── mbufbf.c ├── mbufpx.c ├── mitmisc.c ├── panoramiX.c ├── panoramiX.h ├── panoramiXSwap.c ├── panoramiXprocs.c ├── panoramiXsrv.h ├── sampleEVI.c ├── saver.c ├── shape.c ├── shm.c ├── sleepuntil.c ├── sleepuntil.h ├── sync.c ├── vidmodeproc.h ├── xcmisc.c ├── xf86bigfont.c ├── xf86dga.c ├── xf86dga2.c ├── xf86misc.c ├── xf86miscproc.h ├── xf86vmode.c ├── xprint.c ├── xtest.c ├── xtest1.frags ├── xtest1dd.c ├── xtest1dd.h ├── xtest1di.c ├── xvdisp.c ├── xvdix.h ├── xvmain.c ├── xvmc.c ├── xvmcext.h ├── xvmod.c └── xvmodproc.h ├── Xprint ├── AttrValid.h ├── DiPrint.h ├── Oid.h ├── OidDefs.h ├── Print.h ├── Printstr.h └── attributes.h ├── Xserver.man ├── cfb ├── Imakefile ├── cfb.h ├── cfb16.h ├── cfb24.h ├── cfb32.h ├── cfb8bit.c ├── cfb8bit.h ├── cfb8line.c ├── cfballpriv.c ├── cfbbitblt.c ├── cfbblt.c ├── cfbbres.c ├── cfbbresd.c ├── cfbbstore.c ├── cfbcmap.c ├── cfbcppl.c ├── cfbfillarc.c ├── cfbfillrct.c ├── cfbfillsp.c ├── cfbgc.c ├── cfbgetsp.c ├── cfbglblt8.c ├── cfbhrzvert.c ├── cfbigblt8.c ├── cfbimage.c ├── cfbline.c ├── cfbmap.h ├── cfbmodule.c ├── cfbmskbits.c ├── cfbmskbits.h ├── cfbpixmap.c ├── cfbply1rct.c ├── cfbpntwin.c ├── cfbpolypnt.c ├── cfbpush8.c ├── cfbrctstp8.c ├── cfbrrop.c ├── cfbrrop.h ├── cfbscrinit.c ├── cfbsetsp.c ├── cfbsolid.c ├── cfbteblt8.c ├── cfbtegblt.c ├── cfbtile32.c ├── cfbtileodd.c ├── cfbunmap.h ├── cfbwindow.c ├── cfbzerarc.c ├── stip68kgnu.h ├── stipmips.s ├── stipple68k.s ├── stipsparc.s └── stipsprc32.s ├── changelog ├── dix ├── BuiltInAtoms ├── CHANGES ├── Imakefile ├── Makefile ├── atom.c ├── buildatoms ├── colormap.c ├── cursor.c ├── devices.c ├── dispatch.c ├── dispatch.h ├── dixfonts.c ├── dixutils.c ├── events.c ├── extension.c ├── ffs.c ├── gc.c ├── globals.c ├── glyphcurs.c ├── grabs.c ├── initatoms.c ├── main.c ├── pixmap.c ├── privates.c ├── property.c ├── resource.c ├── swaprep.c ├── swapreq.c ├── tables.c ├── window.c └── xpstubs.c ├── fb ├── Imakefile ├── Makefile ├── fb.h ├── fb24_32.c ├── fb24_32.h ├── fballpriv.c ├── fbarc.c ├── fbbits.c ├── fbbits.h ├── fbblt.c ├── fbbltone.c ├── fbbstore.c ├── fbcmap.c ├── fbcompose.c ├── fbcopy.c ├── fbfill.c ├── fbfillrect.c ├── fbfillsp.c ├── fbgc.c ├── fbgetsp.c ├── fbglyph.c ├── fbimage.c ├── fbline.c ├── fbmodule.c ├── fboverlay.c ├── fboverlay.h ├── fbpict.c ├── fbpict.h ├── fbpixmap.c ├── fbpoint.c ├── fbpush.c ├── fbrop.h ├── fbscreen.c ├── fbseg.c ├── fbsetsp.c ├── fbsolid.c ├── fbstipple.c ├── fbtile.c ├── fbutil.c └── fbwindow.c ├── hw ├── Imakefile ├── kdrive │ ├── Imakefile │ ├── Kdrive.tmpl │ ├── Makefile │ ├── Xkdrive.man │ ├── fbdev │ │ ├── Imakefile │ │ ├── Makefile │ │ ├── Xfbdev.man │ │ ├── fbdev.c │ │ ├── fbdev.h │ │ └── fbinit.c │ ├── kaa.c │ ├── kasync.c │ ├── kcmap.c │ ├── kcolor.c │ ├── kcurscol.c │ ├── kdrive.c │ ├── kdrive.h │ ├── kinfo.c │ ├── kinput.c │ ├── kkeymap.h │ ├── kmap.c │ ├── kmode.c │ ├── knoop.c │ ├── kpict.c │ ├── kshadow.c │ ├── ktest.c │ ├── kxv.c │ ├── kxv.h │ ├── linux │ │ ├── Imakefile │ │ ├── Makefile │ │ ├── agp.c │ │ ├── agp.h │ │ ├── bus.c │ │ ├── keyboard.c │ │ ├── linux.c │ │ ├── mouse.c │ │ ├── ms.c │ │ └── ps2.c │ ├── vesa │ │ ├── Imakefile │ │ ├── Makefile │ │ ├── Xvesa.man │ │ ├── vbe.c │ │ ├── vbe.h │ │ ├── vesa.c │ │ ├── vesa.h │ │ ├── vesainit.c │ │ ├── vga.c │ │ ├── vga.h │ │ ├── vm86.c │ │ └── vm86.h │ ├── vga.c │ └── vga.h └── xfree86 │ ├── common │ ├── xf86.h │ ├── xf86Module.h │ ├── xf86Opt.h │ └── xf86str.h │ ├── os-support │ └── linux │ │ └── agpgart.h │ └── xf86Version.h ├── include ├── Imakefile ├── X.h ├── XI.h ├── XIproto.h ├── XKB.h ├── XKBproto.h ├── XKBsrv.h ├── XKBstr.h ├── Xmd.h ├── Xproto.h ├── bstore.h ├── bstorestr.h ├── closestr.h ├── closure.h ├── colormap.h ├── colormapst.h ├── cursor.h ├── cursorstr.h ├── dix.h ├── dixevents.h ├── dixfont.h ├── dixfontstr.h ├── dixgrabs.h ├── dixstruct.h ├── exevents.h ├── extension.h ├── extinit.h ├── extnsionst.h ├── gc.h ├── gcstruct.h ├── globals.h ├── input.h ├── inputstr.h ├── lbxserve.h ├── misc.h ├── miscstruct.h ├── opaque.h ├── os.h ├── osdep.h ├── pixmap.h ├── pixmapstr.h ├── property.h ├── propertyst.h ├── region.h ├── regionstr.h ├── resource.h ├── rgb.h ├── screenint.h ├── scrnintstr.h ├── selection.h ├── servermd.h ├── shmstr.h ├── site.h ├── swaprep.h ├── swapreq.h ├── validate.h ├── window.h └── windowstr.h ├── init ├── AUTHORS ├── COPYING ├── ChangeLog ├── Makefile ├── NEWS ├── README ├── README.upstream ├── xinit.1 ├── xinit.c └── xinitrc ├── make-tarball.sh ├── mfb └── maskbits.h ├── mi ├── Imakefile ├── Makefile ├── cbrt.c ├── mi.h ├── miarc.c ├── mibank.c ├── mibank.h ├── mibitblt.c ├── mibstore.c ├── mibstore.h ├── mibstorest.h ├── miclipn.c ├── micmap.c ├── micmap.h ├── micoord.h ├── micursor.c ├── midash.c ├── midispcur.c ├── mieq.c ├── miexpose.c ├── mifillarc.c ├── mifillarc.h ├── mifillrct.c ├── mifpoly.h ├── mifpolycon.c ├── migc.c ├── migc.h ├── miglblt.c ├── miinitext.c ├── miline.h ├── mioverlay.c ├── mioverlay.h ├── mipointer.c ├── mipointer.h ├── mipointrst.h ├── mipoly.c ├── mipoly.h ├── mipolycon.c ├── mipolygen.c ├── mipolypnt.c ├── mipolyrect.c ├── mipolyseg.c ├── mipolytext.c ├── mipolyutil.c ├── mipushpxl.c ├── miregion.c ├── miscanfill.h ├── miscrinit.c ├── mispans.c ├── mispans.h ├── misprite.c ├── misprite.h ├── mispritest.h ├── mistruct.h ├── mivalidate.h ├── mivaltree.c ├── miwideline.c ├── miwideline.h ├── miwindow.c ├── mizerarc.c ├── mizerarc.h ├── mizerclip.c └── mizerline.c ├── miext ├── layer │ ├── Imakefile │ ├── Makefile │ ├── layer.h │ ├── layergc.c │ ├── layerinit.c │ ├── layerpict.c │ ├── layerstr.h │ └── layerwin.c └── shadow │ ├── Imakefile │ ├── Makefile │ ├── shadow.c │ ├── shadow.h │ ├── shalloc.c │ ├── shmodule.c │ ├── shpacked.c │ ├── shplanar.c │ ├── shplanar8.c │ ├── shrot16pack.c │ ├── shrot16pack_180.c │ ├── shrot16pack_270.c │ ├── shrot16pack_90.c │ ├── shrot32pack.c │ ├── shrot32pack_180.c │ ├── shrot32pack_270.c │ ├── shrot32pack_90.c │ ├── shrot8pack.c │ ├── shrot8pack_180.c │ ├── shrot8pack_270.c │ ├── shrot8pack_90.c │ ├── shrotate.c │ └── shrotpack.h ├── os ├── Imakefile ├── Makefile ├── WaitFor.c ├── Xtrans.c ├── Xtransint.h ├── Xtranssock.c ├── Xtransutil.c ├── access.c ├── auth.c ├── connection.c ├── decompress.c ├── genalloca.c ├── hpsocket.c ├── io.c ├── k5auth.c ├── lbxio.c ├── mitauth.c ├── oscolor.c ├── osdep.h ├── osinit.c ├── rpcauth.c ├── secauth.c ├── transport.c ├── utils.c ├── xalloc.c ├── xdmauth.c └── xdmcp.c ├── randr ├── Imakefile ├── Makefile ├── mirandr.c ├── randr.c ├── randr.h ├── randrproto.h └── randrstr.h ├── record ├── Makefile ├── record.c ├── record.lo ├── set.c ├── set.h └── set.lo ├── render ├── Imakefile ├── Makefile ├── glyph.c ├── glyphstr.h ├── miglyph.c ├── miindex.c ├── mipict.c ├── mipict.h ├── mirect.c ├── picture.c ├── picture.h ├── picturestr.h └── render.c ├── standard_definitions.mk └── version.txt /Makefile: -------------------------------------------------------------------------------- 1 | 2 | include standard_definitions.mk 3 | 4 | DEFS= -DNOERROR 5 | 6 | CFLAGS= -I.. -I../.. -I../../.. -I./include -I./common -I./render -I./Xext -I./lbx -I./fb -I./mi -I./miext/shadow -I./hw/kdrive -I./miext/layer -I./os $(COMMONDEFS) $(DEFS) 7 | 8 | OBJS= 9 | all: core Xfbdev 10 | 11 | core: 12 | cd render; make 13 | cd dix; make 14 | cd os; make 15 | cd mi; make 16 | cd Xext; make 17 | cd Xext/extmod; make 18 | cd XTrap; make 19 | cd hw/kdrive; make 20 | cd hw/kdrive/linux; make 21 | cd fb; make 22 | cd miext/shadow; make 23 | cd miext/layer; make 24 | cd randr; make 25 | cd record; make 26 | 27 | Xvesa: core 28 | cd hw/kdrive/vesa; make 29 | $(CC) $(CFLAGs) $(DEFS) $(LDFLAGS) -o Xvesa dix/libdix.a os/libos.a hw/kdrive/vesa/libvesa.a miext/layer/liblayer.a hw/kdrive/libkdrive.a hw/kdrive/linux/liblinux.a miext/shadow/libshadow.a fb/libfb.a mi/libmi.a Xext/libext.a Xext/extmod/libextmod.a XTrap/libxtrap.a randr/librandr.a render/librender.a record/librecord.a $(LINKDIR) -lXfont -lXinerama -lX11 -lXdmcp -lz -lm 30 | 31 | Xfbdev: core 32 | cd hw/kdrive/fbdev; make 33 | $(CC) $(CFLAGs) $(DEFS) $(LDFLAGS) -o Xfbdev dix/libdix.a os/libos.a hw/kdrive/fbdev/libfbdev.a miext/layer/liblayer.a hw/kdrive/libkdrive.a hw/kdrive/linux/liblinux.a miext/shadow/libshadow.a fb/libfb.a mi/libmi.a Xext/libext.a Xext/extmod/libextmod.a XTrap/libxtrap.a randr/librandr.a render/librender.a record/librecord.a $(LINKDIR) -lXfont -lXinerama -lX11 -lXdmcp -lz -lm 34 | 35 | xinit: 36 | cd init; make 37 | $(CC) $(CFLAGs) $(DEFS) $(LDFLAGS) -o xinit init/xinit.o -lX11 38 | 39 | clean: 40 | cd render; make clean 41 | cd dix; make clean 42 | cd os; make clean 43 | cd mi; make clean 44 | cd Xext; make clean 45 | cd Xext/extmod; make clean 46 | cd XTrap; make clean 47 | cd hw/kdrive; make clean 48 | cd hw/kdrive/linux; make clean 49 | cd fb; make clean; cd .. 50 | cd hw/kdrive/vesa; make clean 51 | cd miext/shadow; make clean 52 | cd miext/layer; make clean 53 | cd randr; make clean 54 | cd hw/kdrive/fbdev; make clean 55 | cd record; make clean 56 | cd init; make clean 57 | rm -f Xvesa 58 | rm -f Xfbdev 59 | rm -f xinit 60 | 61 | install: 62 | install -D -m 755 Xfbdev $(DESTDIR)/$(BINDIR)/Xfbdev 63 | install -m 755 xinit $(DESTDIR)/$(BINDIR)/xinit 64 | ln -s $(BINDIR)/Xfbdev $(DESTDIR)/$(BINDIR)/X 65 | install -D -m 644 init/xinit.1 $(DESTDIR)/$(MANDIR)/man1/xinit.1 66 | install -D -m 644 README $(DESTDIR)/$(DOCDIR)/tinyxserver/README 67 | install -m 644 changelog $(DESTDIR)/$(DOCDIR)/tinyxserver/changelog 68 | install -D -m 644 init/README.upstream $(DESTDIR)/$(DOCDIR)/xinit/README 69 | install -m 644 init/ChangeLog $(DESTDIR)/$(DOCDIR)/xinit/ChangeLog 70 | install -m 644 init/AUTHORS $(DESTDIR)/$(DOCDIR)/xinit/AUTHORS 71 | install -m 644 init/COPYING $(DESTDIR)/$(DOCDIR)/xinit/COPYING 72 | 73 | install-fonts: 74 | cd fonts && for i in *.pcf fonts.alias; do install -D -m 644 $$i $(DESTDIR)/$(FONTDIR)/misc/$$i; done 75 | install -D -m 644 fonts/AUTHORS.misc $(DESTDIR)/$(DOCDIR)/font-misc-misc/AUTHORS 76 | install -m 644 fonts/COPYING.misc $(DESTDIR)/$(DOCDIR)/font-misc-misc/COPYING 77 | install -D -m 644 fonts/COPYING.cursor $(DESTDIR)/$(DOCDIR)/font-cursor-misc/COPYING 78 | install -D -m 644 fonts/COPYING.alias $(DESTDIR)/$(DOCDIR)/font-alias/COPYING 79 | 80 | tarball: clean 81 | ./make-tarball.sh 82 | 83 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | tiny-Xserver-0.03 2 | 3 | Based on X11-tiny-1.2.61 but modified by goingnuts to enable build of more 4 | extensions. 5 | 6 | Further modified by Isaac Dunham with backports of CVE fixes and a few 7 | portability changes. Builds on musl OOB. 8 | 9 | 10 | -------------------------------------------------------------------------------- /XTrap/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $XFree86: xc/programs/Xserver/XTrap/Imakefile,v 1.1 2001/11/02 23:29:29 dawes Exp $ 2 | 3 | #if DoLoadableServer 4 | #define IHaveSubdirs 5 | #endif 6 | 7 | #include 8 | 9 | #if DoLoadableServer 10 | SUBDIRS = module 11 | #endif 12 | SRCS = xtrapddmi.c xtrapdi.c xtrapdiswp.c xtrapditbl.c 13 | OBJS = xtrapddmi.o xtrapdi.o xtrapdiswp.o xtrapditbl.o 14 | INCLUDES = -I../include -I$(EXTINCSRC) -I$(XINCLUDESRC) 15 | 16 | NormalLibraryTarget(xtrap,$(OBJS)) 17 | LintLibraryTarget(xtrap,$(SRCS)) 18 | NormalLintTarget($(SRCS)) 19 | 20 | NormalLibraryObjectRule() 21 | 22 | #if DoLoadableServer 23 | MakeSubdirs($(SUBDIRS)) 24 | DependSubdirs($(SUBDIRS)) 25 | #endif 26 | 27 | DependTarget() 28 | -------------------------------------------------------------------------------- /XTrap/Makefile: -------------------------------------------------------------------------------- 1 | include ../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../include -I../mi -I../fb -I../hw/kdrive $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | libICE.a: $(OBJS:.c=.o) 10 | ar cr libxtrap.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: libxtrap.a 14 | cp -f libxtrap.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /XTrap/xf86XTrapModule.c: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/XTrap/xf86XTrapModule.c,v 1.1 2001/11/02 23:29:29 dawes Exp $ */ 2 | /* This is the xf86 module code for the DEC_XTRAP extension. 3 | */ 4 | 5 | #include "../hw/xfree86/common/xf86Module.h" 6 | 7 | #include 8 | 9 | extern void DEC_XTRAPInit(INITARGS); 10 | 11 | #ifdef XFree86LOADER 12 | 13 | static MODULESETUPPROTO(xtrapSetup); 14 | 15 | ExtensionModule xtrapExt = 16 | { 17 | DEC_XTRAPInit, 18 | XTrapExtName, 19 | NULL, 20 | NULL, 21 | NULL 22 | }; 23 | 24 | static XF86ModuleVersionInfo xtrapVersRec = 25 | { 26 | "xtrap", 27 | MODULEVENDORSTRING, 28 | MODINFOSTRING1, 29 | MODINFOSTRING2, 30 | XF86_VERSION_CURRENT, 31 | 1, 0, 0, 32 | ABI_CLASS_EXTENSION, /* needs the server extension ABI */ 33 | ABI_EXTENSION_VERSION, 34 | MOD_CLASS_EXTENSION, 35 | {0,0,0,0} 36 | }; 37 | 38 | XF86ModuleData xtrapModuleData = { &xtrapVersRec, xtrapSetup, NULL }; 39 | 40 | static pointer 41 | xtrapSetup(pointer module, pointer opts, int *errmaj, int *errmin) { 42 | LoadExtension(&xtrapExt, FALSE); 43 | /* Need a non-NULL return value to indicate success */ 44 | return (pointer)1; 45 | } 46 | 47 | #endif /* XFree86LOADER */ 48 | -------------------------------------------------------------------------------- /Xext/EVIstruct.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: EVIstruct.h,v 1.3 2000/08/17 19:47:55 cpqbld Exp $ */ 2 | /************************************************************ 3 | Copyright (c) 1997 by Silicon Graphics Computer Systems, Inc. 4 | Permission to use, copy, modify, and distribute this 5 | software and its documentation for any purpose and without 6 | fee is hereby granted, provided that the above copyright 7 | notice appear in all copies and that both that copyright 8 | notice and this permission notice appear in supporting 9 | documentation, and that the name of Silicon Graphics not be 10 | used in advertising or publicity pertaining to distribution 11 | of the software without specific prior written permission. 12 | Silicon Graphics makes no representation about the suitability 13 | of this software for any purpose. It is provided "as is" 14 | without any express or implied warranty. 15 | SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 16 | SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 17 | AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON 18 | GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 19 | DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 20 | DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 21 | OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH 22 | THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 | ********************************************************/ 24 | #ifndef EVI_STRUCT_H 25 | #define EVI_STRUCT_H 26 | /* 27 | ****************************************************************************** 28 | ** Per-ddx data 29 | ****************************************************************************** 30 | */ 31 | typedef int (*GetVisualInfoProc)( 32 | #if NeedNestedPrototypes 33 | VisualID32*, 34 | int, 35 | xExtendedVisualInfo**, 36 | int*, 37 | VisualID32**, 38 | int* 39 | #endif 40 | ); 41 | typedef void (*FreeVisualInfoProc)( 42 | #if NeedNestedPrototypes 43 | xExtendedVisualInfo*, 44 | VisualID32* 45 | #endif 46 | ); 47 | typedef struct _EviPrivRec { 48 | GetVisualInfoProc getVisualInfo; 49 | FreeVisualInfoProc freeVisualInfo; 50 | } EviPrivRec, *EviPrivPtr; 51 | extern EviPrivPtr eviDDXInit(); 52 | extern void eviDDXReset(); 53 | #endif /* EVI_STRUCT_H */ 54 | -------------------------------------------------------------------------------- /Xext/Makefile: -------------------------------------------------------------------------------- 1 | include ../standard_definitions.mk 2 | 3 | #-DMITMISC -DXTRAP -DXCMISC -DFONTCACHE 4 | DEFS= -DBIGREQS 5 | 6 | CFLAGS= -I../include -I../mi -I../fb -I../hw/kdrive -I../render $(COMMONDEFS) $(DEFS) 7 | 8 | #OBJS=$(wildcard *.c) 9 | ifeq ($(PANORAMIX),-DPANORAMIX) 10 | OBJS1=panoramiX.c panoramiXSwap.c panoramiXprocs.c 11 | endif 12 | 13 | ifeq ($(SHAPE),-DSHAPE) 14 | OBJS2=shape.c 15 | endif 16 | 17 | ifeq ($(DPMS),-DDPMSExtension) 18 | OBJS3=dpms.c 19 | endif 20 | 21 | OBJS=$(OBJS1) $(OBJS2) $(OBJS3) bigreq.c mbuf.c saver.c xf86dga2.c xtest.c cup.c mbufpx.c xf86dga.c xvdisp.c mitmisc.c shm.c xf86misc.c xvmain.c dpmsstubs.c sleepuntil.c xf86vmode.c xvmc.c EVI.c sync.c xprint.c xvmod.c fontcache.c xcmisc.c xtest1dd.c mbufbf.c sampleEVI.c xf86bigfont.c xtest1di.c 22 | 23 | 24 | libICE.a: $(OBJS:.c=.o) 25 | ar cr libext.a $(OBJS:.c=.o) 26 | clean: 27 | rm -f *.o *.a 28 | install: libext.a 29 | cp -f libext.a $(LIBDIR) 30 | depend: 31 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /Xext/SecurityPolicy: -------------------------------------------------------------------------------- 1 | version-1 2 | 3 | # $Xorg: SecurityPolicy,v 1.3 2000/08/17 19:47:56 cpqbld Exp $ 4 | 5 | # The site policy fields are interpreted by the XC-QUERY-SECURITY-1 6 | # authorization protocol. The values are arbitrary and site-specific. 7 | # Refer to the Security Extension Specification for the usage of the policies. 8 | #sitepolicy A 9 | #sitepolicy B 10 | #sitepolicy C 11 | 12 | # Property access rules: 13 | # property 14 | # ::= any | root | 15 | # ::= | = 16 | # :== [ | | ]* 17 | # :== r | w | d 18 | # r read 19 | # w write 20 | # d delete 21 | # :== a | i | e 22 | # a allow 23 | # i ignore 24 | # e error 25 | 26 | # Allow reading of application resources, but not writing. 27 | property RESOURCE_MANAGER root ar iw 28 | property SCREEN_RESOURCES root ar iw 29 | 30 | # Ignore attempts to use cut buffers. Giving errors causes apps to crash, 31 | # and allowing access may give away too much information. 32 | property CUT_BUFFER0 root irw 33 | property CUT_BUFFER1 root irw 34 | property CUT_BUFFER2 root irw 35 | property CUT_BUFFER3 root irw 36 | property CUT_BUFFER4 root irw 37 | property CUT_BUFFER5 root irw 38 | property CUT_BUFFER6 root irw 39 | property CUT_BUFFER7 root irw 40 | 41 | # If you are using Motif, you probably want these. 42 | property _MOTIF_DEFAULT_BINDINGS root ar iw 43 | property _MOTIF_DRAG_WINDOW root ar iw 44 | property _MOTIF_DRAG_TARGETS any ar iw 45 | property _MOTIF_DRAG_ATOMS any ar iw 46 | property _MOTIF_DRAG_ATOM_PAIRS any ar iw 47 | 48 | # If you are running CDE you also need these 49 | property _MOTIF_WM_INFO root arw 50 | property TT_SESSION root irw 51 | property WM_ICON_SIZE root irw 52 | property "SDT Pixel Set" any irw 53 | 54 | # The next two rules let xwininfo -tree work when untrusted. 55 | property WM_NAME any ar 56 | 57 | # Allow read of WM_CLASS, but only for windows with WM_NAME. 58 | # This might be more restrictive than necessary, but demonstrates 59 | # the facility, and is also an attempt to 60 | # say "top level windows only." 61 | property WM_CLASS WM_NAME ar 62 | 63 | # These next three let xlsclients work untrusted. Think carefully 64 | # before including these; giving away the client machine name and command 65 | # may be exposing too much. 66 | property WM_STATE WM_NAME ar 67 | property WM_CLIENT_MACHINE WM_NAME ar 68 | property WM_COMMAND WM_NAME ar 69 | 70 | # To let untrusted clients use the standard colormaps created by 71 | # xstdcmap, include these lines. 72 | property RGB_DEFAULT_MAP root ar 73 | property RGB_BEST_MAP root ar 74 | property RGB_RED_MAP root ar 75 | property RGB_GREEN_MAP root ar 76 | property RGB_BLUE_MAP root ar 77 | property RGB_GRAY_MAP root ar 78 | 79 | # To let untrusted clients use the color management database created 80 | # by xcmsdb, include these lines. 81 | property XDCCC_LINEAR_RGB_CORRECTION root ar 82 | property XDCCC_LINEAR_RGB_MATRICES root ar 83 | property XDCCC_GRAY_SCREENWHITEPOINT root ar 84 | property XDCCC_GRAY_CORRECTION root ar 85 | 86 | # To let untrusted clients use the overlay visuals that many vendors 87 | # support, include this line. 88 | property SERVER_OVERLAY_VISUALS root ar 89 | -------------------------------------------------------------------------------- /Xext/bigreq.c: -------------------------------------------------------------------------------- 1 | /* $Xorg: bigreq.c,v 1.4 2001/02/09 02:04:32 xorgcvs Exp $ */ 2 | /* 3 | 4 | Copyright 1992, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included 13 | in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 | OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | Except as contained in this notice, the name of The Open Group shall 24 | not be used in advertising or otherwise to promote the sale, use or 25 | other dealings in this Software without prior written authorization 26 | from The Open Group. 27 | 28 | */ 29 | /* $XFree86: xc/programs/Xserver/Xext/bigreq.c,v 3.5 2001/12/14 19:58:48 dawes Exp $ */ 30 | 31 | #define NEED_EVENTS 32 | #include 33 | #include 34 | #include "misc.h" 35 | #include "os.h" 36 | #include "dixstruct.h" 37 | #include "extnsionst.h" 38 | #include 39 | 40 | static unsigned char XBigReqCode; 41 | 42 | static void BigReqResetProc( 43 | #if NeedFunctionPrototypes 44 | ExtensionEntry * /* extEntry */ 45 | #endif 46 | ); 47 | 48 | static DISPATCH_PROC(ProcBigReqDispatch); 49 | 50 | void 51 | BigReqExtensionInit() 52 | { 53 | ExtensionEntry *extEntry; 54 | 55 | if ((extEntry = AddExtension(XBigReqExtensionName, 0, 0, 56 | ProcBigReqDispatch, ProcBigReqDispatch, 57 | BigReqResetProc, StandardMinorOpcode)) != 0) 58 | XBigReqCode = (unsigned char)extEntry->base; 59 | DeclareExtensionSecurity(XBigReqExtensionName, TRUE); 60 | } 61 | 62 | /*ARGSUSED*/ 63 | static void 64 | BigReqResetProc (extEntry) 65 | ExtensionEntry *extEntry; 66 | { 67 | } 68 | 69 | static int 70 | ProcBigReqDispatch (client) 71 | register ClientPtr client; 72 | { 73 | REQUEST(xBigReqEnableReq); 74 | xBigReqEnableReply rep; 75 | register int n; 76 | 77 | if (client->swapped) { 78 | swaps(&stuff->length, n); 79 | } 80 | if (stuff->brReqType != X_BigReqEnable) 81 | return BadRequest; 82 | REQUEST_SIZE_MATCH(xBigReqEnableReq); 83 | client->big_requests = TRUE; 84 | rep.type = X_Reply; 85 | rep.length = 0; 86 | rep.sequenceNumber = client->sequence; 87 | rep.max_request_size = MAX_BIG_REQUEST_SIZE; 88 | if (client->swapped) { 89 | swaps(&rep.sequenceNumber, n); 90 | swapl(&rep.max_request_size, n); 91 | } 92 | WriteToClient(client, sizeof(xBigReqEnableReply), (char *)&rep); 93 | return(client->noClientException); 94 | } 95 | -------------------------------------------------------------------------------- /Xext/dpmsproc.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/Xext/dpmsproc.h,v 1.3 2001/10/28 03:32:50 tsi Exp $ */ 2 | 3 | /* Prototypes for functions that the DDX must provide */ 4 | 5 | #ifndef _DPMSPROC_H_ 6 | #define _DPMSPROC_H_ 7 | 8 | void DPMSSet(int level); 9 | int DPMSGet(int *level); 10 | Bool DPMSSupported(void); 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Xext/dpmsstubs.c: -------------------------------------------------------------------------------- 1 | /* $Xorg: dpmsstubs.c,v 1.3 2000/08/17 19:47:56 cpqbld Exp $ */ 2 | /***************************************************************** 3 | 4 | Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 | DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, 19 | BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 21 | IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | Except as contained in this notice, the name of Digital Equipment Corporation 24 | shall not be used in advertising or otherwise to promote the sale, use or other 25 | dealings in this Software without prior written authorization from Digital 26 | Equipment Corporation. 27 | 28 | ******************************************************************/ 29 | /* $XFree86: xc/programs/Xserver/Xext/dpmsstubs.c,v 3.4 2001/01/17 22:13:15 dawes Exp $ */ 30 | 31 | typedef int Bool; 32 | 33 | #define FALSE 0 34 | 35 | Bool DPMSSupported(void) 36 | { 37 | return FALSE; 38 | } 39 | 40 | int DPSMGet(int *level) 41 | { 42 | return -1; 43 | } 44 | 45 | void DPMSSet(int level) 46 | { 47 | 48 | } 49 | -------------------------------------------------------------------------------- /Xext/extmod/EVI.c: -------------------------------------------------------------------------------- 1 | ../EVI.c -------------------------------------------------------------------------------- /Xext/extmod/Makefile: -------------------------------------------------------------------------------- 1 | include ../../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../../include -I../../mi -I../../fb -I../../hw/kdrive -I../../Xext -I../ $(COMMONDEFS) $(DEFS) 6 | 7 | #OBJS=$(wildcard *.c) 8 | ifeq ($(SHAPE),-DSHAPE) 9 | OBJS2=shape.c 10 | endif 11 | 12 | ifeq ($(DPMS),-DDPMSExtension) 13 | OBJS3=dpms.c 14 | endif 15 | 16 | OBJS=$(OBJS2) $(OBJS3) bigreq.c EVI.c sampleEVI.c sync.c xf86dga.c xvdisp.c xvmod.c cup.c mitmisc.c saver.c xcmisc.c xf86misc.c xvmain.c modinit.c xf86dga2.c xf86vmode.c xvmc.c 17 | 18 | 19 | 20 | 21 | libextmod.a: $(OBJS:.c=.o) 22 | ar cr libextmod.a $(OBJS:.c=.o) 23 | clean: 24 | rm -f *.o *.a 25 | install: libextmod.a 26 | cp -f libextmod.a $(LIBDIR) 27 | depend: 28 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /Xext/extmod/bigreq.c: -------------------------------------------------------------------------------- 1 | ../bigreq.c -------------------------------------------------------------------------------- /Xext/extmod/cup.c: -------------------------------------------------------------------------------- 1 | ../cup.c -------------------------------------------------------------------------------- /Xext/extmod/dpms.c: -------------------------------------------------------------------------------- 1 | ../dpms.c -------------------------------------------------------------------------------- /Xext/extmod/mitmisc.c: -------------------------------------------------------------------------------- 1 | ../mitmisc.c -------------------------------------------------------------------------------- /Xext/extmod/sampleEVI.c: -------------------------------------------------------------------------------- 1 | ../sampleEVI.c -------------------------------------------------------------------------------- /Xext/extmod/saver.c: -------------------------------------------------------------------------------- 1 | ../saver.c -------------------------------------------------------------------------------- /Xext/extmod/shape.c: -------------------------------------------------------------------------------- 1 | ../shape.c -------------------------------------------------------------------------------- /Xext/extmod/sync.c: -------------------------------------------------------------------------------- 1 | ../sync.c -------------------------------------------------------------------------------- /Xext/extmod/xcmisc.c: -------------------------------------------------------------------------------- 1 | ../xcmisc.c -------------------------------------------------------------------------------- /Xext/extmod/xf86dga.c: -------------------------------------------------------------------------------- 1 | ../xf86dga.c -------------------------------------------------------------------------------- /Xext/extmod/xf86dga2.c: -------------------------------------------------------------------------------- 1 | ../xf86dga2.c -------------------------------------------------------------------------------- /Xext/extmod/xf86misc.c: -------------------------------------------------------------------------------- 1 | ../xf86misc.c -------------------------------------------------------------------------------- /Xext/extmod/xf86vmode.c: -------------------------------------------------------------------------------- 1 | ../xf86vmode.c -------------------------------------------------------------------------------- /Xext/extmod/xvdisp.c: -------------------------------------------------------------------------------- 1 | ../xvdisp.c -------------------------------------------------------------------------------- /Xext/extmod/xvmain.c: -------------------------------------------------------------------------------- 1 | ../xvmain.c -------------------------------------------------------------------------------- /Xext/extmod/xvmc.c: -------------------------------------------------------------------------------- 1 | ../xvmc.c -------------------------------------------------------------------------------- /Xext/extmod/xvmod.c: -------------------------------------------------------------------------------- 1 | ../xvmod.c -------------------------------------------------------------------------------- /Xext/panoramiXsrv.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/Xext/panoramiXsrv.h,v 1.9 2001/08/11 21:00:06 mvojkovi Exp $ */ 2 | 3 | #ifndef _PANORAMIXSRV_H_ 4 | #define _PANORAMIXSRV_H_ 5 | 6 | #include "panoramiX.h" 7 | 8 | extern int PanoramiXNumScreens; 9 | extern PanoramiXData *panoramiXdataPtr; 10 | extern int PanoramiXPixWidth; 11 | extern int PanoramiXPixHeight; 12 | extern RegionRec PanoramiXScreenRegion; 13 | extern XID *PanoramiXVisualTable; 14 | 15 | extern void PanoramiXConsolidate(void); 16 | extern Bool PanoramiXCreateConnectionBlock(void); 17 | extern PanoramiXRes * PanoramiXFindIDByScrnum(RESTYPE, XID, int); 18 | extern PanoramiXRes * PanoramiXFindIDOnAnyScreen(RESTYPE, XID); 19 | extern WindowPtr PanoramiXChangeWindow(int, WindowPtr); 20 | extern Bool XineramaRegisterConnectionBlockCallback(void (*func)(void)); 21 | extern int XineramaDeleteResource(pointer, XID); 22 | 23 | extern RegionRec XineramaScreenRegions[MAXSCREENS]; 24 | 25 | extern unsigned long XRC_DRAWABLE; 26 | extern unsigned long XRT_WINDOW; 27 | extern unsigned long XRT_PIXMAP; 28 | extern unsigned long XRT_GC; 29 | extern unsigned long XRT_COLORMAP; 30 | 31 | extern void XineramaGetImageData( 32 | DrawablePtr *pDrawables, 33 | int left, 34 | int top, 35 | int width, 36 | int height, 37 | unsigned int format, 38 | unsigned long planemask, 39 | char *data, 40 | int pitch, 41 | Bool isRoot 42 | ); 43 | 44 | #endif /* _PANORAMIXSRV_H_ */ 45 | -------------------------------------------------------------------------------- /Xext/sleepuntil.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/Xext/sleepuntil.h,v 1.1 2001/08/01 00:44:44 tsi Exp $ */ 2 | /* 3 | * Copyright (C) 2001 The XFree86 Project, Inc. All Rights Reserved. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to 7 | * deal in the Software without restriction, including without limitation the 8 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 9 | * sell copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | * 22 | * Except as contained in this notice, the name of the XFree86 Project shall 23 | * not be used in advertising or otherwise to promote the sale, use or other 24 | * dealings in this Software without prior written authorization from the 25 | * XFree86 Project. 26 | */ 27 | 28 | #ifndef _SLEEPUNTIL_H_ 29 | #define _SLEEPUNTIL_H_ 1 30 | 31 | #include "dix.h" 32 | 33 | extern int ClientSleepUntil( 34 | #if NeedFunctionPrototypes 35 | ClientPtr client, 36 | TimeStamp *revive, 37 | void (*notifyFunc)( 38 | #if NeedNestedPrototypes 39 | ClientPtr /* client */, 40 | pointer /* closure */ 41 | #endif 42 | ), 43 | pointer Closure 44 | #endif 45 | ); 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /Xext/vidmodeproc.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/Xext/vidmodeproc.h,v 1.5 2001/05/06 00:51:19 mvojkovi Exp $ */ 2 | 3 | /* Prototypes for DGA functions that the DDX must provide */ 4 | 5 | #ifndef _VIDMODEPROC_H_ 6 | #define _VIDMODEPROC_H_ 7 | 8 | 9 | typedef enum { 10 | VIDMODE_H_DISPLAY, 11 | VIDMODE_H_SYNCSTART, 12 | VIDMODE_H_SYNCEND, 13 | VIDMODE_H_TOTAL, 14 | VIDMODE_H_SKEW, 15 | VIDMODE_V_DISPLAY, 16 | VIDMODE_V_SYNCSTART, 17 | VIDMODE_V_SYNCEND, 18 | VIDMODE_V_TOTAL, 19 | VIDMODE_FLAGS, 20 | VIDMODE_CLOCK 21 | } VidModeSelectMode; 22 | 23 | typedef enum { 24 | VIDMODE_MON_VENDOR, 25 | VIDMODE_MON_MODEL, 26 | VIDMODE_MON_NHSYNC, 27 | VIDMODE_MON_NVREFRESH, 28 | VIDMODE_MON_HSYNC_LO, 29 | VIDMODE_MON_HSYNC_HI, 30 | VIDMODE_MON_VREFRESH_LO, 31 | VIDMODE_MON_VREFRESH_HI 32 | } VidModeSelectMonitor; 33 | 34 | typedef union { 35 | pointer ptr; 36 | int i; 37 | float f; 38 | } vidMonitorValue; 39 | 40 | void XFree86VidModeExtensionInit(void); 41 | 42 | Bool VidModeAvailable(int scrnIndex); 43 | Bool VidModeGetCurrentModeline(int scrnIndex, pointer *mode, int *dotClock); 44 | Bool VidModeGetFirstModeline(int scrnIndex, pointer *mode, int *dotClock); 45 | Bool VidModeGetNextModeline(int scrnIndex, pointer *mode, int *dotClock); 46 | Bool VidModeDeleteModeline(int scrnIndex, pointer mode); 47 | Bool VidModeZoomViewport(int scrnIndex, int zoom); 48 | Bool VidModeGetViewPort(int scrnIndex, int *x, int *y); 49 | Bool VidModeSetViewPort(int scrnIndex, int x, int y); 50 | Bool VidModeSwitchMode(int scrnIndex, pointer mode); 51 | Bool VidModeLockZoom(int scrnIndex, Bool lock); 52 | Bool VidModeGetMonitor(int scrnIndex, pointer *monitor); 53 | int VidModeGetNumOfClocks(int scrnIndex, Bool *progClock); 54 | Bool VidModeGetClocks(int scrnIndex, int *Clocks); 55 | ModeStatus VidModeCheckModeForMonitor(int scrnIndex, pointer mode); 56 | ModeStatus VidModeCheckModeForDriver(int scrnIndex, pointer mode); 57 | void VidModeSetCrtcForMode(int scrnIndex, pointer mode); 58 | Bool VidModeAddModeline(int scrnIndex, pointer mode); 59 | int VidModeGetDotClock(int scrnIndex, int Clock); 60 | int VidModeGetNumOfModes(int scrnIndex); 61 | Bool VidModeSetGamma(int scrnIndex, float red, float green, float blue); 62 | Bool VidModeGetGamma(int scrnIndex, float *red, float *green, float *blue); 63 | pointer VidModeCreateMode(void); 64 | void VidModeCopyMode(pointer modefrom, pointer modeto); 65 | int VidModeGetModeValue(pointer mode, int valtyp); 66 | void VidModeSetModeValue(pointer mode, int valtyp, int val); 67 | vidMonitorValue VidModeGetMonitorValue(pointer monitor, int valtyp, int indx); 68 | Bool VidModeSetGammaRamp(int, int, CARD16 *, CARD16 *, CARD16 *); 69 | Bool VidModeGetGammaRamp(int, int, CARD16 *, CARD16 *, CARD16 *); 70 | int VidModeGetGammaRampSize(int scrnIndex); 71 | 72 | #endif 73 | 74 | 75 | -------------------------------------------------------------------------------- /Xext/xf86miscproc.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/Xext/xf86miscproc.h,v 1.3 2001/08/15 16:25:20 paulo Exp $ */ 2 | 3 | /* Prototypes for Pointer/Keyboard functions that the DDX must provide */ 4 | 5 | #ifndef _XF86MISCPROC_H_ 6 | #define _XF86MISCPROC_H_ 7 | 8 | typedef enum { 9 | MISC_MSE_PROTO, 10 | MISC_MSE_BAUDRATE, 11 | MISC_MSE_SAMPLERATE, 12 | MISC_MSE_RESOLUTION, 13 | MISC_MSE_BUTTONS, 14 | MISC_MSE_EM3BUTTONS, 15 | MISC_MSE_EM3TIMEOUT, 16 | MISC_MSE_CHORDMIDDLE, 17 | MISC_MSE_FLAGS 18 | } MiscExtMseValType; 19 | 20 | typedef enum { 21 | MISC_KBD_TYPE, 22 | MISC_KBD_RATE, 23 | MISC_KBD_DELAY, 24 | MISC_KBD_SERVNUMLOCK 25 | } MiscExtKbdValType; 26 | 27 | typedef enum { 28 | MISC_RET_SUCCESS, 29 | MISC_RET_BADVAL, 30 | MISC_RET_BADMSEPROTO, 31 | MISC_RET_BADBAUDRATE, 32 | MISC_RET_BADFLAGS, 33 | MISC_RET_BADCOMBO, 34 | MISC_RET_BADKBDTYPE, 35 | MISC_RET_NOMODULE 36 | } MiscExtReturn; 37 | 38 | typedef enum { 39 | MISC_POINTER, 40 | MISC_KEYBOARD 41 | } MiscExtStructType; 42 | 43 | #define MISC_MSEFLAG_CLEARDTR 1 44 | #define MISC_MSEFLAG_CLEARRTS 2 45 | #define MISC_MSEFLAG_REOPEN 128 46 | 47 | void XFree86MiscExtensionInit(void); 48 | 49 | Bool MiscExtGetMouseSettings(pointer *mouse, char **devname); 50 | int MiscExtGetMouseValue(pointer mouse, MiscExtMseValType valtype); 51 | Bool MiscExtSetMouseValue(pointer mouse, MiscExtMseValType valtype, int value); 52 | Bool MiscExtGetKbdSettings(pointer *kbd); 53 | int MiscExtGetKbdValue(pointer kbd, MiscExtKbdValType valtype); 54 | Bool MiscExtSetKbdValue(pointer kbd, MiscExtKbdValType valtype, int value); 55 | int MiscExtSetGrabKeysState(ClientPtr client, int enable); 56 | pointer MiscExtCreateStruct(MiscExtStructType mse_or_kbd); 57 | void MiscExtDestroyStruct(pointer structure, MiscExtStructType mse_or_kbd); 58 | MiscExtReturn MiscExtApply(pointer structure, MiscExtStructType mse_or_kbd); 59 | 60 | #endif 61 | 62 | -------------------------------------------------------------------------------- /Xext/xtest1.frags: -------------------------------------------------------------------------------- 1 | There are several code fragments that need to be placed in the device 2 | dependent part of the server. These are described below. These code 3 | fragments are device and implementation dependent. 4 | 5 | This code fragment should go in your ddx InitInput() routine: 6 | 7 | #ifdef XTESTEXT1 8 | extern KeyCode xtest_command_key; 9 | #endif 10 | 11 | #ifdef XTESTEXT1 12 | xtest_command_key = ; 13 | #endif 14 | 15 | This code fragment should go at the front of the file that handles 16 | keyboards: 17 | 18 | #ifdef XTESTEXT1 19 | /* 20 | * defined in xtestext1di.c 21 | */ 22 | extern int on_steal_input; 23 | extern Bool XTestStealKeyData(); 24 | #endif XTESTEXT1 25 | 26 | This code fragment should go in the function that parses input from the 27 | keyboard or pointer after you know what input action has occurred, but before 28 | you have told the server about it. If conditionalizes the actual function 29 | call to pass the information on: 30 | 31 | #ifdef XTESTEXT1 32 | if (!on_steal_input || 33 | XTestStealKeyData(code, direction, dev_type, x, y)) 34 | #endif /* XTESTEXT1 */ 35 | handle_device_event(...); 36 | 37 | This code fragment should go in the function that handles mouse motion after 38 | you have figured out how much the mouse has moved: 39 | 40 | #ifdef XTESTEXT1 41 | if (on_steal_input) 42 | XTestStealMotionData(dx, dy, dev, x, y); 43 | #endif XTESTEXT1 44 | 45 | 46 | This code fragment should go at the front of the os-specific code where 47 | you wait (by doing a select on the socket in our implementation) for 48 | something to happen: 49 | 50 | #ifdef XTESTEXT1 51 | extern int playback_on; 52 | void XTestComputeWaitTime(); 53 | #endif XTESTEXT1 54 | 55 | These code fragments should go in the os-specific code on both sides of 56 | where you wait (by doing a select on the socket in our implementation) 57 | for something to happen: 58 | 59 | #ifdef XTESTEXT1 60 | if (playback_on) 61 | XTestComputeWaitTime(wt = &waittime); 62 | #endif XTESTEXT1 63 | ... code to do select ... 64 | WakeupHandler(i, LastSelectMask); 65 | #ifdef XTESTEXT1 66 | if (playback_on) 67 | i = XTestProcessInputAction(i, &waittime); 68 | #endif XTESTEXT1 69 | 70 | 71 | You also need to implement the following routines (documentation 72 | is needed; for now, see server/ddx/hp/hp/x_hil.c): 73 | 74 | void 75 | XTestGenerateEvent(dev_type, keycode, keystate, mousex, mousey) 76 | int dev_type; 77 | int keycode; 78 | int keystate; 79 | int mousex; 80 | int mousey; 81 | 82 | void 83 | XTestGetPointerPos(fmousex, fmousey) 84 | short *fmousex, *fmousey; 85 | 86 | void 87 | XTestJumpPointer(jx, jy, dev_type) 88 | int jx; 89 | int jy; 90 | int dev_type; 91 | -------------------------------------------------------------------------------- /Xext/xvmcext.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/Xext/xvmcext.h,v 1.1 2001/04/07 11:04:21 alanh Exp $ */ 2 | 3 | #ifndef _XVMC_H 4 | #define _XVMC_H 5 | #include 6 | #include "xvdix.h" 7 | 8 | typedef struct { 9 | int num_xvimages; 10 | int *xvimage_ids; 11 | } XvMCImageIDList; 12 | 13 | typedef struct { 14 | int surface_type_id; 15 | int chroma_format; 16 | int color_description; 17 | unsigned short max_width; 18 | unsigned short max_height; 19 | unsigned short subpicture_max_width; 20 | unsigned short subpicture_max_height; 21 | int mc_type; 22 | int flags; 23 | XvMCImageIDList *compatible_subpictures; 24 | } XvMCSurfaceInfoRec, *XvMCSurfaceInfoPtr; 25 | 26 | typedef struct { 27 | XID context_id; 28 | ScreenPtr pScreen; 29 | int adapt_num; 30 | int surface_type_id; 31 | unsigned short width; 32 | unsigned short height; 33 | CARD32 flags; 34 | int refcnt; 35 | pointer port_priv; 36 | pointer driver_priv; 37 | } XvMCContextRec, *XvMCContextPtr; 38 | 39 | typedef struct { 40 | XID surface_id; 41 | int surface_type_id; 42 | XvMCContextPtr context; 43 | pointer driver_priv; 44 | } XvMCSurfaceRec, *XvMCSurfacePtr; 45 | 46 | 47 | typedef struct { 48 | XID subpicture_id; 49 | int xvimage_id; 50 | unsigned short width; 51 | unsigned short height; 52 | int num_palette_entries; 53 | int entry_bytes; 54 | char component_order[4]; 55 | XvMCContextPtr context; 56 | pointer driver_priv; 57 | } XvMCSubpictureRec, *XvMCSubpicturePtr; 58 | 59 | typedef int (*XvMCCreateContextProcPtr) ( 60 | XvPortPtr port, 61 | XvMCContextPtr context, 62 | int *num_priv, 63 | CARD32 **priv 64 | ); 65 | 66 | typedef void (*XvMCDestroyContextProcPtr) ( 67 | XvMCContextPtr context 68 | ); 69 | 70 | typedef int (*XvMCCreateSurfaceProcPtr) ( 71 | XvMCSurfacePtr surface, 72 | int *num_priv, 73 | CARD32 **priv 74 | ); 75 | 76 | typedef void (*XvMCDestroySurfaceProcPtr) ( 77 | XvMCSurfacePtr surface 78 | ); 79 | 80 | typedef int (*XvMCCreateSubpictureProcPtr) ( 81 | XvMCSubpicturePtr subpicture, 82 | int *num_priv, 83 | CARD32 **priv 84 | ); 85 | 86 | typedef void (*XvMCDestroySubpictureProcPtr) ( 87 | XvMCSubpicturePtr subpicture 88 | ); 89 | 90 | 91 | typedef struct { 92 | XvAdaptorPtr xv_adaptor; 93 | int num_surfaces; 94 | XvMCSurfaceInfoPtr *surfaces; 95 | int num_subpictures; 96 | XvImagePtr *subpictures; 97 | XvMCCreateContextProcPtr CreateContext; 98 | XvMCDestroyContextProcPtr DestroyContext; 99 | XvMCCreateSurfaceProcPtr CreateSurface; 100 | XvMCDestroySurfaceProcPtr DestroySurface; 101 | XvMCCreateSubpictureProcPtr CreateSubpicture; 102 | XvMCDestroySubpictureProcPtr DestroySubpicture; 103 | } XvMCAdaptorRec, *XvMCAdaptorPtr; 104 | 105 | void XvMCExtensionInit(void); 106 | 107 | int XvMCScreenInit(ScreenPtr pScreen, int num, XvMCAdaptorPtr adapt); 108 | 109 | #endif /* _XVMC_H */ 110 | -------------------------------------------------------------------------------- /Xext/xvmod.c: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/Xext/xvmod.c,v 1.2 2001/03/05 04:51:55 mvojkovi Exp $ */ 2 | 3 | #include 4 | #include "misc.h" 5 | #include "scrnintstr.h" 6 | #include "gc.h" 7 | #include 8 | #include 9 | #include "xvdix.h" 10 | #include "xvmodproc.h" 11 | 12 | void 13 | XvRegister() 14 | { 15 | XvScreenInitProc = XvScreenInit; 16 | XvGetScreenIndexProc = XvGetScreenIndex; 17 | XvGetRTPortProc = XvGetRTPort; 18 | XvMCScreenInitProc = XvMCScreenInit; 19 | } 20 | 21 | -------------------------------------------------------------------------------- /Xext/xvmodproc.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/Xext/xvmodproc.h,v 1.3 2001/04/08 16:33:22 dawes Exp $ */ 2 | 3 | #include "xvmcext.h" 4 | 5 | extern int (*XvGetScreenIndexProc)(void); 6 | extern unsigned long (*XvGetRTPortProc)(void); 7 | extern int (*XvScreenInitProc)(ScreenPtr); 8 | extern int (*XvMCScreenInitProc)(ScreenPtr, int, XvMCAdaptorPtr); 9 | 10 | extern void XvRegister(void); 11 | -------------------------------------------------------------------------------- /Xprint/DiPrint.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: DiPrint.h,v 1.3 2000/08/17 19:48:04 cpqbld Exp $ */ 2 | /* 3 | (c) Copyright 1996 Hewlett-Packard Company 4 | (c) Copyright 1996 International Business Machines Corp. 5 | (c) Copyright 1996 Sun Microsystems, Inc. 6 | (c) Copyright 1996 Novell, Inc. 7 | (c) Copyright 1996 Digital Equipment Corp. 8 | (c) Copyright 1996 Fujitsu Limited 9 | (c) Copyright 1996 Hitachi, Ltd. 10 | 11 | Permission is hereby granted, free of charge, to any person obtaining a copy 12 | of this software and associated documentation files (the "Software"), to deal 13 | in the Software without restriction, including without limitation the rights 14 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 15 | copies of the Software, and to permit persons to whom the Software is 16 | furnished to do so, subject to the following conditions: 17 | 18 | The above copyright notice and this permission notice shall be included in 19 | all copies or substantial portions of the Software. 20 | 21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 25 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 26 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 27 | 28 | Except as contained in this notice, the names of the copyright holders shall 29 | not be used in advertising or otherwise to promote the sale, use or other 30 | dealings in this Software without prior written authorization from said 31 | copyright holders. 32 | */ 33 | /* $XFree86: xc/programs/Xserver/Xprint/DiPrint.h,v 1.4 2001/01/17 22:36:28 dawes Exp $ */ 34 | 35 | /* 36 | * The XpDiListEntry struct is the type of each element of the array 37 | * handed back to the extension code to handle a GetPrinterList request. 38 | * We don't use the printerDb directly because of the desire to handle 39 | * multiple locales. Creating this new array for each GetPrinterList 40 | * request will allow us to build it with the description in the locale of 41 | * the requesting client. 42 | */ 43 | #ifndef _XpDiPrint_H_ 44 | #define _XpDiPrint_H_ 1 45 | 46 | #include "scrnintstr.h" 47 | 48 | typedef struct _diListEntry { 49 | char *name; 50 | char *description; 51 | char *localeName; 52 | unsigned long rootWinId; 53 | } XpDiListEntry; 54 | 55 | extern void XpDiFreePrinterList(XpDiListEntry **list); 56 | 57 | extern XpDiListEntry **XpDiGetPrinterList( 58 | int nameLen, 59 | char *name, 60 | int localeLen, 61 | char *locale); 62 | 63 | extern char * XpDiGetDriverName(int index, char *printerName); 64 | 65 | extern WindowPtr XpDiValidatePrinter(char *printerName, int printerNameLen); 66 | 67 | extern int XprintOptions(int argc, char **argv, int i); 68 | 69 | extern void PrinterInitOutput(ScreenInfo *pScreenInfo, int argc, char **argv); 70 | 71 | extern void _XpVoidNoop(void); 72 | 73 | extern Bool _XpBoolNoop(void); 74 | 75 | #endif /* _XpDiPrint_H_ */ 76 | -------------------------------------------------------------------------------- /cfb/cfb16.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/cfb/cfb16.h,v 1.4 1998/11/28 10:42:50 dawes Exp $ */ 2 | /* 3 | * Copyright (C) 1994-1998 The XFree86 Project, Inc. All Rights Reserved. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to 7 | * deal in the Software without restriction, including without limitation the 8 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 9 | * sell copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | * 22 | * Except as contained in this notice, the name of the XFree86 Project shall 23 | * not be used in advertising or otherwise to promote the sale, use or other 24 | * dealings in this Software without prior written authorization from the 25 | * XFree86 Project. 26 | */ 27 | 28 | #ifndef _CFB16_H_ 29 | #define _CFB16_H_ 30 | 31 | /* 32 | * C's preprocessing language substitutes >text<, not values... 33 | */ 34 | 35 | #ifdef OLDPSZ 36 | # undef OLDPSZ 37 | #endif 38 | 39 | #ifdef PSZ 40 | 41 | # if (PSZ == 8) 42 | # define OLDPSZ 8 43 | # endif 44 | 45 | # if (PSZ == 16) 46 | # define OLDPSZ 16 47 | # endif 48 | 49 | # if (PSZ == 24) 50 | # define OLDPSZ 24 51 | # endif 52 | 53 | # if (PSZ == 32) 54 | # define OLDPSZ 32 55 | # endif 56 | 57 | # ifndef OLDPSZ 58 | /* Maybe an #error here ? */ 59 | # endif 60 | 61 | # undef PSZ 62 | 63 | #endif 64 | 65 | #define PSZ 16 66 | #define CFB_PROTOTYPES_ONLY 67 | #include "cfb.h" 68 | #undef CFB_PROTOTYPES_ONLY 69 | #include "cfbunmap.h" 70 | 71 | #undef PSZ 72 | #ifdef OLDPSZ 73 | 74 | # if (OLDPSZ == 8) 75 | # define PSZ 8 76 | # endif 77 | 78 | # if (OLDPSZ == 16) 79 | # define PSZ 16 80 | # endif 81 | 82 | # if (OLDPSZ == 24) 83 | # define PSZ 24 84 | # endif 85 | 86 | # if (OLDPSZ == 32) 87 | # define PSZ 32 88 | # endif 89 | 90 | # undef OLDPSZ 91 | 92 | #endif 93 | 94 | #endif /* _CFB16_H_ */ 95 | -------------------------------------------------------------------------------- /cfb/cfb24.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/cfb/cfb24.h,v 1.4 1998/11/28 10:42:51 dawes Exp $ */ 2 | /* 3 | * Copyright (C) 1994-1998 The XFree86 Project, Inc. All Rights Reserved. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to 7 | * deal in the Software without restriction, including without limitation the 8 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 9 | * sell copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | * 22 | * Except as contained in this notice, the name of the XFree86 Project shall 23 | * not be used in advertising or otherwise to promote the sale, use or other 24 | * dealings in this Software without prior written authorization from the 25 | * XFree86 Project. 26 | */ 27 | 28 | #ifndef _CFB24_H_ 29 | #define _CFB24_H_ 30 | 31 | /* 32 | * C's preprocessing language substitutes >text<, not values... 33 | */ 34 | 35 | #ifdef OLDPSZ 36 | # undef OLDPSZ 37 | #endif 38 | 39 | #ifdef PSZ 40 | 41 | # if (PSZ == 8) 42 | # define OLDPSZ 8 43 | # endif 44 | 45 | # if (PSZ == 16) 46 | # define OLDPSZ 16 47 | # endif 48 | 49 | # if (PSZ == 24) 50 | # define OLDPSZ 24 51 | # endif 52 | 53 | # if (PSZ == 32) 54 | # define OLDPSZ 32 55 | # endif 56 | 57 | # ifndef OLDPSZ 58 | /* Maybe an #error here ? */ 59 | # endif 60 | 61 | # undef PSZ 62 | 63 | #endif 64 | 65 | #define PSZ 24 66 | #define CFB_PROTOTYPES_ONLY 67 | #include "cfb.h" 68 | #undef CFB_PROTOTYPES_ONLY 69 | #include "cfbunmap.h" 70 | 71 | #undef PSZ 72 | #ifdef OLDPSZ 73 | 74 | # if (OLDPSZ == 8) 75 | # define PSZ 8 76 | # endif 77 | 78 | # if (OLDPSZ == 16) 79 | # define PSZ 16 80 | # endif 81 | 82 | # if (OLDPSZ == 24) 83 | # define PSZ 24 84 | # endif 85 | 86 | # if (OLDPSZ == 32) 87 | # define PSZ 32 88 | # endif 89 | 90 | # undef OLDPSZ 91 | 92 | #endif 93 | 94 | #endif /* _CFB24_H_ */ 95 | -------------------------------------------------------------------------------- /cfb/cfb32.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/cfb/cfb32.h,v 1.4 1998/11/28 10:42:51 dawes Exp $ */ 2 | /* 3 | * Copyright (C) 1994-1998 The XFree86 Project, Inc. All Rights Reserved. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to 7 | * deal in the Software without restriction, including without limitation the 8 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 9 | * sell copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | * 22 | * Except as contained in this notice, the name of the XFree86 Project shall 23 | * not be used in advertising or otherwise to promote the sale, use or other 24 | * dealings in this Software without prior written authorization from the 25 | * XFree86 Project. 26 | */ 27 | 28 | #ifndef _CFB32_H_ 29 | #define _CFB32_H_ 30 | 31 | /* 32 | * C's preprocessing language substitutes >text<, not values... 33 | */ 34 | 35 | #ifdef OLDPSZ 36 | # undef OLDPSZ 37 | #endif 38 | 39 | #ifdef PSZ 40 | 41 | # if (PSZ == 8) 42 | # define OLDPSZ 8 43 | # endif 44 | 45 | # if (PSZ == 16) 46 | # define OLDPSZ 16 47 | # endif 48 | 49 | # if (PSZ == 24) 50 | # define OLDPSZ 24 51 | # endif 52 | 53 | # if (PSZ == 32) 54 | # define OLDPSZ 32 55 | # endif 56 | 57 | # ifndef OLDPSZ 58 | /* Maybe an #error here ? */ 59 | # endif 60 | 61 | # undef PSZ 62 | 63 | #endif 64 | 65 | #define PSZ 32 66 | #define CFB_PROTOTYPES_ONLY 67 | #include "cfb.h" 68 | #undef CFB_PROTOTYPES_ONLY 69 | #include "cfbunmap.h" 70 | 71 | #undef PSZ 72 | #ifdef OLDPSZ 73 | 74 | # if (OLDPSZ == 8) 75 | # define PSZ 8 76 | # endif 77 | 78 | # if (OLDPSZ == 16) 79 | # define PSZ 16 80 | # endif 81 | 82 | # if (OLDPSZ == 24) 83 | # define PSZ 24 84 | # endif 85 | 86 | # if (OLDPSZ == 32) 87 | # define PSZ 32 88 | # endif 89 | 90 | # undef OLDPSZ 91 | 92 | #endif 93 | 94 | #endif /* _CFB32_H_ */ 95 | -------------------------------------------------------------------------------- /cfb/cfballpriv.c: -------------------------------------------------------------------------------- 1 | /* 2 | * $Xorg: cfballpriv.c,v 1.4 2001/02/09 02:04:37 xorgcvs Exp $ 3 | * 4 | Copyright 1991, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | * 26 | * Author: Keith Packard, MIT X Consortium 27 | */ 28 | /* $XFree86: xc/programs/Xserver/cfb/cfballpriv.c,v 1.12 2001/12/14 19:59:21 dawes Exp $ */ 29 | 30 | #include "X.h" 31 | #include "Xmd.h" 32 | #include "servermd.h" 33 | #include "scrnintstr.h" 34 | #include "pixmapstr.h" 35 | #include "resource.h" 36 | #include "colormap.h" 37 | #include "colormapst.h" 38 | #include "cfb.h" 39 | #include "mi.h" 40 | #include "mistruct.h" 41 | #include "dix.h" 42 | #include "cfbmskbits.h" 43 | #include "mibstore.h" 44 | 45 | #if PSZ==8 46 | int cfbWindowPrivateIndex; 47 | int cfbGCPrivateIndex; 48 | #endif 49 | #ifdef CFB_NEED_SCREEN_PRIVATE 50 | int cfbScreenPrivateIndex = -1; 51 | static unsigned long cfbGeneration = 0; 52 | #endif 53 | 54 | 55 | Bool 56 | cfbAllocatePrivates(pScreen, window_index, gc_index) 57 | ScreenPtr pScreen; 58 | int *window_index, *gc_index; 59 | { 60 | if (!window_index || !gc_index || 61 | (*window_index == -1 && *gc_index == -1)) 62 | { 63 | if (!mfbAllocatePrivates(pScreen, 64 | &cfbWindowPrivateIndex, &cfbGCPrivateIndex)) 65 | return FALSE; 66 | if (window_index) 67 | *window_index = cfbWindowPrivateIndex; 68 | if (gc_index) 69 | *gc_index = cfbGCPrivateIndex; 70 | } 71 | else 72 | { 73 | cfbWindowPrivateIndex = *window_index; 74 | cfbGCPrivateIndex = *gc_index; 75 | } 76 | if (!AllocateWindowPrivate(pScreen, cfbWindowPrivateIndex, 77 | sizeof(cfbPrivWin)) || 78 | !AllocateGCPrivate(pScreen, cfbGCPrivateIndex, sizeof(cfbPrivGC))) 79 | return FALSE; 80 | #ifdef CFB_NEED_SCREEN_PRIVATE 81 | if (cfbGeneration != serverGeneration) 82 | { 83 | cfbScreenPrivateIndex = AllocateScreenPrivateIndex (); 84 | cfbGeneration = serverGeneration; 85 | } 86 | if (cfbScreenPrivateIndex == -1) 87 | return FALSE; 88 | #endif 89 | return TRUE; 90 | } 91 | -------------------------------------------------------------------------------- /cfb/cfbigblt8.c: -------------------------------------------------------------------------------- 1 | /* 2 | * $Xorg: cfbigblt8.c,v 1.4 2001/02/09 02:04:38 xorgcvs Exp $ 3 | * 4 | Copyright 1990, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | * 26 | * Author: Keith Packard, MIT X Consortium 27 | */ 28 | 29 | /* $XFree86: xc/programs/Xserver/cfb/cfbigblt8.c,v 1.6 2001/12/14 19:59:23 dawes Exp $ */ 30 | 31 | #include "X.h" 32 | #include "Xmd.h" 33 | #include "Xproto.h" 34 | #include "mi.h" 35 | #include "cfb.h" 36 | #include "fontstruct.h" 37 | #include "dixfontstr.h" 38 | #include "gcstruct.h" 39 | #include "windowstr.h" 40 | #include "scrnintstr.h" 41 | #include "pixmapstr.h" 42 | #include "regionstr.h" 43 | #include "cfbmskbits.h" 44 | #include "cfb8bit.h" 45 | 46 | void 47 | cfbImageGlyphBlt8 (pDrawable, pGC, x, y, nglyph, ppci, pglyphBase) 48 | DrawablePtr pDrawable; 49 | GCPtr pGC; 50 | int x, y; 51 | unsigned int nglyph; 52 | CharInfoPtr *ppci; 53 | pointer pglyphBase; 54 | { 55 | ExtentInfoRec info; /* used by QueryGlyphExtents() */ 56 | xRectangle backrect; 57 | int fgPixel; 58 | cfbPrivGC *priv; 59 | 60 | /* 61 | * We can't avoid GC validations if calling mi functions. 62 | */ 63 | if ((pGC->ops->PolyFillRect == miPolyFillRect) || 64 | (pGC->ops->PolyGlyphBlt == miPolyGlyphBlt)) 65 | { 66 | miImageGlyphBlt(pDrawable, pGC, x, y, nglyph, ppci, pglyphBase); 67 | return; 68 | } 69 | 70 | QueryGlyphExtents(pGC->font, ppci, (unsigned long)nglyph, &info); 71 | 72 | if (info.overallWidth >= 0) 73 | { 74 | backrect.x = x; 75 | backrect.width = info.overallWidth; 76 | } 77 | else 78 | { 79 | backrect.x = x + info.overallWidth; 80 | backrect.width = -info.overallWidth; 81 | } 82 | backrect.y = y - FONTASCENT(pGC->font); 83 | backrect.height = FONTASCENT(pGC->font) + FONTDESCENT(pGC->font); 84 | 85 | priv = cfbGetGCPrivate(pGC); 86 | 87 | /* this code cheats by knowing that ValidateGC isn't 88 | * necessary for PolyFillRect 89 | */ 90 | 91 | fgPixel = pGC->fgPixel; 92 | 93 | pGC->fgPixel = pGC->bgPixel; 94 | priv->xor = PFILL(pGC->bgPixel); 95 | 96 | (*pGC->ops->PolyFillRect) (pDrawable, pGC, 1, &backrect); 97 | 98 | pGC->fgPixel = fgPixel; 99 | 100 | priv->xor = PFILL(pGC->fgPixel); 101 | 102 | (*pGC->ops->PolyGlyphBlt) (pDrawable, pGC, x, y, nglyph, ppci, pglyphBase); 103 | 104 | } 105 | -------------------------------------------------------------------------------- /cfb/cfbmodule.c: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/cfb/cfbmodule.c,v 1.8 1999/01/26 05:53:48 dawes Exp $ */ 2 | /* 3 | * Copyright (C) 1998 The XFree86 Project, Inc. All Rights Reserved. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to 7 | * deal in the Software without restriction, including without limitation the 8 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 9 | * sell copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | * 22 | * Except as contained in this notice, the name of the XFree86 Project shall 23 | * not be used in advertising or otherwise to promote the sale, use or other 24 | * dealings in this Software without prior written authorization from the 25 | * XFree86 Project. 26 | */ 27 | 28 | #ifdef XFree86LOADER 29 | 30 | #include "xf86Module.h" 31 | #include "cfb.h" 32 | 33 | static MODULESETUPPROTO(cfbSetup); 34 | 35 | static XF86ModuleVersionInfo VersRec = 36 | { 37 | "cfb", 38 | MODULEVENDORSTRING, 39 | MODINFOSTRING1, 40 | MODINFOSTRING2, 41 | XF86_VERSION_CURRENT, 42 | 1, 0, 0, 43 | ABI_CLASS_ANSIC, /* Only need the ansic layer */ 44 | ABI_ANSIC_VERSION, 45 | MOD_CLASS_NONE, 46 | {0,0,0,0} /* signature, to be patched into the file by a tool */ 47 | }; 48 | 49 | XF86ModuleData cfbModuleData = { &VersRec, cfbSetup, NULL }; 50 | 51 | static pointer 52 | cfbSetup(pointer module, pointer opts, int *errmaj, int *errmin) 53 | { 54 | /* This modules requires mfb, so load it */ 55 | return LoadSubModule(module, "mfb", NULL, NULL, NULL, NULL, 56 | errmaj, errmin); 57 | } 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /dix/CHANGES: -------------------------------------------------------------------------------- 1 | The following changes have been made to this directory since R3 (for 2 | a full description, see doc/Server/r4.tbl.ms): 3 | 4 | o Windows restructured (memory reduction, devPrivates and speedups) 5 | o GCs restructured (memory reduction, devPrivates and wrappers) 6 | o Screens restructured (window ops merged in, devPrivates) 7 | o Pixmaps restructured (drawable changes mostly) 8 | o Cursors restructured (shares glyph bits now) 9 | o Visuals restructured (screen index removed, fields rearranged) 10 | o Devices restructured (input extension changes) 11 | o Out of memory changes. Many interfaces now return OutOfMemory 12 | status. 13 | o Synchronous grab code rewritten. Should conform to our 14 | understanding of the protocol now. Be careful when time 15 | stamping events (don't allow time to run backwards). 16 | o Resource types redesigned and rewritten. 17 | o Internal fake color allocation routine for software cursors. 18 | -------------------------------------------------------------------------------- /dix/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:48:16 cpqbld Exp $ 2 | 3 | 4 | 5 | 6 | XCOMM $XFree86: xc/programs/Xserver/dix/Imakefile,v 3.14 2001/08/01 00:44:47 tsi Exp $ 7 | 8 | #include 9 | 10 | #if PrintOnlyServer 11 | XPSRC = xpstubs.c 12 | XPOBJ = xpstubs.o 13 | #endif 14 | 15 | #if !HasFfs 16 | FFS_SRC = ffs.c 17 | FFS_OBJ = ffs.o 18 | #endif 19 | 20 | SRCS = atom.c colormap.c cursor.c devices.c dispatch.c dixutils.c events.c \ 21 | extension.c gc.c globals.c glyphcurs.c grabs.c \ 22 | main.c property.c resource.c swaprep.c swapreq.c \ 23 | tables.c window.c initatoms.c dixfonts.c privates.c pixmap.c $(FFS_SRC) 24 | OBJS = atom.o colormap.o cursor.o devices.o dispatch.o dixutils.o events.o \ 25 | extension.o gc.o globals.o glyphcurs.o grabs.o \ 26 | main.o property.o resource.o swaprep.o swapreq.o \ 27 | tables.o window.o initatoms.o dixfonts.o privates.o pixmap.o $(FFS_OBJ) 28 | 29 | INCLUDES = -I../include -I$(XINCLUDESRC) -I$(FONTINCSRC) -I$(EXTINCSRC) \ 30 | -I$(SERVERSRC)/Xext -I$(SERVERSRC)/lbx 31 | LINTLIBS = ../os/llib-los.ln 32 | 33 | /* 34 | * The following configuration parameters may be set in the appropriate 35 | * .macros files or site.def in the directory util/imake.includes/: 36 | * 37 | * DefaultFontPath COMPILEDDEFAULTFONTPATH 38 | * DefaultRGBDatabase RGB_DB 39 | * 40 | * The sample util/imake.includes/Imake.tmpl will provide generic defaults. 41 | * The values in site.h are simply a last line of defense and should not be 42 | * changed. 43 | */ 44 | 45 | #ifdef DefaultFontPath 46 | DEFAULTFONTPATH = DefaultFontPath 47 | SITE_FONT_PATH = -DCOMPILEDDEFAULTFONTPATH=\"$(DEFAULTFONTPATH)\" 48 | #endif 49 | 50 | #ifdef DefaultRGBDatabase 51 | DEFAULTRGBDATABASE = DefaultRGBDatabase 52 | SITE_RGB_DB = -DRGB_DB=\"$(DEFAULTRGBDATABASE)\" 53 | #endif 54 | 55 | #ifdef DefaultDisplayClass 56 | DEFAULTDISPLAYCLASS = DefaultDisplayClass 57 | SITE_DISPLAY_CLASS = -DCOMPILEDDISPLAYCLASS=\"$(DEFAULTDISPLAYCLASS)\" 58 | #endif 59 | 60 | #ifdef XVendorString 61 | VENDORSTRING = XVendorString 62 | VENDOR_STRING = -DVENDOR_STRING=\"$(VENDORSTRING)\" 63 | #endif 64 | 65 | #ifdef XVendorRelease 66 | VENDORRELEASE = XVendorRelease 67 | VENDOR_RELEASE = -DVENDOR_RELEASE="$(VENDORRELEASE)" 68 | #endif 69 | 70 | #if HasKrb5 71 | K5DEFS = Krb5Defines 72 | #endif 73 | 74 | #if DarwinQuartzSupport 75 | QUARTZ_DEFINES = -DDARWIN_WITH_QUARTZ 76 | #endif 77 | 78 | SITE_DEFINES = $(SITE_FONT_PATH) $(SITE_RGB_DB) $(SITE_DISPLAY_CLASS) 79 | 80 | VENDOR_DEFINES = $(VENDOR_STRING) $(VENDOR_RELEASE) $(QUARTZ_DEFINES) 81 | 82 | NormalLibraryObjectRule() 83 | NormalLibraryTarget(dix,$(OBJS)) 84 | LintLibraryTarget(dix,$(SRCS) $(XPSRC)) 85 | NormalLintTarget($(SRCS) $(XPSRC)) 86 | 87 | SpecialCObjectRule(globals,$(ICONFIGFILES),$(SITE_DEFINES)) 88 | SpecialCObjectRule(tables,$(ICONFIGFILES),$(K5DEFS)) 89 | SpecialCObjectRule(dispatch,$(ICONFIGFILES),$(K5DEFS)) 90 | SpecialCObjectRule(main,$(ICONFIGFILES),$(VENDOR_DEFINES)) 91 | SpecialCObjectRule(pixmap,$(ICONFIGFILES),$(_NOOP_)) 92 | SpecialCObjectRule(privates,$(ICONFIGFILES),$(_NOOP_)) 93 | 94 | #if PrintOnlyServer 95 | NormalLibraryTarget(xpstubs,$(XPOBJ)) 96 | #endif 97 | 98 | DependTarget() 99 | -------------------------------------------------------------------------------- /dix/Makefile: -------------------------------------------------------------------------------- 1 | include ../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../include -I../Xext $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | libdix.a: $(OBJS:.c=.o) 10 | ar cr libdix.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: libdix.a 14 | cp -f libdix.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /dix/buildatoms: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | hfile=../../../include/Xatom.h 3 | cfile=initatoms.c 4 | rm -f $hfile $cfile 5 | umask 222 6 | awk ' 7 | BEGIN { 8 | hfile = "'$hfile'"; 9 | cfile = "'$cfile'"; 10 | hformat = "#define XA_%s ((Atom) %d)\n"; 11 | printf("#ifndef XATOM_H\n") > hfile; 12 | printf("#define XATOM_H 1\n\n") > hfile; 13 | printf("/* THIS IS A GENERATED FILE\n") > hfile; 14 | printf(" *\n") > hfile; 15 | printf(" * Do not change! Changing this file implies a protocol change!\n") > hfile; 16 | printf(" */\n\n") > hfile; 17 | 18 | printf("/* THIS IS A GENERATED FILE\n") > cfile; 19 | printf(" *\n") > cfile; 20 | printf(" * Do not change! Changing this file implies a protocol change!\n") > cfile; 21 | printf(" */\n\n") > cfile; 22 | printf("#include \"X.h\"\n") > cfile; 23 | printf("#include \"Xatom.h\"\n") > cfile; 24 | printf("#include \"misc.h\"\n") > cfile; 25 | printf("#include \"dix.h\"\n") > cfile; 26 | printf("void MakePredeclaredAtoms()\n") > cfile; 27 | printf("{\n") > cfile; 28 | 29 | } 30 | 31 | NF == 2 && $2 == "@" { 32 | printf(hformat, $1, ++atomno) > hfile ; 33 | printf(" if (MakeAtom(\"%s\", %d, 1) != XA_%s) AtomError();\n", $1, length($1), $1) > cfile ; 34 | } 35 | 36 | END { 37 | printf("\n") > hfile; 38 | printf(hformat, "LAST_PREDEFINED", atomno) > hfile ; 39 | printf("#endif /* XATOM_H */\n") > hfile; 40 | printf("}\n") > cfile ; 41 | } 42 | ' BuiltInAtoms 43 | exit 0 44 | -------------------------------------------------------------------------------- /dix/ffs.c: -------------------------------------------------------------------------------- 1 | /* $Xorg: ffs.c,v 1.4 2001/02/09 02:04:40 xorgcvs Exp $ */ 2 | /* 3 | 4 | Copyright 1996, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included 13 | in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- 17 | ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 18 | SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABIL- 19 | ITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 21 | IN THE SOFTWARE. 22 | 23 | Except as contained in this notice, the name of The Open Group shall 24 | not be used in advertising or otherwise to promote the sale, use or 25 | other dealings in this Software without prior written authorization from 26 | The Open Group. 27 | 28 | */ 29 | 30 | int 31 | ffs(int i) 32 | { 33 | int j; 34 | for (j = 1; (i & 1) == 0; j++) 35 | i >>= 1; 36 | return j; 37 | } 38 | -------------------------------------------------------------------------------- /dix/xpstubs.c: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/dix/xpstubs.c,v 1.4 2001/12/20 19:41:00 tsi Exp $ */ 2 | /* 3 | Copyright 1996, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included 12 | in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 | OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall 23 | not be used in advertising or otherwise to promote the sale, use or 24 | other dealings in this Software without prior written authorization 25 | from The Open Group. 26 | */ 27 | 28 | /* $Xorg: xpstubs.c,v 1.5 2001/03/08 17:52:08 pookie Exp $ */ 29 | 30 | #include "../include/misc.h" 31 | #include 32 | 33 | Bool 34 | XpClientIsBitmapClient(client) 35 | ClientPtr client; 36 | { 37 | return TRUE; 38 | } 39 | 40 | Bool 41 | XpClientIsPrintClient(client, fpe) 42 | ClientPtr client; 43 | FontPathElementPtr fpe; 44 | { 45 | return FALSE; 46 | } 47 | int 48 | XprintOptions(argc, argv, i) 49 | int argc; 50 | char **argv; 51 | int i; 52 | { 53 | return i; 54 | } 55 | -------------------------------------------------------------------------------- /fb/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $XFree86: xc/programs/Xserver/fb/Imakefile,v 1.14 2001/07/17 15:28:58 keithp Exp $ 2 | XCOMM 3 | XCOMM 4 | XCOMM Id: Imakefile,v 1.1 1999/11/02 03:54:44 keithp Exp $ 5 | 6 | #define IHaveModules 7 | #include 8 | 9 | #ifdef FbNoPixelAddrCode 10 | DEFINES=-DFBNOPIXADDR -DFBNO24BIT 11 | #endif 12 | 13 | #if defined(XFree86Version) && DoLoadableServer 14 | XFMODSRC = fbmodule.c 15 | XFMODOBJ = fbmodule.o 16 | #endif 17 | 18 | SRCS = $(XFMODSRC) \ 19 | fballpriv.c \ 20 | fbbits.c \ 21 | fbblt.c \ 22 | fbbltone.c \ 23 | fbbstore.c \ 24 | fbcmap.c \ 25 | fbcompose.c \ 26 | fbcopy.c \ 27 | fbfill.c \ 28 | fbfillrect.c \ 29 | fbfillsp.c \ 30 | fbgc.c \ 31 | fbgetsp.c \ 32 | fbglyph.c \ 33 | fbimage.c \ 34 | fbline.c \ 35 | fboverlay.c \ 36 | fbpixmap.c \ 37 | fbpoint.c \ 38 | fbpush.c \ 39 | fbscreen.c \ 40 | fbseg.c \ 41 | fbsetsp.c \ 42 | fbsolid.c \ 43 | fbstipple.c \ 44 | fbtile.c \ 45 | fbutil.c \ 46 | fbwindow.c \ 47 | fb24_32.c \ 48 | fbpict.c 49 | 50 | OBJS = $(XFMODOBJ) \ 51 | fbarc.o \ 52 | fballpriv.o \ 53 | fbbits.o \ 54 | fbblt.o \ 55 | fbbltone.o \ 56 | fbbstore.o \ 57 | fbcmap.o \ 58 | fbcompose.o \ 59 | fbcopy.o \ 60 | fbfill.o \ 61 | fbfillrect.o \ 62 | fbfillsp.o \ 63 | fbgc.o \ 64 | fbgetsp.o \ 65 | fbglyph.o \ 66 | fbimage.o \ 67 | fbline.o \ 68 | fboverlay.o \ 69 | fbpixmap.o \ 70 | fbpoint.o \ 71 | fbpush.o \ 72 | fbscreen.o \ 73 | fbseg.o \ 74 | fbsetsp.o \ 75 | fbsolid.o \ 76 | fbstipple.o \ 77 | fbtile.o \ 78 | fbutil.o \ 79 | fbwindow.o \ 80 | fb24_32.o \ 81 | fbpict.o 82 | 83 | INCLUDES = -I. -I../mi -I../include -I$(XINCLUDESRC) \ 84 | -I$(FONTINCSRC) -I$(XF86SRC)/common $(EXTRAINCLUDES) \ 85 | -I../render -I$(EXTINCSRC) -I$(SERVERSRC)/Xext 86 | LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln \ 87 | ../mi/llib-lmi.ln 88 | 89 | ModuleObjectRule() 90 | LibraryModuleTarget(fb,$(OBJS)) 91 | LintLibraryTarget(fb,$(SRCS)) 92 | 93 | NormalLintTarget($(SRCS)) 94 | 95 | InstallLibraryModule(fb,$(MODULEDIR),.) 96 | 97 | #ifndef OS2Architecture 98 | DependTarget() 99 | #endif 100 | 101 | InstallDriverSDKLibraryModule(fb,$(DRIVERSDKMODULEDIR),.) 102 | InstallDriverSDKNonExecFile(fb.h,$(DRIVERSDKINCLUDEDIR)) 103 | InstallDriverSDKNonExecFile(fbrop.h,$(DRIVERSDKINCLUDEDIR)) 104 | -------------------------------------------------------------------------------- /fb/Makefile: -------------------------------------------------------------------------------- 1 | include ../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../include -I../mi -I../fb -I../hw/kdrive -I../render -I../Xext $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | libICE.a: $(OBJS:.c=.o) 10 | ar cr libfb.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: libfb.a 14 | cp -f libfb.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /fb/fb.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fb.h -------------------------------------------------------------------------------- /fb/fb24_32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fb24_32.c -------------------------------------------------------------------------------- /fb/fb24_32.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fb24_32.h -------------------------------------------------------------------------------- /fb/fballpriv.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fballpriv.c -------------------------------------------------------------------------------- /fb/fbarc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbarc.c -------------------------------------------------------------------------------- /fb/fbbits.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbbits.c -------------------------------------------------------------------------------- /fb/fbbits.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbbits.h -------------------------------------------------------------------------------- /fb/fbblt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbblt.c -------------------------------------------------------------------------------- /fb/fbbltone.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbbltone.c -------------------------------------------------------------------------------- /fb/fbbstore.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbbstore.c -------------------------------------------------------------------------------- /fb/fbcompose.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbcompose.c -------------------------------------------------------------------------------- /fb/fbcopy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbcopy.c -------------------------------------------------------------------------------- /fb/fbfill.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbfill.c -------------------------------------------------------------------------------- /fb/fbfillrect.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbfillrect.c -------------------------------------------------------------------------------- /fb/fbfillsp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbfillsp.c -------------------------------------------------------------------------------- /fb/fbgc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbgc.c -------------------------------------------------------------------------------- /fb/fbgetsp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbgetsp.c -------------------------------------------------------------------------------- /fb/fbglyph.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbglyph.c -------------------------------------------------------------------------------- /fb/fbimage.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbimage.c -------------------------------------------------------------------------------- /fb/fbline.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbline.c -------------------------------------------------------------------------------- /fb/fbmodule.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 1998 The XFree86 Project, Inc. All Rights Reserved. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy 5 | * of this software and associated documentation files (the "Software"), to 6 | * deal in the Software without restriction, including without limitation the 7 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 8 | * sell copies of the Software, and to permit persons to whom the Software is 9 | * furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 18 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | * 21 | * Except as contained in this notice, the name of the XFree86 Project shall 22 | * not be used in advertising or otherwise to promote the sale, use or other 23 | * dealings in this Software without prior written authorization from the 24 | * XFree86 Project. 25 | */ 26 | /* $XFree86: xc/programs/Xserver/fb/fbmodule.c,v 1.3 2000/02/14 19:20:29 dawes Exp $ */ 27 | 28 | #ifdef XFree86LOADER 29 | 30 | #include "xf86Module.h" 31 | #include "fb.h" 32 | 33 | static XF86ModuleVersionInfo VersRec = 34 | { 35 | "fb", 36 | MODULEVENDORSTRING, 37 | MODINFOSTRING1, 38 | MODINFOSTRING2, 39 | XF86_VERSION_CURRENT, 40 | 1, 0, 0, 41 | ABI_CLASS_ANSIC, /* Only need the ansic layer */ 42 | ABI_ANSIC_VERSION, 43 | MOD_CLASS_NONE, 44 | {0,0,0,0} /* signature, to be patched into the file by a tool */ 45 | }; 46 | 47 | XF86ModuleData fbModuleData = { &VersRec, NULL, NULL }; 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /fb/fboverlay.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fboverlay.c -------------------------------------------------------------------------------- /fb/fboverlay.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fboverlay.h -------------------------------------------------------------------------------- /fb/fbpict.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbpict.c -------------------------------------------------------------------------------- /fb/fbpict.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbpict.h -------------------------------------------------------------------------------- /fb/fbpixmap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbpixmap.c -------------------------------------------------------------------------------- /fb/fbpoint.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbpoint.c -------------------------------------------------------------------------------- /fb/fbpush.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbpush.c -------------------------------------------------------------------------------- /fb/fbrop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbrop.h -------------------------------------------------------------------------------- /fb/fbscreen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbscreen.c -------------------------------------------------------------------------------- /fb/fbseg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbseg.c -------------------------------------------------------------------------------- /fb/fbsetsp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbsetsp.c -------------------------------------------------------------------------------- /fb/fbsolid.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbsolid.c -------------------------------------------------------------------------------- /fb/fbstipple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbstipple.c -------------------------------------------------------------------------------- /fb/fbtile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbtile.c -------------------------------------------------------------------------------- /fb/fbutil.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbutil.c -------------------------------------------------------------------------------- /fb/fbwindow.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/fb/fbwindow.c -------------------------------------------------------------------------------- /hw/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:48:20 cpqbld Exp $ 2 | XCOMM This is only used on NT where we do not know how to jump over this dir 3 | 4 | #ifdef Win32Architecture 5 | 6 | #define IHaveSubdirs 7 | #define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)" 8 | 9 | #if XnestServer 10 | XNESTDIR = xnest 11 | #endif 12 | 13 | #if XVirtualFramebufferServer 14 | XVFBDIR = vfb 15 | #endif 16 | 17 | SUBDIRS= $(XNESTDIR) $(XVFBDIR) 18 | 19 | MakeSubdirs($(SUBDIRS)) 20 | DependSubdirs($(SUBDIRS)) 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /hw/kdrive/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $XConsortium: Imakefile /main/10 1996/12/02 10:20:33 lehors $ 2 | XCOMM $XFree86: xc/programs/Xserver/hw/kdrive/Imakefile,v 1.8 2001/05/29 04:54:10 keithp Exp $ 3 | KDRIVE=. 4 | #include "Kdrive.tmpl" 5 | 6 | #if BuildRender 7 | RENDERSRCS=kpict.c 8 | RENDEROBJS=kpict.o 9 | #endif 10 | 11 | #if BuildXvExt 12 | XVSRCS=kxv.c 13 | XVOBJS=kxv.o 14 | #endif 15 | 16 | #if XipaqServer 17 | DEFINES = -DXIPAQ 18 | #endif 19 | 20 | SRCS = kaa.c kcmap.c kcolor.c kdrive.c kinfo.c kinput.c kmap.c knoop.c ktest.c \ 21 | vga.c kasync.c kmode.c kcurscol.c kshadow.c $(RENDERSRCS) $(XVSRCS) 22 | 23 | OBJS = kaa.o kcmap.o kcolor.o kdrive.o kinfo.o kinput.o kmap.o knoop.o ktest.o \ 24 | vga.o kasync.o kmode.o kcurscol.o kshadow.o $(RENDEROBJS) $(XVOBJS) 25 | 26 | INCLUDES = $(KDINCS) 27 | 28 | NormalLibraryObjectRule() 29 | NormalLibraryTarget(kdrive,$(OBJS)) 30 | 31 | SpecialCObjectRule(kdrive,,$(EXT_DEFINES)) 32 | 33 | InstallManPage(Xkdrive,$(MANDIR)) 34 | DependTarget() 35 | -------------------------------------------------------------------------------- /hw/kdrive/Kdrive.tmpl: -------------------------------------------------------------------------------- 1 | XCOMM $XFree86: xc/programs/Xserver/hw/kdrive/Kdrive.tmpl,v 1.4 2001/10/29 16:34:56 tsi Exp $ 2 | 3 | #include 4 | 5 | #if BuildRender 6 | RENDERINCS=-I$(KDRIVE)/../../render 7 | #endif 8 | 9 | #if BuildRandR 10 | RANDRINCS=-I$(KDRIVE)/../../randr 11 | #endif 12 | 13 | KDINCS = -I$(KDRIVE) -I$(XBUILDINCDIR) -I$(FONTINCSRC) \ 14 | -I$(KDRIVE)/../../fb -I$(KDRIVE)/../../mi -I$(KDRIVE)/../../Xext \ 15 | -I$(KDRIVE)/../../miext/shadow -I$(KDRIVE)/../../miext/layer \ 16 | -I$(KDRIVE)/../../include -I$(KDRIVE)/../../os \ 17 | -I$(EXTINCSRC) -I$(XINCLUDESRC) $(RENDERINCS) $(RANDRINCS) 18 | -------------------------------------------------------------------------------- /hw/kdrive/Makefile: -------------------------------------------------------------------------------- 1 | include ../../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../../include -I../../mi -I../../fb -I../../Xext -I../../render $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | libICE.a: $(OBJS:.c=.o) 10 | ar cr libkdrive.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: libkdrive.a 14 | cp -f libkdrive.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /hw/kdrive/Xkdrive.man: -------------------------------------------------------------------------------- 1 | .\" $XFree86: xc/programs/Xserver/hw/kdrive/Xkdrive.man,v 1.4 2001/01/27 18:20:40 dawes Exp $ 2 | .\" 3 | .TH Xkdrive 1 __vendorversion__ 4 | .SH NAME 5 | Xkdrive \- tiny X server 6 | .SH SYNOPSIS 7 | .B Xvesa 8 | .RI [ :display ] 9 | .RI [ option ...] 10 | 11 | .B Xfbdev 12 | .RI [ :display ] 13 | .RI [ option ...] 14 | 15 | .B Xigs 16 | .RI [ :display ] 17 | .RI [ option ...] 18 | 19 | .B Xtrident 20 | .RI [ :display ] 21 | .RI [ option ...] 22 | 23 | .B Xsis530 24 | .RI [ :display ] 25 | .RI [ option ...] 26 | 27 | .B Xtrio 28 | .RI [ :display ] 29 | .RI [ option ...] 30 | 31 | .B Xitsy 32 | .RI [ :display ] 33 | .RI [ option ...] 34 | .SH DESCRIPTION 35 | .B Xkdrive 36 | is a family of X servers designed to be particularly small. This 37 | manual page describes the common functionality of the 38 | .B Xkdrive 39 | servers; for information on a specific X server, please refer to the 40 | relevant manual page. 41 | .SH OPTIONS 42 | In addition to the standard options accepted by all X servers (see 43 | Xserver(1)), all the 44 | .B Xkdrive 45 | servers accept the following options: 46 | .TP 8 47 | .B -screen \fIwidth\fBx\fIheight\fR[\fBx\fIdepth\fR]\fB 48 | use a screen of the specified size. 49 | .TP 8 50 | .B -zaphod 51 | disable switching screens by moving the pointer accross a screen boundary. 52 | .TP 8 53 | .B -3button 54 | disable emulation of a middle mouse button by chording. 55 | .TP 8 56 | .B -2button 57 | enable emulation of a middle mouse button by chording. 58 | .TP 8 59 | .B -dumb 60 | disable hardware acceleration. 61 | .TP 8 62 | .B -softCursor 63 | disable the hardware cursor. 64 | .TP 8 65 | .B -card \fIcard\fB 66 | not documented. 67 | .TP 8 68 | .B -videoTest 69 | not documented. 70 | .TP 8 71 | .B -standalone 72 | not documented. 73 | .SH SEE ALSO 74 | X(__miscmansuffix__), Xserver(1), xdm(1), xinit(1), Xvesa(1), Xfbdev(1). 75 | .SH AUTHORS 76 | The Xkdrive common core was written by Keith Packard, based on XFree86 77 | which, in turn, is based on the Sample Implementation of X. 78 | -------------------------------------------------------------------------------- /hw/kdrive/fbdev/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $XConsortium: Imakefile /main/10 1996/12/02 10:20:33 lehors $ 2 | XCOMM $XFree86: xc/programs/Xserver/hw/kdrive/fbdev/Imakefile,v 1.5 2001/05/24 19:31:46 alanh Exp $ 3 | KDRIVE=.. 4 | #include "../Kdrive.tmpl" 5 | 6 | #if XipaqServer 7 | DEFINES = -DXIPAQ 8 | #endif 9 | 10 | SRCS = fbdev.c fbinit.c 11 | 12 | OBJS = fbdev.o fbinit.o 13 | 14 | INCLUDES = $(KDINCS) -I. 15 | 16 | NormalLibraryObjectRule() 17 | NormalLibraryTarget(fbdev,$(OBJS)) 18 | InstallManPage(Xfbdev,$(MANDIR)) 19 | DependTarget() 20 | -------------------------------------------------------------------------------- /hw/kdrive/fbdev/Makefile: -------------------------------------------------------------------------------- 1 | include ../../../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../../../include -I../../../mi -I../../../miext/layer -I../../../fb -I../hw/kdrive -I../../../render $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | libICE.a: $(OBJS:.c=.o) 10 | ar cr libfbdev.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: libfbdev.a 14 | cp -f libfbdev.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /hw/kdrive/fbdev/Xfbdev.man: -------------------------------------------------------------------------------- 1 | .\" $XFree86: xc/programs/Xserver/hw/kdrive/fbdev/Xfbdev.man,v 1.5 2001/02/13 21:15:15 dawes Exp $ 2 | .\" 3 | .TH Xfbdev 1 __vendorversion__ 4 | .SH NAME 5 | Xfbdev \- Linux framebuffer device tiny X server 6 | .SH SYNOPSIS 7 | .B Xfbdev 8 | .RI [ :display ] 9 | .RI [ option ...] 10 | .SH DESCRIPTION 11 | .B Xfbdev 12 | is a generic X server for Linux. 13 | .B Xfbdev 14 | doesn't know about any particular hardware, and uses the framebuffer 15 | provided by the Linux framebuffer device. 16 | .SH OPTIONS 17 | .B Xfbdev 18 | accepts the common options of the Xkdrive family of servers. Please 19 | see Xkdrive(1). 20 | .SH KEYBOARD 21 | To be written. 22 | .SH SEE ALSO 23 | X(__miscmansuffix__), Xserver(1), Xkdrive(1), xdm(1), xinit(1). 24 | .SH AUTHORS 25 | The 26 | .B Xfbdev 27 | server was written by Keith Packard. 28 | 29 | -------------------------------------------------------------------------------- /hw/kdrive/fbdev/fbdev.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/fbdev/fbdev.c -------------------------------------------------------------------------------- /hw/kdrive/fbdev/fbdev.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/fbdev/fbdev.h -------------------------------------------------------------------------------- /hw/kdrive/fbdev/fbinit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/fbdev/fbinit.c -------------------------------------------------------------------------------- /hw/kdrive/kaa.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kaa.c -------------------------------------------------------------------------------- /hw/kdrive/kasync.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kasync.c -------------------------------------------------------------------------------- /hw/kdrive/kcmap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kcmap.c -------------------------------------------------------------------------------- /hw/kdrive/kcolor.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kcolor.c -------------------------------------------------------------------------------- /hw/kdrive/kcurscol.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kcurscol.c -------------------------------------------------------------------------------- /hw/kdrive/kdrive.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kdrive.c -------------------------------------------------------------------------------- /hw/kdrive/kdrive.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kdrive.h -------------------------------------------------------------------------------- /hw/kdrive/kinfo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kinfo.c -------------------------------------------------------------------------------- /hw/kdrive/kinput.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kinput.c -------------------------------------------------------------------------------- /hw/kdrive/kkeymap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kkeymap.h -------------------------------------------------------------------------------- /hw/kdrive/kmap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kmap.c -------------------------------------------------------------------------------- /hw/kdrive/knoop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/knoop.c -------------------------------------------------------------------------------- /hw/kdrive/kpict.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kpict.c -------------------------------------------------------------------------------- /hw/kdrive/kshadow.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/kshadow.c -------------------------------------------------------------------------------- /hw/kdrive/ktest.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/ktest.c -------------------------------------------------------------------------------- /hw/kdrive/linux/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $XConsortium: Imakefile /main/10 1996/12/02 10:20:33 lehors $ 2 | XCOMM $XFree86: xc/programs/Xserver/hw/kdrive/linux/Imakefile,v 1.8 2001/10/12 06:33:09 keithp Exp $ 3 | KDRIVE=.. 4 | #include "../Kdrive.tmpl" 5 | 6 | #if TouchScreen 7 | TSSRCS = ts.c 8 | TSOBJS = ts.o 9 | #endif 10 | 11 | SRCS = keyboard.c linux.c mouse.c ps2.c bus.c ms.c agp.c $(TSSRCS) 12 | 13 | OBJS = keyboard.o linux.o mouse.o ps2.o bus.o ms.o agp.o $(TSOBJS) 14 | 15 | INCLUDES = -I. $(KDINCS) 16 | 17 | NormalLibraryObjectRule() 18 | NormalLibraryTarget(linux,$(OBJS)) 19 | 20 | DependTarget() 21 | -------------------------------------------------------------------------------- /hw/kdrive/linux/Makefile: -------------------------------------------------------------------------------- 1 | include ../../../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../../../include -I../../../mi -I../../../fb -I../../../hw/kdrive -I../../../render $(COMMONDEFS) $(DEFS) 6 | OBJS=$(wildcard *.c) 7 | #OBJS=keyboard.c linux.c mouse.c ps2.c bus.c ms.c agp.c 8 | 9 | libICE.a: $(OBJS:.c=.o) 10 | ar cr liblinux.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: liblinux.a 14 | cp -f liblinux.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /hw/kdrive/linux/agp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/linux/agp.c -------------------------------------------------------------------------------- /hw/kdrive/linux/agp.h: -------------------------------------------------------------------------------- 1 | /* COPYRIGHT AND PERMISSION NOTICE 2 | 3 | Copyright (c) 2000, 2001 Nokia Home Communications 4 | 5 | All rights reserved. 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining 8 | a copy of this software and associated documentation files (the 9 | "Software"), to deal in the Software without restriction, including 10 | without limitation the rights to use, copy, modify, merge, publish, 11 | distribute, and/or sell copies of the Software, and to permit persons 12 | to whom the Software is furnished to do so, provided that the above 13 | copyright notice(s) and this permission notice appear in all copies of 14 | the Software and that both the above copyright notice(s) and this 15 | permission notice appear in supporting documentation. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 20 | OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 21 | HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY 22 | SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER 23 | RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF 24 | CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 25 | CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 26 | 27 | Except as contained in this notice, the name of a copyright holder 28 | shall not be used in advertising or otherwise to promote the sale, use 29 | or other dealings in this Software without prior written authorization 30 | of the copyright holder. 31 | 32 | X Window System is a trademark of The Open Group */ 33 | 34 | /* agp.h - header file for KDrive AGP GART interface 35 | * 36 | * Author: Pontus Lidman 37 | * 38 | */ 39 | 40 | #ifndef _AGP_H_ 41 | #define _AGP_H_ 42 | 43 | #include 44 | 45 | /* These two definitions must be consistent with the kernel's, 46 | but using 1 or 2 in driver code is even uglier */ 47 | #define AGP_DCACHE_MEMORY 1 48 | #define AGP_PHYS_MEMORY 2 49 | 50 | typedef struct _AgpInfo { 51 | CARD32 bridgeId; 52 | CARD32 agpMode; 53 | unsigned long base; 54 | unsigned long size; 55 | unsigned long totalPages; 56 | unsigned long systemPages; 57 | unsigned long usedPages; 58 | } AgpInfo, *AgpInfoPtr; 59 | 60 | extern Bool KdAgpGARTSupported(void); 61 | extern AgpInfoPtr KdGetAGPInfo(int screenNum); 62 | extern Bool KdAcquireGART(int screenNum); 63 | extern Bool KdReleaseGART(int screenNum); 64 | extern int KdAllocateGARTMemory(int screenNum, unsigned long size, int type, 65 | unsigned long *physical); 66 | extern Bool KdBindGARTMemory(int screenNum, int key, unsigned long offset); 67 | extern Bool KdUnbindGARTMemory(int screenNum, int key); 68 | extern Bool KdEnableAGP(int screenNum, CARD32 mode); 69 | 70 | #endif /* _AGP_H_ */ 71 | -------------------------------------------------------------------------------- /hw/kdrive/linux/bus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/linux/bus.c -------------------------------------------------------------------------------- /hw/kdrive/linux/keyboard.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/linux/keyboard.c -------------------------------------------------------------------------------- /hw/kdrive/linux/linux.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/linux/linux.c -------------------------------------------------------------------------------- /hw/kdrive/linux/mouse.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/linux/mouse.c -------------------------------------------------------------------------------- /hw/kdrive/linux/ps2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/linux/ps2.c -------------------------------------------------------------------------------- /hw/kdrive/vesa/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $XFree86: xc/programs/Xserver/hw/kdrive/vesa/Imakefile,v 1.3 2000/10/20 00:19:50 keithp Exp $ 2 | KDRIVE=.. 3 | #include "../Kdrive.tmpl" 4 | 5 | SRCS = vesa.c vesainit.c vbe.c vga.c vm86.c 6 | 7 | OBJS = vesa.o vesainit.o vbe.o vga.o vm86.o 8 | 9 | INCLUDES = -I. $(KDINCS) 10 | 11 | NormalLibraryObjectRule() 12 | NormalLibraryTarget(vesa,$(OBJS)) 13 | InstallManPage(Xvesa,$(MANDIR)) 14 | DependTarget() 15 | -------------------------------------------------------------------------------- /hw/kdrive/vesa/Makefile: -------------------------------------------------------------------------------- 1 | include ../../../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../../../include -I../../../mi -I../../../miext/layer -I../../../fb -I../../../render -I../.. $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | libICE.a: $(OBJS:.c=.o) 10 | ar cr libvesa.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: libvesa.a 14 | cp -f libvesa.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /hw/kdrive/vesa/Xvesa.man: -------------------------------------------------------------------------------- 1 | .\" $XFree86: xc/programs/Xserver/hw/kdrive/vesa/Xvesa.man,v 1.6 2001/01/27 18:20:40 dawes Exp $ 2 | .TH Xvesa 1 __vendorversion__ 3 | .SH NAME 4 | Xvesa \- VESA Bios Extensions tiny X server 5 | .SH SYNOPSIS 6 | .B Xvesa 7 | .RI [ :display ] 8 | .RI [ option ...] 9 | .SH DESCRIPTION 10 | .B Xvesa 11 | is a generic X server for Linux on the x86 platform. 12 | .B Xvesa 13 | doesn't know about any particular hardware, and sets the video mode by 14 | running the video BIOS in VM86 mode. 15 | .B Xvesa 16 | can use both standard VGA BIOS modes and any modes advertised by a 17 | VESA BIOS if available. 18 | .B Xvesa 19 | runs untrusted code with full privileges, and is therefore a fairly 20 | insecure X server. 21 | .B Run at your own risk. 22 | .SH OPTIONS 23 | In addition to the normal KDrive server's options (see Xkdrive(1)), 24 | .B Xvesa 25 | accepts the following command line switches: 26 | .TP 8 27 | .B -mode \fIn\fB 28 | specifies the VESA video mode to use. If mode 29 | .I n 30 | is not supported by your BIOS and hardware, 31 | .B Xvesa 32 | will fail, hang your system, or cause your monitor to explode; you are 33 | on your own. This option overrides any 34 | .B -screen 35 | options. 36 | .TP 8 37 | .B -listmodes 38 | list all supported video modes. If 39 | .B -force 40 | was specified before 41 | .BR -listmodes , 42 | lists all the modes that your BIOS claims to support, even those that 43 | the 44 | .B Xvesa 45 | server won't be able to use. 46 | .TP 8 47 | .B -force 48 | disable some sanity checks and use the specified mode even if the 49 | BIOS claims not to support it. 50 | .TP 8 51 | .B -shadow 52 | use a shadow framebuffer even if it is not strictly necessary. This 53 | may dramatically improve performance on some hardware. 54 | .TP 8 55 | .B -nolinear 56 | don't use a linear framebuffer even if one is available. You don't 57 | want to use this option. 58 | .TP 8 59 | .B -swaprgb 60 | pass RGB values in the order that works on broken BIOSes. Use this if 61 | the colours are wrong in PseudoColor and 16 colour modes. 62 | .TP 8 63 | .B -verbose 64 | emit diagnostic messages during BIOS initialization and teardown. 65 | .SH KEYBOARD 66 | To be written. 67 | .SH BUGS 68 | .B Xvesa 69 | opens all IO ports and runs your VESA BIOS, which may be assumed to be 70 | buggy. Allowing your users to run 71 | .B Xvesa 72 | is probably a security hole. 73 | 74 | .B Xvesa 75 | records the current BIOS mode when it starts and restores that mode on 76 | termination; if the video card has been reprogrammed by another application, 77 | the display will almost certainly be trashed. The alternative of saving and 78 | restoring the complete video card state has proven unreliable on most video 79 | cards. 80 | .SH SEE ALSO 81 | X(__miscmansuffix__), Xserver(1), Xkdrive(1), xdm(1), xinit(1). 82 | .SH AUTHORS 83 | The VESA driver was written by Juliusz Chroboczek who didn't realise 84 | what he was doing until it was too late. Keith Packard then added 85 | support for standard VGA BIOS modes and is especially proud of 320x200 86 | 16 colour mode. 87 | -------------------------------------------------------------------------------- /hw/kdrive/vesa/vesainit.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2000 by Juliusz Chroboczek 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | */ 22 | /* $XFree86: xc/programs/Xserver/hw/kdrive/vesa/vesainit.c,v 1.8 2001/10/12 06:33:12 keithp Exp $ */ 23 | 24 | #include "vesa.h" 25 | 26 | const KdCardFuncs vesaFuncs = { 27 | vesaCardInit, /* cardinit */ 28 | vesaScreenInit, /* scrinit */ 29 | vesaInitScreen, /* initScreen */ 30 | vesaPreserve, /* preserve */ 31 | vesaEnable, /* enable */ 32 | vesaDPMS, /* dpms */ 33 | vesaDisable, /* disable */ 34 | vesaRestore, /* restore */ 35 | vesaScreenFini, /* scrfini */ 36 | vesaCardFini, /* cardfini */ 37 | 38 | 0, /* initCursor */ 39 | 0, /* enableCursor */ 40 | 0, /* disableCursor */ 41 | 0, /* finiCursor */ 42 | 0, /* recolorCursor */ 43 | 44 | 0, /* initAccel */ 45 | 0, /* enableAccel */ 46 | 0, /* syncAccel */ 47 | 0, /* disableAccel */ 48 | 0, /* finiAccel */ 49 | 50 | vesaGetColors, /* getColors */ 51 | vesaPutColors, /* putColors */ 52 | 53 | vesaFinishInitScreen, /* finishInitScreen */ 54 | }; 55 | 56 | void 57 | InitCard(char *name) 58 | { 59 | KdCardAttr attr; 60 | KdCardInfoAdd((KdCardFuncs *) &vesaFuncs, &attr, 0); 61 | } 62 | 63 | void 64 | InitOutput (ScreenInfo *pScreenInfo, int argc, char **argv) 65 | { 66 | KdInitOutput (pScreenInfo, argc, argv); 67 | } 68 | 69 | void 70 | InitInput (int argc, char **argv) 71 | { 72 | KdInitInput(&LinuxMouseFuncs, &LinuxKeyboardFuncs); 73 | } 74 | 75 | int 76 | ddxProcessArgument (int argc, char **argv, int i) 77 | { 78 | int ret; 79 | 80 | if (!(ret = vesaProcessArgument (argc, argv, i))) 81 | ret = KdProcessArgument(argc, argv, i); 82 | return ret; 83 | } 84 | -------------------------------------------------------------------------------- /hw/kdrive/vesa/vga.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/vesa/vga.c -------------------------------------------------------------------------------- /hw/kdrive/vesa/vga.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/vesa/vga.h -------------------------------------------------------------------------------- /hw/kdrive/vesa/vm86.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/vesa/vm86.c -------------------------------------------------------------------------------- /hw/kdrive/vesa/vm86.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/vesa/vm86.h -------------------------------------------------------------------------------- /hw/kdrive/vga.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/vga.c -------------------------------------------------------------------------------- /hw/kdrive/vga.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/hw/kdrive/vga.h -------------------------------------------------------------------------------- /hw/xfree86/common/xf86Opt.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Opt.h,v 1.12 2001/05/04 19:05:30 dawes Exp $ */ 2 | 3 | /* Option handling things that ModuleSetup procs can use */ 4 | 5 | #ifndef _XF86_OPT_H_ 6 | #define _XF86_OPT_H_ 7 | 8 | typedef struct { 9 | double freq; 10 | int units; 11 | } OptFrequency; 12 | 13 | typedef union { 14 | unsigned long num; 15 | char * str; 16 | double realnum; 17 | Bool bool; 18 | OptFrequency freq; 19 | } ValueUnion; 20 | 21 | typedef enum { 22 | OPTV_NONE = 0, 23 | OPTV_INTEGER, 24 | OPTV_STRING, /* a non-empty string */ 25 | OPTV_ANYSTR, /* Any string, including an empty one */ 26 | OPTV_REAL, 27 | OPTV_BOOLEAN, 28 | OPTV_FREQ 29 | } OptionValueType; 30 | 31 | typedef enum { 32 | OPTUNITS_HZ = 1, 33 | OPTUNITS_KHZ, 34 | OPTUNITS_MHZ 35 | } OptFreqUnits; 36 | 37 | typedef struct { 38 | int token; 39 | const char* name; 40 | OptionValueType type; 41 | ValueUnion value; 42 | Bool found; 43 | } OptionInfoRec, *OptionInfoPtr; 44 | 45 | int xf86SetIntOption(pointer optlist, const char *name, int deflt); 46 | double xf86SetRealOption(pointer optlist, const char *name, double deflt); 47 | char *xf86SetStrOption(pointer optlist, const char *name, char *deflt); 48 | int xf86SetBoolOption(pointer list, const char *name, int deflt ); 49 | pointer xf86AddNewOption(pointer head, char *name, char *val ); 50 | pointer xf86NewOption(char *name, char *value ); 51 | pointer xf86NextOption(pointer list ); 52 | pointer xf86OptionListCreate(const char **options, int count, int used); 53 | pointer xf86OptionListMerge(pointer head, pointer tail); 54 | void xf86OptionListFree(pointer opt); 55 | char *xf86OptionName(pointer opt); 56 | char *xf86OptionValue(pointer opt); 57 | void xf86OptionListReport(pointer parm); 58 | pointer xf86FindOption(pointer options, const char *name); 59 | char *xf86FindOptionValue(pointer options, const char *name); 60 | void xf86MarkOptionUsed(pointer option); 61 | void xf86MarkOptionUsedByName(pointer options, const char *name); 62 | Bool xf86CheckIfOptionUsed(pointer option); 63 | Bool xf86CheckIfOptionUsedByName(pointer options, const char *name); 64 | void xf86ShowUnusedOptions(int scrnIndex, pointer options); 65 | void xf86ProcessOptions(int scrnIndex, pointer options, OptionInfoPtr optinfo); 66 | OptionInfoPtr xf86TokenToOptinfo(const OptionInfoRec *table, int token); 67 | const char *xf86TokenToOptName(const OptionInfoRec *table, int token); 68 | Bool xf86IsOptionSet(const OptionInfoRec *table, int token); 69 | char *xf86GetOptValString(const OptionInfoRec *table, int token); 70 | Bool xf86GetOptValInteger(const OptionInfoRec *table, int token, int *value); 71 | Bool xf86GetOptValULong(const OptionInfoRec *table, int token, unsigned long *value); 72 | Bool xf86GetOptValReal(const OptionInfoRec *table, int token, double *value); 73 | Bool xf86GetOptValFreq(const OptionInfoRec *table, int token, 74 | OptFreqUnits expectedUnits, double *value); 75 | Bool xf86GetOptValBool(const OptionInfoRec *table, int token, Bool *value); 76 | Bool xf86ReturnOptValBool(const OptionInfoRec *table, int token, Bool def); 77 | int xf86NameCmp(const char *s1, const char *s2); 78 | char *xf86NormalizeName(const char *s); 79 | pointer xf86ReplaceIntOption(pointer optlist, char *name, int val); 80 | pointer xf86ReplaceBoolOption(pointer optlist, char *name, Bool val); 81 | pointer xf86ReplaceStrOption(pointer optlist, char *name, char* val); 82 | #endif 83 | -------------------------------------------------------------------------------- /hw/xfree86/xf86Version.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/hw/xfree86/xf86Version.h,v 3.487 2002/01/18 20:09:24 dawes Exp $ */ 2 | 3 | #ifndef XF86_VERSION_CURRENT 4 | 5 | #define XF86_VERSION_MAJOR 4 6 | #define XF86_VERSION_MINOR 2 7 | #define XF86_VERSION_PATCH 0 8 | #define XF86_VERSION_SNAP 0 9 | 10 | /* This has five arguments for compatibilty reasons */ 11 | #define XF86_VERSION_NUMERIC(major,minor,patch,snap,dummy) \ 12 | (((major) * 10000000) + ((minor) * 100000) + ((patch) * 1000) + snap) 13 | 14 | /* Define these for compatibility. They'll be removed at some point. */ 15 | #define XF86_VERSION_SUBMINOR XF86_VERSION_PATCH 16 | #define XF86_VERSION_BETA 0 17 | #define XF86_VERSION_ALPHA XF86_VERSION_SNAP 18 | 19 | #define XF86_VERSION_CURRENT \ 20 | XF86_VERSION_NUMERIC(XF86_VERSION_MAJOR, \ 21 | XF86_VERSION_MINOR, \ 22 | XF86_VERSION_PATCH, \ 23 | XF86_VERSION_SNAP, \ 24 | 0) 25 | 26 | 27 | #define XF86_DATE "18 January 2002" 28 | 29 | #endif 30 | 31 | /* $XConsortium: xf86Version.h /main/78 1996/10/28 05:42:10 kaleb $ */ 32 | -------------------------------------------------------------------------------- /include/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:53:29 cpqbld Exp $ 2 | 3 | 4 | 5 | 6 | XCOMM $XFree86: xc/programs/Xserver/include/Imakefile,v 3.21 2001/01/17 22:36:56 dawes Exp $ 7 | 8 | #if defined(XFree86Version) || defined(BSDOSArchitecture) 9 | #if DoLoadableServer 10 | LinkSourceFile(xf86Module.h,$(XF86COMSRC)) 11 | LinkSourceFile(xf86Opt.h,$(XF86COMSRC)) 12 | #endif 13 | LinkSourceFile(xf86_libc.h,$(XF86OSSRC)) 14 | LinkSourceFile(xf86_ansic.h,$(XF86OSSRC)) 15 | LinkSourceFile(xf86Version.h,$(XF86SRC)) 16 | LinkSourceFile(compiler.h,$(XF86COMSRC)) 17 | #endif 18 | 19 | LinkSourceFile(osdep.h,../os) 20 | #ifdef cygwinArchitecture 21 | LinkFile(xxwindow.h,window.h) 22 | #endif 23 | 24 | all:: 25 | 26 | depend:: 27 | 28 | 29 | InstallDriverSDKNonExecFile(XIstubs.h,$(DRIVERSDKINCLUDEDIR)) 30 | InstallDriverSDKNonExecFile(bstore.h,$(DRIVERSDKINCLUDEDIR)) 31 | InstallDriverSDKNonExecFile(bstorestr.h,$(DRIVERSDKINCLUDEDIR)) 32 | InstallDriverSDKNonExecFile(colormap.h,$(DRIVERSDKINCLUDEDIR)) 33 | InstallDriverSDKNonExecFile(colormapst.h,$(DRIVERSDKINCLUDEDIR)) 34 | InstallDriverSDKNonExecFile(cursor.h,$(DRIVERSDKINCLUDEDIR)) 35 | InstallDriverSDKNonExecFile(cursorstr.h,$(DRIVERSDKINCLUDEDIR)) 36 | InstallDriverSDKNonExecFile(dix.h,$(DRIVERSDKINCLUDEDIR)) 37 | InstallDriverSDKNonExecFile(dixstruct.h,$(DRIVERSDKINCLUDEDIR)) 38 | InstallDriverSDKNonExecFile(extension.h,$(DRIVERSDKINCLUDEDIR)) 39 | InstallDriverSDKNonExecFile(extnsionst.h,$(DRIVERSDKINCLUDEDIR)) 40 | InstallDriverSDKNonExecFile(gc.h,$(DRIVERSDKINCLUDEDIR)) 41 | InstallDriverSDKNonExecFile(gcstruct.h,$(DRIVERSDKINCLUDEDIR)) 42 | InstallDriverSDKNonExecFile(globals.h,$(DRIVERSDKINCLUDEDIR)) 43 | InstallDriverSDKNonExecFile(input.h,$(DRIVERSDKINCLUDEDIR)) 44 | InstallDriverSDKNonExecFile(inputstr.h,$(DRIVERSDKINCLUDEDIR)) 45 | InstallDriverSDKNonExecFile(misc.h,$(DRIVERSDKINCLUDEDIR)) 46 | InstallDriverSDKNonExecFile(miscstruct.h,$(DRIVERSDKINCLUDEDIR)) 47 | InstallDriverSDKNonExecFile(opaque.h,$(DRIVERSDKINCLUDEDIR)) 48 | InstallDriverSDKNonExecFile(os.h,$(DRIVERSDKINCLUDEDIR)) 49 | InstallDriverSDKNonExecFile(pixmap.h,$(DRIVERSDKINCLUDEDIR)) 50 | InstallDriverSDKNonExecFile(pixmapstr.h,$(DRIVERSDKINCLUDEDIR)) 51 | InstallDriverSDKNonExecFile(property.h,$(DRIVERSDKINCLUDEDIR)) 52 | InstallDriverSDKNonExecFile(propertyst.h,$(DRIVERSDKINCLUDEDIR)) 53 | InstallDriverSDKNonExecFile(region.h,$(DRIVERSDKINCLUDEDIR)) 54 | InstallDriverSDKNonExecFile(regionstr.h,$(DRIVERSDKINCLUDEDIR)) 55 | InstallDriverSDKNonExecFile(resource.h,$(DRIVERSDKINCLUDEDIR)) 56 | InstallDriverSDKNonExecFile(screenint.h,$(DRIVERSDKINCLUDEDIR)) 57 | InstallDriverSDKNonExecFile(scrnintstr.h,$(DRIVERSDKINCLUDEDIR)) 58 | InstallDriverSDKNonExecFile(servermd.h,$(DRIVERSDKINCLUDEDIR)) 59 | InstallDriverSDKNonExecFile(validate.h,$(DRIVERSDKINCLUDEDIR)) 60 | InstallDriverSDKNonExecFile(window.h,$(DRIVERSDKINCLUDEDIR)) 61 | InstallDriverSDKNonExecFile(windowstr.h,$(DRIVERSDKINCLUDEDIR)) 62 | -------------------------------------------------------------------------------- /include/bstore.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/include/bstore.h,v 1.2 2001/01/06 20:58:12 tsi Exp $*/ 2 | /* 3 | * Copyright (c) 1987 by the Regents of the University of California 4 | * 5 | * Permission to use, copy, modify, and distribute this software and its 6 | * documentation for any purpose and without fee is hereby granted, provided 7 | * that the above copyright notice appear in all copies. The University of 8 | * California makes no representations about the suitability of this software 9 | * for any purpose. It is provided "as is" without express or implied 10 | * warranty. 11 | */ 12 | 13 | /* 14 | * Moved here from mi to allow wrapping of lower level backing store functions. 15 | * -- 1997.10.27 Marc Aurele La France (tsi@xfree86.org) 16 | */ 17 | 18 | #ifndef _BSTORE_H_ 19 | #define _BSTORE_H_ 20 | 21 | #include "bstorestr.h" 22 | 23 | #endif /* _BSTORE_H_ */ 24 | -------------------------------------------------------------------------------- /include/bstorestr.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/include/bstorestr.h,v 1.2 2001/01/06 20:58:12 tsi Exp $*/ 2 | /* 3 | * Copyright (c) 1987 by the Regents of the University of California 4 | * 5 | * Permission to use, copy, modify, and distribute this software and its 6 | * documentation for any purpose and without fee is hereby granted, provided 7 | * that the above copyright notice appear in all copies. The University of 8 | * California makes no representations about the suitability of this software 9 | * for any purpose. It is provided "as is" without express or implied 10 | * warranty. 11 | */ 12 | 13 | /* 14 | * Moved here from mi to allow wrapping of lower level backing store functions. 15 | * -- 1997.10.27 Marc Aurele La France (tsi@xfree86.org) 16 | */ 17 | 18 | #ifndef _BSTORESTR_H_ 19 | #define _BSTORESTR_H_ 20 | 21 | #include "gc.h" 22 | #include "pixmap.h" 23 | #include "region.h" 24 | #include "window.h" 25 | 26 | typedef void (* BackingStoreSaveAreasProcPtr)( 27 | #if NeedNestedPrototypes 28 | PixmapPtr /*pBackingPixmap*/, 29 | RegionPtr /*pObscured*/, 30 | int /*x*/, 31 | int /*y*/, 32 | WindowPtr /*pWin*/ 33 | #endif 34 | ); 35 | 36 | typedef void (* BackingStoreRestoreAreasProcPtr)( 37 | #if NeedNestedPrototypes 38 | PixmapPtr /*pBackingPixmap*/, 39 | RegionPtr /*pExposed*/, 40 | int /*x*/, 41 | int /*y*/, 42 | WindowPtr /*pWin*/ 43 | #endif 44 | ); 45 | 46 | typedef void (* BackingStoreSetClipmaskRgnProcPtr)( 47 | #if NeedNestedPrototypes 48 | GCPtr /*pBackingGC*/, 49 | RegionPtr /*pbackingCompositeClip*/ 50 | #endif 51 | ); 52 | 53 | typedef PixmapPtr (* BackingStoreGetImagePixmapProcPtr)( /* unused */ 54 | #if NeedNestedPrototypes 55 | void 56 | #endif 57 | ); 58 | 59 | typedef PixmapPtr (* BackingStoreGetSpansPixmapProcPtr)( /* unused */ 60 | #if NeedNestedPrototypes 61 | void 62 | #endif 63 | ); 64 | 65 | typedef struct _BSFuncs { 66 | 67 | BackingStoreSaveAreasProcPtr SaveAreas; 68 | BackingStoreRestoreAreasProcPtr RestoreAreas; 69 | BackingStoreSetClipmaskRgnProcPtr SetClipmaskRgn; 70 | BackingStoreGetImagePixmapProcPtr GetImagePixmap; 71 | BackingStoreGetSpansPixmapProcPtr GetSpansPixmap; 72 | 73 | } BSFuncRec, *BSFuncPtr; 74 | 75 | #endif /* _BSTORESTR_H_ */ 76 | -------------------------------------------------------------------------------- /include/closure.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: closure.h,v 1.4 2001/02/09 02:05:14 xorgcvs Exp $ */ 2 | /*********************************************************** 3 | 4 | Copyright 1987, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | 26 | 27 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 28 | 29 | All Rights Reserved 30 | 31 | Permission to use, copy, modify, and distribute this software and its 32 | documentation for any purpose and without fee is hereby granted, 33 | provided that the above copyright notice appear in all copies and that 34 | both that copyright notice and this permission notice appear in 35 | supporting documentation, and that the name of Digital not be 36 | used in advertising or publicity pertaining to distribution of the 37 | software without specific, written prior permission. 38 | 39 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 40 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 41 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 42 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 44 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 45 | SOFTWARE. 46 | 47 | ******************************************************************/ 48 | #ifndef CLOSURE_H 49 | #define CLOSURE_H 1 50 | 51 | typedef struct _LFclosure *LFclosurePtr; 52 | typedef struct _LFWIclosure *LFWIclosurePtr; 53 | typedef struct _OFclosure *OFclosurePtr; 54 | typedef struct _PTclosure *PTclosurePtr; 55 | typedef struct _ITclosure *ITclosurePtr; 56 | 57 | #endif /* CLOSURE_H */ 58 | -------------------------------------------------------------------------------- /include/dixgrabs.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/include/dixgrabs.h,v 3.0 1996/04/15 11:34:27 dawes Exp $ */ 2 | /************************************************************ 3 | 4 | Copyright 1996 by Thomas E. Dickey 5 | 6 | All Rights Reserved 7 | 8 | Permission to use, copy, modify, and distribute this software and its 9 | documentation for any purpose and without fee is hereby granted, 10 | provided that the above copyright notice appear in all copies and that 11 | both that copyright notice and this permission notice appear in 12 | supporting documentation, and that the name of the above listed 13 | copyright holder(s) not be used in advertising or publicity pertaining 14 | to distribution of the software without specific, written prior 15 | permission. 16 | 17 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 18 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 19 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 20 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 21 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 22 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 23 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 24 | 25 | ********************************************************/ 26 | 27 | #ifndef DIXGRABS_H 28 | #define DIXGRABS_H 1 29 | 30 | GrabPtr 31 | CreateGrab( 32 | #if NeedFunctionPrototypes 33 | int /* client */, 34 | DeviceIntPtr /* device */, 35 | WindowPtr /* window */, 36 | Mask /* eventMask */, 37 | Bool /* ownerEvents */, 38 | Bool /* keyboardMode */, 39 | Bool /* pointerMode */, 40 | DeviceIntPtr /* modDevice */, 41 | unsigned short /* modifiers */, 42 | int /* type */, 43 | KeyCode /* keybut */, 44 | WindowPtr /* confineTo */, 45 | CursorPtr /* cursor */ 46 | #endif 47 | ); 48 | 49 | int 50 | DeletePassiveGrab( 51 | #if NeedFunctionPrototypes 52 | pointer /* value */, 53 | XID /* id */ 54 | #endif 55 | ); 56 | 57 | Bool 58 | GrabMatchesSecond( 59 | #if NeedFunctionPrototypes 60 | GrabPtr /* pFirstGrab */, 61 | GrabPtr /* pSecondGrab */ 62 | #endif 63 | ); 64 | 65 | int 66 | AddPassiveGrabToList( 67 | #if NeedFunctionPrototypes 68 | GrabPtr /* pGrab */ 69 | #endif 70 | ); 71 | 72 | Bool 73 | DeletePassiveGrabFromList( 74 | #if NeedFunctionPrototypes 75 | GrabPtr /* pMinuendGrab */ 76 | #endif 77 | ); 78 | 79 | #endif /* DIXGRABS_H */ 80 | -------------------------------------------------------------------------------- /include/extension.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: extension.h,v 1.4 2001/02/09 02:05:15 xorgcvs Exp $ */ 2 | /*********************************************************** 3 | 4 | Copyright 1987, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | 26 | 27 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 28 | 29 | All Rights Reserved 30 | 31 | Permission to use, copy, modify, and distribute this software and its 32 | documentation for any purpose and without fee is hereby granted, 33 | provided that the above copyright notice appear in all copies and that 34 | both that copyright notice and this permission notice appear in 35 | supporting documentation, and that the name of Digital not be 36 | used in advertising or publicity pertaining to distribution of the 37 | software without specific, written prior permission. 38 | 39 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 40 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 41 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 42 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 44 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 45 | SOFTWARE. 46 | 47 | ******************************************************************/ 48 | /* $XFree86: xc/programs/Xserver/include/extension.h,v 1.5 2001/12/14 19:59:54 dawes Exp $ */ 49 | 50 | #ifndef EXTENSION_H 51 | #define EXTENSION_H 52 | 53 | _XFUNCPROTOBEGIN 54 | 55 | extern unsigned short StandardMinorOpcode( 56 | #if NeedFunctionPrototypes 57 | ClientPtr /*client*/ 58 | #endif 59 | ); 60 | 61 | extern unsigned short MinorOpcodeOfRequest( 62 | #if NeedFunctionPrototypes 63 | ClientPtr /*client*/ 64 | #endif 65 | ); 66 | 67 | extern void InitExtensions( 68 | #if NeedFunctionPrototypes 69 | int argc, 70 | char **argv 71 | #endif 72 | ); 73 | 74 | extern void InitVisualWrap(void); 75 | 76 | extern void CloseDownExtensions( 77 | #if NeedFunctionPrototypes 78 | void 79 | #endif 80 | ); 81 | 82 | _XFUNCPROTOEND 83 | 84 | #endif /* EXTENSION_H */ 85 | -------------------------------------------------------------------------------- /include/globals.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/include/globals.h,v 1.4 2000/06/28 18:21:22 tsi Exp $ */ 2 | 3 | #ifndef _XSERV_GLOBAL_H_ 4 | #define _XSERV_GLOBAL_H_ 5 | 6 | #include "window.h" /* for WindowPtr */ 7 | 8 | /* Global X server variables that are visible to mi, dix, os, and ddx */ 9 | 10 | extern CARD32 defaultScreenSaverTime; 11 | extern CARD32 defaultScreenSaverInterval; 12 | extern CARD32 ScreenSaverTime; 13 | extern CARD32 ScreenSaverInterval; 14 | 15 | extern char *defaultFontPath; 16 | extern char *rgbPath; 17 | extern int monitorResolution; 18 | extern Bool loadableFonts; 19 | extern int defaultColorVisualClass; 20 | 21 | extern Bool Must_have_memory; 22 | extern WindowPtr *WindowTable; 23 | extern int GrabInProgress; 24 | extern Bool noTestExtensions; 25 | 26 | extern DDXPointRec dixScreenOrigins[MAXSCREENS]; 27 | 28 | #ifdef DPMSExtension 29 | extern CARD32 defaultDPMSStandbyTime; 30 | extern CARD32 defaultDPMSSuspendTime; 31 | extern CARD32 defaultDPMSOffTime; 32 | extern CARD32 DPMSStandbyTime; 33 | extern CARD32 DPMSSuspendTime; 34 | extern CARD32 DPMSOffTime; 35 | extern CARD16 DPMSPowerLevel; 36 | extern Bool defaultDPMSEnabled; 37 | extern Bool DPMSEnabled; 38 | extern Bool DPMSEnabledSwitch; 39 | extern Bool DPMSDisabledSwitch; 40 | extern Bool DPMSCapableFlag; 41 | #endif 42 | 43 | #ifdef PANORAMIX 44 | extern Bool noPanoramiXExtension; 45 | extern Bool PanoramiXMapped; 46 | extern Bool PanoramiXVisibilityNotifySent; 47 | extern Bool PanoramiXWindowExposureSent; 48 | extern Bool PanoramiXOneExposeRequest; 49 | #endif 50 | 51 | 52 | #endif /* _XSERV_GLOBAL_H_ */ 53 | -------------------------------------------------------------------------------- /include/miscstruct.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: miscstruct.h,v 1.4 2001/02/09 02:05:15 xorgcvs Exp $ */ 2 | /*********************************************************** 3 | 4 | Copyright 1987, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | 26 | 27 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 28 | 29 | All Rights Reserved 30 | 31 | Permission to use, copy, modify, and distribute this software and its 32 | documentation for any purpose and without fee is hereby granted, 33 | provided that the above copyright notice appear in all copies and that 34 | both that copyright notice and this permission notice appear in 35 | supporting documentation, and that the name of Digital not be 36 | used in advertising or publicity pertaining to distribution of the 37 | software without specific, written prior permission. 38 | 39 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 40 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 41 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 42 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 44 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 45 | SOFTWARE. 46 | 47 | ******************************************************************/ 48 | /* $XFree86: xc/programs/Xserver/include/miscstruct.h,v 3.3 2001/12/14 19:59:55 dawes Exp $ */ 49 | 50 | #ifndef MISCSTRUCT_H 51 | #define MISCSTRUCT_H 1 52 | 53 | #include "misc.h" 54 | #include "X11/Xprotostr.h" 55 | 56 | typedef xPoint DDXPointRec; 57 | 58 | typedef struct _Box { 59 | short x1, y1, x2, y2; 60 | } BoxRec; 61 | 62 | typedef union _DevUnion { 63 | pointer ptr; 64 | long val; 65 | unsigned long uval; 66 | pointer (*fptr)( 67 | #if NeedFunctionPrototypes 68 | void 69 | #endif 70 | ); 71 | } DevUnion; 72 | 73 | #endif /* MISCSTRUCT_H */ 74 | -------------------------------------------------------------------------------- /include/opaque.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: opaque.h,v 1.4 2001/02/09 02:05:15 xorgcvs Exp $ */ 2 | /* 3 | 4 | Copyright 1987, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included 13 | in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 | OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | Except as contained in this notice, the name of The Open Group shall 24 | not be used in advertising or otherwise to promote the sale, use or 25 | other dealings in this Software without prior written authorization 26 | from The Open Group. 27 | 28 | */ 29 | /* $XFree86: xc/programs/Xserver/include/opaque.h,v 1.10 2001/12/14 19:59:55 dawes Exp $ */ 30 | 31 | #ifndef OPAQUE_H 32 | #define OPAQUE_H 33 | 34 | #include 35 | 36 | #include "globals.h" 37 | 38 | extern char *defaultTextFont; 39 | extern char *defaultCursorFont; 40 | extern int MaxClients; 41 | extern char isItTimeToYield; 42 | extern char dispatchException; 43 | 44 | /* bit values for dispatchException */ 45 | #define DE_RESET 1 46 | #define DE_TERMINATE 2 47 | #define DE_PRIORITYCHANGE 4 /* set when a client's priority changes */ 48 | 49 | extern CARD32 TimeOutValue; 50 | extern int ScreenSaverBlanking; 51 | extern int ScreenSaverAllowExposures; 52 | extern int defaultScreenSaverBlanking; 53 | extern int defaultScreenSaverAllowExposures; 54 | extern int argcGlobal; 55 | extern char **argvGlobal; 56 | extern char *display; 57 | 58 | extern int defaultBackingStore; 59 | extern Bool disableBackingStore; 60 | extern Bool enableBackingStore; 61 | extern Bool disableSaveUnders; 62 | extern Bool PartialNetwork; 63 | #ifndef NOLOGOHACK 64 | extern int logoScreenSaver; 65 | #endif 66 | #ifdef RLIMIT_DATA 67 | extern int limitDataSpace; 68 | #endif 69 | #ifdef RLIMIT_STACK 70 | extern int limitStackSpace; 71 | #endif 72 | #ifdef RLIMIT_NOFILE 73 | extern int limitNoFile; 74 | #endif 75 | extern Bool permitOldBugs; 76 | extern Bool defeatAccessControl; 77 | extern char* protNoListen; 78 | 79 | 80 | 81 | #endif /* OPAQUE_H */ 82 | -------------------------------------------------------------------------------- /include/osdep.h: -------------------------------------------------------------------------------- 1 | ../os/osdep.h -------------------------------------------------------------------------------- /include/pixmapstr.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: pixmapstr.h,v 1.4 2001/02/09 02:05:15 xorgcvs Exp $ */ 2 | /*********************************************************** 3 | 4 | Copyright 1987, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | 26 | 27 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 28 | 29 | All Rights Reserved 30 | 31 | Permission to use, copy, modify, and distribute this software and its 32 | documentation for any purpose and without fee is hereby granted, 33 | provided that the above copyright notice appear in all copies and that 34 | both that copyright notice and this permission notice appear in 35 | supporting documentation, and that the name of Digital not be 36 | used in advertising or publicity pertaining to distribution of the 37 | software without specific, written prior permission. 38 | 39 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 40 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 41 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 42 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 44 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 45 | SOFTWARE. 46 | 47 | ******************************************************************/ 48 | 49 | #ifndef PIXMAPSTRUCT_H 50 | #define PIXMAPSTRUCT_H 51 | #include "pixmap.h" 52 | #include "screenint.h" 53 | #include "miscstruct.h" 54 | #include "X.h" 55 | 56 | typedef struct _Drawable { 57 | unsigned char type; /* DRAWABLE_ */ 58 | unsigned char class; /* specific to type */ 59 | unsigned char depth; 60 | unsigned char bitsPerPixel; 61 | #if defined(_XSERVER64) 62 | XID pad0; 63 | #endif 64 | XID id; /* resource id */ 65 | #if defined(_XSERVER64) 66 | XID pad1; 67 | #endif 68 | short x; /* window: screen absolute, pixmap: 0 */ 69 | short y; /* window: screen absolute, pixmap: 0 */ 70 | unsigned short width; 71 | unsigned short height; 72 | ScreenPtr pScreen; 73 | unsigned long serialNumber; 74 | } DrawableRec; 75 | 76 | /* 77 | * PIXMAP -- device dependent 78 | */ 79 | 80 | typedef struct _Pixmap { 81 | DrawableRec drawable; 82 | int refcnt; 83 | int devKind; 84 | DevUnion devPrivate; 85 | #ifdef PIXPRIV 86 | DevUnion *devPrivates; /* real devPrivates like gcs & windows */ 87 | #endif 88 | } PixmapRec; 89 | 90 | #endif /* PIXMAPSTRUCT_H */ 91 | -------------------------------------------------------------------------------- /include/property.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: property.h,v 1.4 2001/02/09 02:05:15 xorgcvs Exp $ */ 2 | /*********************************************************** 3 | 4 | Copyright 1987, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | 26 | 27 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 28 | 29 | All Rights Reserved 30 | 31 | Permission to use, copy, modify, and distribute this software and its 32 | documentation for any purpose and without fee is hereby granted, 33 | provided that the above copyright notice appear in all copies and that 34 | both that copyright notice and this permission notice appear in 35 | supporting documentation, and that the name of Digital not be 36 | used in advertising or publicity pertaining to distribution of the 37 | software without specific, written prior permission. 38 | 39 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 40 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 41 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 42 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 44 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 45 | SOFTWARE. 46 | 47 | ******************************************************************/ 48 | /* $XFree86: xc/programs/Xserver/include/property.h,v 1.3 2001/12/14 19:59:55 dawes Exp $ */ 49 | 50 | #ifndef PROPERTY_H 51 | #define PROPERTY_H 52 | 53 | #include "window.h" 54 | 55 | typedef struct _Property *PropertyPtr; 56 | 57 | extern int ChangeWindowProperty( 58 | #if NeedFunctionPrototypes 59 | WindowPtr /*pWin*/, 60 | Atom /*property*/, 61 | Atom /*type*/, 62 | int /*format*/, 63 | int /*mode*/, 64 | unsigned long /*len*/, 65 | pointer /*value*/, 66 | Bool /*sendevent*/ 67 | #endif 68 | ); 69 | 70 | extern int DeleteProperty( 71 | #if NeedFunctionPrototypes 72 | WindowPtr /*pWin*/, 73 | Atom /*propName*/ 74 | #endif 75 | ); 76 | 77 | extern void DeleteAllWindowProperties( 78 | #if NeedFunctionPrototypes 79 | WindowPtr /*pWin*/ 80 | #endif 81 | ); 82 | 83 | #endif /* PROPERTY_H */ 84 | -------------------------------------------------------------------------------- /include/propertyst.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: propertyst.h,v 1.4 2001/02/09 02:05:15 xorgcvs Exp $ */ 2 | /*********************************************************** 3 | 4 | Copyright 1987, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | 26 | 27 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 28 | 29 | All Rights Reserved 30 | 31 | Permission to use, copy, modify, and distribute this software and its 32 | documentation for any purpose and without fee is hereby granted, 33 | provided that the above copyright notice appear in all copies and that 34 | both that copyright notice and this permission notice appear in 35 | supporting documentation, and that the name of Digital not be 36 | used in advertising or publicity pertaining to distribution of the 37 | software without specific, written prior permission. 38 | 39 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 40 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 41 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 42 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 44 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 45 | SOFTWARE. 46 | 47 | ******************************************************************/ 48 | /* $XFree86: xc/programs/Xserver/include/propertyst.h,v 3.3 2001/12/14 19:59:55 dawes Exp $ */ 49 | 50 | #ifndef PROPERTYSTRUCT_H 51 | #define PROPERTYSTRUCT_H 52 | #include "misc.h" 53 | #include "property.h" 54 | /* 55 | * PROPERTY -- property element 56 | */ 57 | 58 | typedef struct _Property { 59 | struct _Property *next; 60 | ATOM propertyName; 61 | ATOM type; /* ignored by server */ 62 | short format; /* format of data for swapping - 8,16,32 */ 63 | long size; /* size of data in (format/8) bytes */ 64 | pointer data; /* private to client */ 65 | #if defined(LBX) || defined(LBX_COMPAT) 66 | /* If space is at a premium and binary compatibility is not 67 | * an issue, you may want to put the owner_pid next to format 68 | * so that the two shorts pack together without padding. 69 | */ 70 | short owner_pid; /* proxy that has the data */ 71 | XID tag_id; 72 | #endif 73 | } PropertyRec; 74 | 75 | #endif /* PROPERTYSTRUCT_H */ 76 | 77 | -------------------------------------------------------------------------------- /include/region.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: region.h,v 1.4 2001/02/09 02:05:15 xorgcvs Exp $ */ 2 | /*********************************************************** 3 | 4 | Copyright 1987, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | 26 | 27 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 28 | 29 | All Rights Reserved 30 | 31 | Permission to use, copy, modify, and distribute this software and its 32 | documentation for any purpose and without fee is hereby granted, 33 | provided that the above copyright notice appear in all copies and that 34 | both that copyright notice and this permission notice appear in 35 | supporting documentation, and that the name of Digital not be 36 | used in advertising or publicity pertaining to distribution of the 37 | software without specific, written prior permission. 38 | 39 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 40 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 41 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 42 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 44 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 45 | SOFTWARE. 46 | 47 | ******************************************************************/ 48 | #ifndef REGION_H 49 | #define REGION_H 50 | 51 | #include "regionstr.h" 52 | 53 | #endif /* REGION_H */ 54 | -------------------------------------------------------------------------------- /include/rgb.h: -------------------------------------------------------------------------------- 1 | /*********************************************************** 2 | 3 | Copyright 1987, 1998 The Open Group 4 | 5 | Permission to use, copy, modify, distribute, and sell this software and its 6 | documentation for any purpose is hereby granted without fee, provided that 7 | the above copyright notice appear in all copies and that both that 8 | copyright notice and this permission notice appear in supporting 9 | documentation. 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | Except as contained in this notice, the name of The Open Group shall not be 22 | used in advertising or otherwise to promote the sale, use or other dealings 23 | in this Software without prior written authorization from The Open Group. 24 | 25 | 26 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 27 | 28 | All Rights Reserved 29 | 30 | Permission to use, copy, modify, and distribute this software and its 31 | documentation for any purpose and without fee is hereby granted, 32 | provided that the above copyright notice appear in all copies and that 33 | both that copyright notice and this permission notice appear in 34 | supporting documentation, and that the name of Digital not be 35 | used in advertising or publicity pertaining to distribution of the 36 | software without specific, written prior permission. 37 | 38 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 39 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 40 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 41 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 42 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 43 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 44 | SOFTWARE. 45 | 46 | ******************************************************************/ 47 | /* $Xorg: rgb.h,v 1.4 2001/02/09 02:05:15 xorgcvs Exp $ */ 48 | 49 | #ifndef RGB_H 50 | #define RGB_H 51 | typedef struct _RGB { 52 | unsigned short red, green, blue; 53 | } RGB; 54 | #endif /* RGB_H */ 55 | -------------------------------------------------------------------------------- /include/selection.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: selection.h,v 1.4 2001/02/09 02:05:16 xorgcvs Exp $ */ 2 | #ifndef SELECTION_H 3 | #define SELECTION_H 1 4 | 5 | /*********************************************************** 6 | 7 | Copyright 1987, 1998 The Open Group 8 | 9 | Permission to use, copy, modify, distribute, and sell this software and its 10 | documentation for any purpose is hereby granted without fee, provided that 11 | the above copyright notice appear in all copies and that both that 12 | copyright notice and this permission notice appear in supporting 13 | documentation. 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 22 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | 25 | Except as contained in this notice, the name of The Open Group shall not be 26 | used in advertising or otherwise to promote the sale, use or other dealings 27 | in this Software without prior written authorization from The Open Group. 28 | 29 | 30 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 31 | 32 | All Rights Reserved 33 | 34 | Permission to use, copy, modify, and distribute this software and its 35 | documentation for any purpose and without fee is hereby granted, 36 | provided that the above copyright notice appear in all copies and that 37 | both that copyright notice and this permission notice appear in 38 | supporting documentation, and that the name of Digital not be 39 | used in advertising or publicity pertaining to distribution of the 40 | software without specific, written prior permission. 41 | 42 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 43 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 44 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 45 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 46 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 47 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 48 | SOFTWARE. 49 | 50 | ******************************************************************/ 51 | 52 | #include "dixstruct.h" 53 | /* 54 | * 55 | * Selection data structures 56 | */ 57 | 58 | typedef struct _Selection { 59 | Atom selection; 60 | TimeStamp lastTimeChanged; 61 | Window window; 62 | WindowPtr pWin; 63 | ClientPtr client; 64 | } Selection; 65 | 66 | #endif /* SELECTION_H */ 67 | 68 | 69 | -------------------------------------------------------------------------------- /include/validate.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: validate.h,v 1.4 2001/02/09 02:05:16 xorgcvs Exp $ */ 2 | 3 | /* 4 | 5 | Copyright 1989, 1998 The Open Group 6 | 7 | Permission to use, copy, modify, distribute, and sell this software and its 8 | documentation for any purpose is hereby granted without fee, provided that 9 | the above copyright notice appear in all copies and that both that 10 | copyright notice and this permission notice appear in supporting 11 | documentation. 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | Except as contained in this notice, the name of The Open Group shall not be 24 | used in advertising or otherwise to promote the sale, use or other dealings 25 | in this Software without prior written authorization from The Open Group. 26 | */ 27 | /* $XFree86: xc/programs/Xserver/include/validate.h,v 1.5 2001/12/14 19:59:56 dawes Exp $ */ 28 | 29 | #ifndef VALIDATE_H 30 | #define VALIDATE_H 31 | 32 | #include "miscstruct.h" 33 | #include "regionstr.h" 34 | 35 | typedef enum { VTOther, VTStack, VTMove, VTUnmap, VTMap, VTBroken } VTKind; 36 | 37 | /* union _Validate is now device dependent; see mivalidate.h for an example */ 38 | typedef union _Validate *ValidatePtr; 39 | 40 | #define UnmapValData ((ValidatePtr)1) 41 | 42 | #endif /* VALIDATE_H */ 43 | -------------------------------------------------------------------------------- /init/AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/init/AUTHORS -------------------------------------------------------------------------------- /init/COPYING: -------------------------------------------------------------------------------- 1 | Copyright 1986, 1988, 1993, 1998 The Open Group 2 | 3 | Permission to use, copy, modify, distribute, and sell this software and its 4 | documentation for any purpose is hereby granted without fee, provided that 5 | the above copyright notice appear in all copies and that both that 6 | copyright notice and this permission notice appear in supporting 7 | documentation. 8 | 9 | The above copyright notice and this permission notice shall be included in 10 | all copies or substantial portions of the Software. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 16 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 17 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 18 | 19 | Except as contained in this notice, the name of The Open Group shall not be 20 | used in advertising or otherwise to promote the sale, use or other dealings 21 | in this Software without prior written authorization from The Open Group. 22 | -------------------------------------------------------------------------------- /init/Makefile: -------------------------------------------------------------------------------- 1 | include ../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../include $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | xinit.o: $(OBJS:.c=.o) 10 | clean: 11 | rm -f *.o 12 | depend: 13 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /init/NEWS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/init/NEWS -------------------------------------------------------------------------------- /init/README: -------------------------------------------------------------------------------- 1 | This is a fork of xinit 1.1.1, without BINDIR and autotools. 2 | -------------------------------------------------------------------------------- /init/README.upstream: -------------------------------------------------------------------------------- 1 | The xinit is not intended for naive users. Instead, site administrators should 2 | design user-friendly scripts that present the desired interface when starting 3 | up X. The startx script is one such example. 4 | 5 | Note that the sample xinitrc file is NOT installed by default. 6 | -------------------------------------------------------------------------------- /init/xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ 3 | 4 | userresources=$HOME/.Xresources 5 | usermodmap=$HOME/.Xmodmap 6 | sysresources=/lib/xinit/.Xresources 7 | sysmodmap=/lib/xinit/.Xmodmap 8 | 9 | # merge in defaults and keymaps 10 | 11 | if [ -f $sysresources ]; then 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | xrdb -merge $sysresources 20 | 21 | fi 22 | 23 | if [ -f $sysmodmap ]; then 24 | xmodmap $sysmodmap 25 | fi 26 | 27 | if [ -f "$userresources" ]; then 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | xrdb -merge "$userresources" 36 | 37 | fi 38 | 39 | if [ -f "$usermodmap" ]; then 40 | xmodmap "$usermodmap" 41 | fi 42 | 43 | # start some nice programs 44 | 45 | 46 | 47 | twm & 48 | xclock -geometry 50x50-1+1 & 49 | xterm -geometry 80x50+494+51 & 50 | xterm -geometry 80x20+494-0 & 51 | exec xterm -geometry 80x66+0+0 -name login 52 | -------------------------------------------------------------------------------- /make-tarball.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | VF=version.txt 4 | 5 | if [ -r $VF ] && [ -f $VF ] && [ -s $VF ]; then 6 | set $(cat version.txt) NONE NULL 7 | DIR=$1 8 | VER=$2 9 | 10 | cd .. 11 | tar czvf $DIR-$VER.tar.gz $DIR-$VER 12 | fi 13 | 14 | 15 | -------------------------------------------------------------------------------- /mi/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:53:36 cpqbld Exp $ 2 | 3 | 4 | 5 | 6 | XCOMM $XFree86: xc/programs/Xserver/mi/Imakefile,v 3.33 2001/04/23 16:17:12 tsi Exp $ 7 | 8 | #include 9 | 10 | #if ! HasCbrt 11 | CBRT_SRC = cbrt.c 12 | CBRT_OBJ = cbrt.o 13 | #endif 14 | 15 | #if DoLoadableServer 16 | EXTRAMIINITEXTOBJ = miinitext.o 17 | #else 18 | MIINITEXTSRC = miinitext.c 19 | MIINITEXTOBJ = miinitext.o 20 | #endif 21 | 22 | SRCS = $(CBRT_SRC) mivaltree.c mipolyseg.c mipolyrect.c \ 23 | mipoly.c mipolycon.c mipolygen.c mipolyutil.c \ 24 | mifillrct.c miwideline.c mispans.c \ 25 | miarc.c mizerarc.c mifillarc.c \ 26 | miwindow.c micursor.c miregion.c \ 27 | mipolytext.c mibitblt.c mipolypnt.c mipushpxl.c \ 28 | miexpose.c miglblt.c mizerline.c mizerclip.c mifpolycon.c \ 29 | midash.c mibstore.c mibank.c $(MIINITEXTSRC) mieq.c \ 30 | mipointer.c misprite.c midispcur.c miscrinit.c miclipn.c migc.c \ 31 | micmap.c mioverlay.c 32 | 33 | OBJS = $(CBRT_OBJ) mivaltree.o mipolyseg.o mipolyrect.o \ 34 | mipoly.o mipolycon.o mipolygen.o mipolyutil.o \ 35 | mifillrct.o miwideline.o mispans.o \ 36 | miarc.o mizerarc.o mifillarc.o \ 37 | miwindow.o micursor.o miregion.o \ 38 | mipolytext.o mibitblt.o mipolypnt.o mipushpxl.o \ 39 | miexpose.o miglblt.o mizerline.o mizerclip.o mifpolycon.o \ 40 | midash.o mibstore.o mibank.o $(MIINITEXTOBJ) mieq.o \ 41 | mipointer.o misprite.o midispcur.o miscrinit.o miclipn.o migc.o \ 42 | micmap.o mioverlay.o 43 | 44 | #ifdef XFree86Version 45 | /* 46 | * Make sure XINPUT, XF86VidTune, etc aren't defined for the miinitext.o 47 | * used by Xnest, Xvfb 48 | */ 49 | EXT_DEFINES = ExtensionDefines -UXINPUT -UXF86VIDMODE -UXFreeXDGA -UXF86MISC \ 50 | -UXFree86LOADER 51 | #endif 52 | 53 | INCLUDES = -I. -I../include -I../../../include/fonts -I../render \ 54 | -I$(XINCLUDESRC) -I$(FONTINCSRC) -I$(EXTINCSRC) -I$(SERVERSRC)/Xext 55 | LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln 56 | 57 | NormalLibraryObjectRule() 58 | NormalLibraryTarget(mi,$(OBJS)) 59 | LintLibraryTarget(mi,$(SRCS)) 60 | NormalLintTarget($(SRCS)) 61 | 62 | #ifndef Win32Architecture 63 | NormalLibraryTarget(cbrt,cbrt.o) 64 | #endif 65 | 66 | SpecialCObjectRule(miinitext,$(ICONFIGFILES),$(EXT_DEFINES)) 67 | SpecialCObjectRule(miscrinit,$(ICONFIGFILES),$(EXT_DEFINES)) 68 | #ifdef ItsyCompilerBug 69 | SpecialCObjectRule(mipolycon,$(_NOOP_),-O0) 70 | #endif 71 | 72 | AllTarget($(EXTRAMIINITEXTOBJ)) 73 | 74 | DependTarget() 75 | 76 | InstallDriverSDKNonExecFile(mi.h,$(DRIVERSDKINCLUDEDIR)) 77 | InstallDriverSDKNonExecFile(mibank.h,$(DRIVERSDKINCLUDEDIR)) 78 | InstallDriverSDKNonExecFile(mibstore.h,$(DRIVERSDKINCLUDEDIR)) 79 | InstallDriverSDKNonExecFile(micmap.h,$(DRIVERSDKINCLUDEDIR)) 80 | InstallDriverSDKNonExecFile(migc.h,$(DRIVERSDKINCLUDEDIR)) 81 | InstallDriverSDKNonExecFile(miline.h,$(DRIVERSDKINCLUDEDIR)) 82 | InstallDriverSDKNonExecFile(mipointer.h,$(DRIVERSDKINCLUDEDIR)) 83 | InstallDriverSDKNonExecFile(mipointrst.h,$(DRIVERSDKINCLUDEDIR)) 84 | InstallDriverSDKNonExecFile(mizerarc.h,$(DRIVERSDKINCLUDEDIR)) 85 | -------------------------------------------------------------------------------- /mi/Makefile: -------------------------------------------------------------------------------- 1 | include ../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../include -I../mi -I../fb -I../hw/kdrive -I../render -I../Xext $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | libICE.a: $(OBJS:.c=.o) 10 | ar cr libmi.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: libmi.a 14 | cp -f libmi.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /mi/cbrt.c: -------------------------------------------------------------------------------- 1 | /* $Xorg: cbrt.c,v 1.4 2001/02/09 02:05:19 xorgcvs Exp $ */ 2 | /* 3 | 4 | Copyright 1990, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included 13 | in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 | OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | Except as contained in this notice, the name of The Open Group shall 24 | not be used in advertising or otherwise to promote the sale, use or 25 | other dealings in this Software without prior written authorization 26 | from The Open Group. 27 | 28 | */ 29 | /* $XFree86: xc/programs/Xserver/mi/cbrt.c,v 3.4 2001/12/14 20:00:19 dawes Exp $ */ 30 | 31 | /* simple cbrt, in case your math library doesn't have a good one */ 32 | 33 | /* 34 | * Would normally include for this, but for the sake of compiler 35 | * warnings, we don't want to get duplicate declarations for cbrt(). 36 | */ 37 | 38 | double pow(double, double); 39 | double cbrt(double); 40 | 41 | double 42 | cbrt(double x) 43 | { 44 | if (x > 0.0) 45 | return pow(x, 1.0/3.0); 46 | else 47 | return -pow(-x, 1.0/3.0); 48 | } 49 | -------------------------------------------------------------------------------- /mi/mibstore.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * mibstore.h -- 3 | * Header file for users of the MI backing-store scheme. 4 | * 5 | * Copyright (c) 1987 by the Regents of the University of California 6 | * 7 | * Permission to use, copy, modify, and distribute this 8 | * software and its documentation for any purpose and without 9 | * fee is hereby granted, provided that the above copyright 10 | * notice appear in all copies. The University of California 11 | * makes no representations about the suitability of this 12 | * software for any purpose. It is provided "as is" without 13 | * express or implied warranty. 14 | * 15 | * "$Xorg: mibstore.h,v 1.3 2000/08/17 19:53:37 cpqbld Exp $ 16 | */ 17 | 18 | 19 | /* $XFree86: xc/programs/Xserver/mi/mibstore.h,v 1.5 2001/08/06 20:51:18 dawes Exp $ */ 20 | 21 | #ifndef _MIBSTORE_H 22 | #define _MIBSTORE_H 23 | 24 | #include "screenint.h" 25 | 26 | extern void miInitializeBackingStore( 27 | ScreenPtr /*pScreen*/ 28 | ); 29 | 30 | #endif /* _MIBSTORE_H */ 31 | -------------------------------------------------------------------------------- /mi/miclipn.c: -------------------------------------------------------------------------------- 1 | /* $Xorg: miclipn.c,v 1.4 2001/02/09 02:05:20 xorgcvs Exp $ */ 2 | /* 3 | 4 | Copyright 1990, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included 13 | in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 | OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | Except as contained in this notice, the name of The Open Group shall 24 | not be used in advertising or otherwise to promote the sale, use or 25 | other dealings in this Software without prior written authorization 26 | from The Open Group. 27 | 28 | */ 29 | /* $XFree86: xc/programs/Xserver/mi/miclipn.c,v 1.4 2001/12/14 20:00:21 dawes Exp $ */ 30 | 31 | #include 32 | #include "windowstr.h" 33 | #include "scrnintstr.h" 34 | #include "mi.h" 35 | 36 | static void (*clipNotify)(WindowPtr,int,int) = 0; 37 | static void (*ClipNotifies[MAXSCREENS])(WindowPtr,int,int); 38 | 39 | static void 40 | miClipNotifyWrapper( 41 | WindowPtr pWin, 42 | int dx, 43 | int dy ) 44 | { 45 | if (clipNotify) 46 | (*clipNotify)(pWin, dx, dy); 47 | if (ClipNotifies[pWin->drawable.pScreen->myNum]) 48 | (*ClipNotifies[pWin->drawable.pScreen->myNum])(pWin, dx, dy); 49 | } 50 | 51 | /* 52 | * miClipNotify -- 53 | * Hook to let DDX request notification when the clipList of 54 | * a window is recomputed on any screen. For R4 compatibility; 55 | * better if you wrap the ClipNotify screen proc yourself. 56 | */ 57 | 58 | static unsigned long clipGeneration = 0; 59 | 60 | void 61 | miClipNotify ( 62 | void (*func)( 63 | WindowPtr /* pWin */, 64 | int /* dx */, 65 | int /* dy */ 66 | ) ) 67 | { 68 | int i; 69 | 70 | clipNotify = func; 71 | if (clipGeneration != serverGeneration) 72 | { 73 | clipGeneration = serverGeneration; 74 | for (i = 0; i < screenInfo.numScreens; i++) 75 | { 76 | ClipNotifies[i] = screenInfo.screens[i]->ClipNotify; 77 | screenInfo.screens[i]->ClipNotify = miClipNotifyWrapper; 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /mi/micmap.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/mi/micmap.h,v 1.7 2000/09/20 00:09:15 keithp Exp $ */ 2 | 3 | #include "colormapst.h" 4 | 5 | #ifndef _MICMAP_H_ 6 | #define _MICMAP_H_ 7 | 8 | extern ColormapPtr miInstalledMaps[MAXSCREENS]; 9 | 10 | typedef Bool (* miInitVisualsProcPtr)(VisualPtr *, DepthPtr *, int *, int *, 11 | int *, VisualID *, unsigned long, int, 12 | int); 13 | 14 | extern miInitVisualsProcPtr miInitVisualsProc; 15 | 16 | int miListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps); 17 | void miInstallColormap(ColormapPtr pmap); 18 | void miUninstallColormap(ColormapPtr pmap); 19 | 20 | void miResolveColor(unsigned short *, unsigned short *, unsigned short *, 21 | VisualPtr); 22 | Bool miInitializeColormap(ColormapPtr); 23 | int miExpandDirectColors(ColormapPtr, int, xColorItem *, xColorItem *); 24 | Bool miCreateDefColormap(ScreenPtr); 25 | void miClearVisualTypes(void); 26 | Bool miSetVisualTypes(int, int, int, int); 27 | Bool miSetPixmapDepths(void); 28 | Bool miSetVisualTypesAndMasks(int depth, int visuals, int bitsPerRGB, 29 | int preferredCVC, 30 | Pixel redMask, Pixel greenMask, Pixel blueMask); 31 | int miGetDefaultVisualMask(int); 32 | Bool miInitVisuals(VisualPtr *, DepthPtr *, int *, int *, int *, VisualID *, 33 | unsigned long, int, int); 34 | void miResetInitVisuals(void); 35 | 36 | void miHookInitVisuals(void (**old)(miInitVisualsProcPtr *), 37 | void (*new)(miInitVisualsProcPtr *)); 38 | 39 | 40 | #define MAX_PSEUDO_DEPTH 10 41 | #define MIN_TRUE_DEPTH 6 42 | 43 | #define StaticGrayMask (1 << StaticGray) 44 | #define GrayScaleMask (1 << GrayScale) 45 | #define StaticColorMask (1 << StaticColor) 46 | #define PseudoColorMask (1 << PseudoColor) 47 | #define TrueColorMask (1 << TrueColor) 48 | #define DirectColorMask (1 << DirectColor) 49 | 50 | #define ALL_VISUALS (StaticGrayMask|\ 51 | GrayScaleMask|\ 52 | StaticColorMask|\ 53 | PseudoColorMask|\ 54 | TrueColorMask|\ 55 | DirectColorMask) 56 | 57 | #define LARGE_VISUALS (TrueColorMask|\ 58 | DirectColorMask) 59 | 60 | #define SMALL_VISUALS (StaticGrayMask|\ 61 | GrayScaleMask|\ 62 | StaticColorMask|\ 63 | PseudoColorMask) 64 | 65 | #endif /* _MICMAP_H_ */ 66 | -------------------------------------------------------------------------------- /mi/micoord.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/mi/micoord.h,v 1.3 2001/10/28 03:34:15 tsi Exp $ */ 2 | /* 3 | * Copyright (C) 2000 The XFree86 Project, Inc. All Rights Reserved. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to 7 | * deal in the Software without restriction, including without limitation the 8 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 9 | * sell copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | * 22 | * Except as contained in this notice, the name of the XFree86 Project shall 23 | * not be used in advertising or otherwise to promote the sale, use or other 24 | * dealings in this Software without prior written authorization from the 25 | * XFree86 Project. 26 | * 27 | */ 28 | 29 | #ifndef _MICOORD_H_ 30 | #define _MICOORD_H_ 1 31 | 32 | #include "servermd.h" 33 | 34 | /* Macros which handle a coordinate in a single register */ 35 | 36 | /* 37 | * Most compilers will convert divisions by 65536 into shifts, if signed 38 | * shifts exist. If your machine does arithmetic shifts and your compiler 39 | * can't get it right, add to this line. 40 | */ 41 | 42 | /* 43 | * mips compiler - what a joke - it CSEs the 65536 constant into a reg 44 | * forcing as to use div instead of shift. Let's be explicit. 45 | */ 46 | 47 | #if defined(mips) || \ 48 | defined(sparc) || \ 49 | defined(__alpha) || defined(__alpha__) || \ 50 | defined(__i386__) || defined(i386) || \ 51 | defined(__ia64__) || defined(ia64) || \ 52 | defined(__s390x__) || defined(__s390__) || \ 53 | defined(__amd64__) || defined(__x86_64__) 54 | #define GetHighWord(x) (((int) (x)) >> 16) 55 | #else 56 | #define GetHighWord(x) (((int) (x)) / 65536) 57 | #endif 58 | 59 | #if IMAGE_BYTE_ORDER == MSBFirst 60 | #define intToCoord(i,x,y) (((x) = GetHighWord(i)), ((y) = (int) ((short) (i)))) 61 | #define coordToInt(x,y) (((x) << 16) | ((y) & 0xffff)) 62 | #define intToX(i) (GetHighWord(i)) 63 | #define intToY(i) ((int) ((short) i)) 64 | #else 65 | #define intToCoord(i,x,y) (((x) = (int) ((short) (i))), ((y) = GetHighWord(i))) 66 | #define coordToInt(x,y) (((y) << 16) | ((x) & 0xffff)) 67 | #define intToX(i) ((int) ((short) (i))) 68 | #define intToY(i) (GetHighWord(i)) 69 | #endif 70 | 71 | #endif /* _MICOORD_H_ */ 72 | -------------------------------------------------------------------------------- /mi/micursor.c: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/mi/micursor.c,v 1.3 2001/12/14 20:00:21 dawes Exp $ */ 2 | /*********************************************************** 3 | 4 | Copyright 1987, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | 26 | 27 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 28 | 29 | All Rights Reserved 30 | 31 | Permission to use, copy, modify, and distribute this software and its 32 | documentation for any purpose and without fee is hereby granted, 33 | provided that the above copyright notice appear in all copies and that 34 | both that copyright notice and this permission notice appear in 35 | supporting documentation, and that the name of Digital not be 36 | used in advertising or publicity pertaining to distribution of the 37 | software without specific, written prior permission. 38 | 39 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 40 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 41 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 42 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 44 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 45 | SOFTWARE. 46 | 47 | ******************************************************************/ 48 | /* $Xorg: micursor.c,v 1.4 2001/02/09 02:05:20 xorgcvs Exp $ */ 49 | #include "scrnintstr.h" 50 | #include "cursor.h" 51 | #include "misc.h" 52 | #include "mi.h" 53 | 54 | extern Bool Must_have_memory; 55 | 56 | void 57 | miRecolorCursor( pScr, pCurs, displayed) 58 | ScreenPtr pScr; 59 | CursorPtr pCurs; 60 | Bool displayed; 61 | { 62 | /* 63 | * This is guaranteed to correct any color-dependent state which may have 64 | * been bound up in private state created by RealizeCursor 65 | */ 66 | (* pScr->UnrealizeCursor)( pScr, pCurs); 67 | Must_have_memory = TRUE; /* XXX */ 68 | (* pScr->RealizeCursor)( pScr, pCurs); 69 | Must_have_memory = FALSE; /* XXX */ 70 | if ( displayed) 71 | (* pScr->DisplayCursor)( pScr, pCurs); 72 | 73 | } 74 | -------------------------------------------------------------------------------- /mi/migc.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: migc.h,v 1.4 2001/02/09 02:05:21 xorgcvs Exp $ */ 2 | /* 3 | 4 | Copyright 1993, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included 13 | in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 | OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | Except as contained in this notice, the name of The Open Group shall 24 | not be used in advertising or otherwise to promote the sale, use or 25 | other dealings in this Software without prior written authorization 26 | from The Open Group. 27 | 28 | */ 29 | 30 | /* $XFree86: xc/programs/Xserver/mi/migc.h,v 1.8 2001/12/14 20:00:23 dawes Exp $ */ 31 | 32 | extern void miChangeGC( 33 | GCPtr /*pGC*/, 34 | unsigned long /*mask*/ 35 | ); 36 | 37 | extern void miDestroyGC( 38 | GCPtr /*pGC*/ 39 | ); 40 | 41 | extern GCOpsPtr miCreateGCOps( 42 | GCOpsPtr /*prototype*/ 43 | ); 44 | 45 | extern void miDestroyGCOps( 46 | GCOpsPtr /*ops*/ 47 | ); 48 | 49 | extern void miDestroyClip( 50 | GCPtr /*pGC*/ 51 | ); 52 | 53 | extern void miChangeClip( 54 | GCPtr /*pGC*/, 55 | int /*type*/, 56 | pointer /*pvalue*/, 57 | int /*nrects*/ 58 | ); 59 | 60 | extern void miCopyClip( 61 | GCPtr /*pgcDst*/, 62 | GCPtr /*pgcSrc*/ 63 | ); 64 | 65 | extern void miCopyGC( 66 | GCPtr /*pGCSrc*/, 67 | unsigned long /*changes*/, 68 | GCPtr /*pGCDst*/ 69 | ); 70 | 71 | extern void miComputeCompositeClip( 72 | GCPtr /*pGC*/, 73 | DrawablePtr /*pDrawable*/ 74 | ); 75 | -------------------------------------------------------------------------------- /mi/mioverlay.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/mi/mioverlay.h,v 3.4 2001/04/14 21:15:26 mvojkovi Exp $ */ 2 | 3 | #ifndef __MIOVERLAY_H 4 | #define __MIOVERLAY_H 5 | 6 | typedef void (*miOverlayTransFunc)(ScreenPtr, int, BoxPtr); 7 | typedef Bool (*miOverlayInOverlayFunc)(WindowPtr); 8 | 9 | Bool 10 | miInitOverlay( 11 | ScreenPtr pScreen, 12 | miOverlayInOverlayFunc inOverlay, 13 | miOverlayTransFunc trans 14 | ); 15 | 16 | Bool 17 | miOverlayGetPrivateClips( 18 | WindowPtr pWin, 19 | RegionPtr *borderClip, 20 | RegionPtr *clipList 21 | ); 22 | 23 | Bool miOverlayCollectUnderlayRegions(WindowPtr, RegionPtr*); 24 | void miOverlayComputeCompositeClip(GCPtr, WindowPtr); 25 | Bool miOverlayCopyUnderlay(ScreenPtr); 26 | void miOverlaySetTransFunction(ScreenPtr, miOverlayTransFunc); 27 | void miOverlaySetRootClip(ScreenPtr, Bool); 28 | 29 | #endif /* __MIOVERLAY_H */ 30 | -------------------------------------------------------------------------------- /mi/mipointrst.h: -------------------------------------------------------------------------------- 1 | /* 2 | * mipointrst.h 3 | * 4 | */ 5 | 6 | /* $Xorg: mipointrst.h,v 1.4 2001/02/09 02:05:21 xorgcvs Exp $ */ 7 | 8 | /* 9 | 10 | Copyright 1989, 1998 The Open Group 11 | 12 | Permission to use, copy, modify, distribute, and sell this software and its 13 | documentation for any purpose is hereby granted without fee, provided that 14 | the above copyright notice appear in all copies and that both that 15 | copyright notice and this permission notice appear in supporting 16 | documentation. 17 | 18 | The above copyright notice and this permission notice shall be included in 19 | all copies or substantial portions of the Software. 20 | 21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 25 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 26 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 27 | 28 | Except as contained in this notice, the name of The Open Group shall not be 29 | used in advertising or otherwise to promote the sale, use or other dealings 30 | in this Software without prior written authorization from The Open Group. 31 | */ 32 | /* $XFree86: xc/programs/Xserver/mi/mipointrst.h,v 1.4 2001/12/14 20:00:25 dawes Exp $ */ 33 | 34 | #include "mipointer.h" 35 | #include "scrnintstr.h" 36 | 37 | #define MOTION_SIZE 256 38 | 39 | typedef struct { 40 | xTimecoord event; 41 | ScreenPtr pScreen; 42 | } miHistoryRec, *miHistoryPtr; 43 | 44 | typedef struct { 45 | ScreenPtr pScreen; /* current screen */ 46 | ScreenPtr pSpriteScreen;/* screen containing current sprite */ 47 | CursorPtr pCursor; /* current cursor */ 48 | CursorPtr pSpriteCursor;/* cursor on screen */ 49 | BoxRec limits; /* current constraints */ 50 | Bool confined; /* pointer can't change screens */ 51 | int x, y; /* hot spot location */ 52 | int devx, devy; /* sprite position */ 53 | DevicePtr pPointer; /* pointer device structure */ 54 | miHistoryRec history[MOTION_SIZE]; 55 | int history_start, history_end; 56 | } miPointerRec, *miPointerPtr; 57 | 58 | typedef struct { 59 | miPointerSpriteFuncPtr spriteFuncs; /* sprite-specific methods */ 60 | miPointerScreenFuncPtr screenFuncs; /* screen-specific methods */ 61 | CloseScreenProcPtr CloseScreen; 62 | Bool waitForUpdate; /* don't move cursor in SIGIO */ 63 | Bool showTransparent; /* show empty cursors */ 64 | } miPointerScreenRec, *miPointerScreenPtr; 65 | -------------------------------------------------------------------------------- /mi/mipolyseg.c: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/programs/Xserver/mi/mipolyseg.c,v 1.3 2001/12/14 20:00:26 dawes Exp $ */ 2 | /*********************************************************** 3 | 4 | Copyright 1987, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | 26 | 27 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 28 | 29 | All Rights Reserved 30 | 31 | Permission to use, copy, modify, and distribute this software and its 32 | documentation for any purpose and without fee is hereby granted, 33 | provided that the above copyright notice appear in all copies and that 34 | both that copyright notice and this permission notice appear in 35 | supporting documentation, and that the name of Digital not be 36 | used in advertising or publicity pertaining to distribution of the 37 | software without specific, written prior permission. 38 | 39 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 40 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 41 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 42 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 44 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 45 | SOFTWARE. 46 | 47 | ******************************************************************/ 48 | /* $Xorg: mipolyseg.c,v 1.4 2001/02/09 02:05:21 xorgcvs Exp $ */ 49 | #include 50 | #include 51 | #include "miscstruct.h" 52 | #include "gcstruct.h" 53 | #include "pixmap.h" 54 | #include "mi.h" 55 | 56 | /***************************************************************** 57 | * miPolySegment 58 | * 59 | * For each segment, draws a line between (x1, y1) and (x2, y2). The 60 | * lines are drawn in the order listed. 61 | * 62 | * Walks the segments, compressing them into format for PolyLines. 63 | * 64 | *****************************************************************/ 65 | 66 | 67 | void 68 | miPolySegment(pDraw, pGC, nseg, pSegs) 69 | DrawablePtr pDraw; 70 | GCPtr pGC; 71 | int nseg; 72 | xSegment *pSegs; 73 | { 74 | int i; 75 | 76 | for (i=0; iops->Polylines)(pDraw, pGC, CoordModeOrigin, 2,(DDXPointPtr)pSegs); 79 | pSegs++; 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /mi/misprite.h: -------------------------------------------------------------------------------- 1 | /* 2 | * misprite.h 3 | * 4 | * software-sprite/sprite drawing interface spec 5 | * 6 | * mi versions of these routines exist. 7 | */ 8 | 9 | /* $Xorg: misprite.h,v 1.4 2001/02/09 02:05:22 xorgcvs Exp $ */ 10 | 11 | /* 12 | 13 | Copyright 1989, 1998 The Open Group 14 | 15 | Permission to use, copy, modify, distribute, and sell this software and its 16 | documentation for any purpose is hereby granted without fee, provided that 17 | the above copyright notice appear in all copies and that both that 18 | copyright notice and this permission notice appear in supporting 19 | documentation. 20 | 21 | The above copyright notice and this permission notice shall be included in 22 | all copies or substantial portions of the Software. 23 | 24 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 27 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 28 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 29 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 30 | 31 | Except as contained in this notice, the name of The Open Group shall not be 32 | used in advertising or otherwise to promote the sale, use or other dealings 33 | in this Software without prior written authorization from The Open Group. 34 | */ 35 | /* $XFree86: xc/programs/Xserver/mi/misprite.h,v 1.3 2001/12/14 20:00:27 dawes Exp $ */ 36 | 37 | typedef struct { 38 | Bool (*RealizeCursor)( 39 | ScreenPtr /*pScreen*/, 40 | CursorPtr /*pCursor*/ 41 | ); 42 | Bool (*UnrealizeCursor)( 43 | ScreenPtr /*pScreen*/, 44 | CursorPtr /*pCursor*/ 45 | ); 46 | Bool (*PutUpCursor)( 47 | ScreenPtr /*pScreen*/, 48 | CursorPtr /*pCursor*/, 49 | int /*x*/, 50 | int /*y*/, 51 | unsigned long /*source*/, 52 | unsigned long /*mask*/ 53 | ); 54 | Bool (*SaveUnderCursor)( 55 | ScreenPtr /*pScreen*/, 56 | int /*x*/, 57 | int /*y*/, 58 | int /*w*/, 59 | int /*h*/ 60 | ); 61 | Bool (*RestoreUnderCursor)( 62 | ScreenPtr /*pScreen*/, 63 | int /*x*/, 64 | int /*y*/, 65 | int /*w*/, 66 | int /*h*/ 67 | ); 68 | Bool (*MoveCursor)( 69 | ScreenPtr /*pScreen*/, 70 | CursorPtr /*pCursor*/, 71 | int /*x*/, 72 | int /*y*/, 73 | int /*w*/, 74 | int /*h*/, 75 | int /*dx*/, 76 | int /*dy*/, 77 | unsigned long /*source*/, 78 | unsigned long /*mask*/ 79 | ); 80 | Bool (*ChangeSave)( 81 | ScreenPtr /*pScreen*/, 82 | int /*x*/, 83 | int /*y*/, 84 | int /*w*/, 85 | int /*h*/, 86 | int /*dx*/, 87 | int /*dy*/ 88 | ); 89 | 90 | } miSpriteCursorFuncRec, *miSpriteCursorFuncPtr; 91 | 92 | extern Bool miSpriteInitialize( 93 | ScreenPtr /*pScreen*/, 94 | miSpriteCursorFuncPtr /*cursorFuncs*/, 95 | miPointerScreenFuncPtr /*screenFuncs*/ 96 | ); 97 | -------------------------------------------------------------------------------- /mi/mistruct.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: mistruct.h,v 1.4 2001/02/09 02:05:22 xorgcvs Exp $ */ 2 | /*********************************************************** 3 | 4 | Copyright 1987, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | Except as contained in this notice, the name of The Open Group shall not be 23 | used in advertising or otherwise to promote the sale, use or other dealings 24 | in this Software without prior written authorization from The Open Group. 25 | 26 | 27 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. 28 | 29 | All Rights Reserved 30 | 31 | Permission to use, copy, modify, and distribute this software and its 32 | documentation for any purpose and without fee is hereby granted, 33 | provided that the above copyright notice appear in all copies and that 34 | both that copyright notice and this permission notice appear in 35 | supporting documentation, and that the name of Digital not be 36 | used in advertising or publicity pertaining to distribution of the 37 | software without specific, written prior permission. 38 | 39 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 40 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 41 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 42 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 44 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 45 | SOFTWARE. 46 | 47 | ******************************************************************/ 48 | #ifndef MISTRUCT_H 49 | #define MISTRUCT_H 50 | 51 | #include "mi.h" 52 | #include "miscstruct.h" 53 | 54 | /* information about dashes */ 55 | typedef struct _miDash { 56 | DDXPointRec pt; 57 | int e1, e2; /* keep these, so we don't have to do it again */ 58 | int e; /* bresenham error term for this point on line */ 59 | int which; 60 | int newLine;/* 0 if part of same original line as previous dash */ 61 | } miDashRec; 62 | 63 | #endif /* MISTRUCT_H */ 64 | -------------------------------------------------------------------------------- /mi/mivalidate.h: -------------------------------------------------------------------------------- 1 | /* $Xorg: mivalidate.h,v 1.4 2001/02/09 02:05:22 xorgcvs Exp $ */ 2 | /* 3 | 4 | Copyright 1993, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included 13 | in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 | OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | Except as contained in this notice, the name of The Open Group shall 24 | not be used in advertising or otherwise to promote the sale, use or 25 | other dealings in this Software without prior written authorization 26 | from The Open Group. 27 | 28 | */ 29 | 30 | 31 | #ifndef MIVALIDATE_H 32 | #define MIVALIDATE_H 33 | 34 | #include "miscstruct.h" 35 | #include "regionstr.h" 36 | 37 | typedef union _Validate { 38 | struct BeforeValidate { 39 | DDXPointRec oldAbsCorner; /* old window position */ 40 | RegionPtr borderVisible; /* visible region of border, */ 41 | /* non-null when size changes */ 42 | Bool resized; /* unclipped winSize has changed - */ 43 | /* don't call SaveDoomedAreas */ 44 | } before; 45 | struct AfterValidate { 46 | RegionRec exposed; /* exposed regions, absolute pos */ 47 | RegionRec borderExposed; 48 | } after; 49 | } ValidateRec; 50 | 51 | #endif /* MIVALIDATE_H */ 52 | -------------------------------------------------------------------------------- /miext/layer/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $XFree86: xc/programs/Xserver/miext/layer/Imakefile,v 1.1 2001/05/29 04:54:13 keithp Exp $ 2 | XCOMM 3 | XCOMM 4 | 5 | #define IHaveModules 6 | #include 7 | 8 | #ifdef XFree86Version 9 | #if DoLoadableServer 10 | XFMODSRC = shmodule.c 11 | XFMODOBJ = shmodule.o 12 | #endif 13 | #endif 14 | 15 | SRCS = layergc.c \ 16 | layerinit.c \ 17 | layerpict.c \ 18 | layerwin.c 19 | 20 | OBJS = layergc.o \ 21 | layerinit.o \ 22 | layerpict.o \ 23 | layerwin.o 24 | 25 | INCLUDES = -I. -I../shadow -I../../mi -I../../fb -I../../include -I$(XINCLUDESRC) \ 26 | -I$(FONTINCSRC) -I$(XF86SRC)/common $(EXTRAINCLUDES) \ 27 | -I../../render -I$(EXTINCSRC) 28 | LINTLIBS = ../../dix/llib-ldix.ln ../../os/llib-los.ln \ 29 | ../../mi/llib-lmi.ln 30 | 31 | NormalLibraryObjectRule() 32 | LibraryModuleTarget(layer,$(OBJS)) 33 | LintLibraryTarget(layer,$(SRCS)) 34 | 35 | NormalLintTarget($(SRCS)) 36 | 37 | InstallLibraryModule(layer,$(MODULEDIR),.) 38 | 39 | #ifndef OS2Architecture 40 | DependTarget() 41 | #endif 42 | 43 | InstallDriverSDKLibraryModule(layer,$(DRIVERSDKMODULEDIR),.) 44 | InstallDriverSDKNonExecFile(layer.h,$(DRIVERSDKINCLUDEDIR)) 45 | -------------------------------------------------------------------------------- /miext/layer/Makefile: -------------------------------------------------------------------------------- 1 | include ../../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../../include -I../../mi -I../../fb -I../../hw/kdrive -I../../render $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | libICE.a: $(OBJS:.c=.o) 10 | ar cr liblayer.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: liblayer.a 14 | cp -f liblayer.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /miext/layer/layer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/layer/layer.h -------------------------------------------------------------------------------- /miext/layer/layergc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/layer/layergc.c -------------------------------------------------------------------------------- /miext/layer/layerinit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/layer/layerinit.c -------------------------------------------------------------------------------- /miext/layer/layerpict.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/layer/layerpict.c -------------------------------------------------------------------------------- /miext/layer/layerstr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/layer/layerstr.h -------------------------------------------------------------------------------- /miext/layer/layerwin.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/layer/layerwin.c -------------------------------------------------------------------------------- /miext/shadow/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $XFree86: xc/programs/Xserver/miext/shadow/Imakefile,v 1.6 2001/07/20 19:25:02 keithp Exp $ 2 | XCOMM 3 | XCOMM 4 | 5 | #define IHaveModules 6 | #include 7 | 8 | #ifdef XFree86Version 9 | #if DoLoadableServer 10 | XFMODSRC = shmodule.c 11 | XFMODOBJ = shmodule.o 12 | #endif 13 | #endif 14 | 15 | SRCS = $(XFMODSRC) \ 16 | shadow.c \ 17 | shalloc.c \ 18 | shplanar.c \ 19 | shplanar8.c \ 20 | shpacked.c \ 21 | shrotate.c \ 22 | shrot8pack_90.c \ 23 | shrot8pack_180.c \ 24 | shrot8pack_270.c \ 25 | shrot16pack_90.c \ 26 | shrot16pack_180.c \ 27 | shrot16pack_270.c \ 28 | shrot32pack_90.c \ 29 | shrot32pack_180.c \ 30 | shrot32pack_270.c 31 | 32 | OBJS = $(XFMODOBJ) \ 33 | shadow.o \ 34 | shalloc.o \ 35 | shplanar.o \ 36 | shplanar8.o \ 37 | shpacked.o \ 38 | shrotate.o \ 39 | shrot8pack_90.o \ 40 | shrot8pack_180.o \ 41 | shrot8pack_270.o \ 42 | shrot16pack_90.o \ 43 | shrot16pack_180.o \ 44 | shrot16pack_270.o \ 45 | shrot32pack_90.o \ 46 | shrot32pack_180.o \ 47 | shrot32pack_270.o 48 | 49 | INCLUDES = -I. -I../../mi -I../../fb -I../../include -I$(XINCLUDESRC) \ 50 | -I$(FONTINCSRC) -I$(XF86SRC)/common $(EXTRAINCLUDES) \ 51 | -I../../render -I$(EXTINCSRC) 52 | LINTLIBS = ../../dix/llib-ldix.ln ../../os/llib-los.ln \ 53 | ../../mi/llib-lmi.ln 54 | 55 | NormalLibraryObjectRule() 56 | LibraryModuleTarget(shadow,$(OBJS)) 57 | LintLibraryTarget(shadow,$(SRCS)) 58 | 59 | NormalLintTarget($(SRCS)) 60 | 61 | InstallLibraryModule(shadow,$(MODULEDIR),.) 62 | 63 | #ifndef OS2Architecture 64 | DependTarget() 65 | #endif 66 | 67 | InstallDriverSDKLibraryModule(shadow,$(DRIVERSDKMODULEDIR),.) 68 | InstallDriverSDKNonExecFile(shadow.h,$(DRIVERSDKINCLUDEDIR)) 69 | -------------------------------------------------------------------------------- /miext/shadow/Makefile: -------------------------------------------------------------------------------- 1 | include ../../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../../include -I../../mi -I../../fb -I../../hw/kdrive -I../../render $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | libICE.a: $(OBJS:.c=.o) 10 | ar cr libshadow.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: libshadow.a 14 | cp -f libshadow.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /miext/shadow/shadow.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shadow.c -------------------------------------------------------------------------------- /miext/shadow/shadow.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shadow.h -------------------------------------------------------------------------------- /miext/shadow/shalloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shalloc.c -------------------------------------------------------------------------------- /miext/shadow/shmodule.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shmodule.c -------------------------------------------------------------------------------- /miext/shadow/shpacked.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shpacked.c -------------------------------------------------------------------------------- /miext/shadow/shplanar.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shplanar.c -------------------------------------------------------------------------------- /miext/shadow/shplanar8.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shplanar8.c -------------------------------------------------------------------------------- /miext/shadow/shrot16pack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrot16pack.c -------------------------------------------------------------------------------- /miext/shadow/shrot16pack_180.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrot16pack_180.c -------------------------------------------------------------------------------- /miext/shadow/shrot16pack_270.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrot16pack_270.c -------------------------------------------------------------------------------- /miext/shadow/shrot16pack_90.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrot16pack_90.c -------------------------------------------------------------------------------- /miext/shadow/shrot32pack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrot32pack.c -------------------------------------------------------------------------------- /miext/shadow/shrot32pack_180.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrot32pack_180.c -------------------------------------------------------------------------------- /miext/shadow/shrot32pack_270.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrot32pack_270.c -------------------------------------------------------------------------------- /miext/shadow/shrot32pack_90.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrot32pack_90.c -------------------------------------------------------------------------------- /miext/shadow/shrot8pack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrot8pack.c -------------------------------------------------------------------------------- /miext/shadow/shrot8pack_180.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrot8pack_180.c -------------------------------------------------------------------------------- /miext/shadow/shrot8pack_270.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrot8pack_270.c -------------------------------------------------------------------------------- /miext/shadow/shrot8pack_90.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrot8pack_90.c -------------------------------------------------------------------------------- /miext/shadow/shrotate.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrotate.c -------------------------------------------------------------------------------- /miext/shadow/shrotpack.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/miext/shadow/shrotpack.h -------------------------------------------------------------------------------- /os/Makefile: -------------------------------------------------------------------------------- 1 | include ../standard_definitions.mk 2 | #-DXSYNC -DFONTCACHE -DMITMISC -DXTRAP -DXCMISC 3 | DEFS=-DXSERV_t -DTRANS_SERVER -DUNIXCONN -DTCPCONN -DHAS_FCHOWN -DDDXOSINIT -DADMPATH=\"/usr/adm/X\%smsgs\" -DBIGREQS 4 | 5 | CFLAGS= -I../include -I../common -I../render -I../Xext -I../lbx -I../fb -I../mi -I../miext/shadow -I../hw/kdrive -I../miext/layer $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=WaitFor.c access.c connection.c io.c osinit.c utils.c auth.c mitauth.c secauth.c xdmcp.c decompress.c transport.c 8 | 9 | libICE.a: $(OBJS:.c=.o) 10 | ar cr libos.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: libos.a 14 | cp -f libos.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /os/hpsocket.c: -------------------------------------------------------------------------------- 1 | /* $Xorg: hpsocket.c,v 1.4 2001/02/09 02:05:23 xorgcvs Exp $ */ 2 | /* 3 | 4 | Copyright 1988, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included 13 | in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 | OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | Except as contained in this notice, the name of The Open Group shall 24 | not be used in advertising or otherwise to promote the sale, use or 25 | other dealings in this Software without prior written authorization 26 | from The Open Group. 27 | 28 | */ 29 | 30 | /* 31 | * special socket routine for hp 32 | */ 33 | 34 | #include 35 | #include 36 | 37 | int 38 | set_socket_option (socket_id, option) 39 | int socket_id; 40 | char option; 41 | { 42 | int optlen = 1; 43 | char optval = 0x0; 44 | 45 | getsockopt (socket_id, SOL_SOCKET, option, &optval, &optlen); 46 | 47 | optval |= option; 48 | 49 | setsockopt (socket_id, SOL_SOCKET, option, &optval, 1); 50 | } 51 | 52 | 53 | int 54 | unset_socket_option (socket_id, option) 55 | int socket_id; 56 | char option; 57 | { 58 | int optlen = 1; 59 | char optval = 0x0; 60 | 61 | getsockopt (socket_id, SOL_SOCKET, option, &optval, &optlen); 62 | 63 | optval &= ~option; 64 | 65 | setsockopt (socket_id, SOL_SOCKET, option, &optval, 1); 66 | } 67 | -------------------------------------------------------------------------------- /os/transport.c: -------------------------------------------------------------------------------- 1 | /* $Xorg: transport.c,v 1.4 2001/02/09 02:04:07 xorgcvs Exp $ */ 2 | /* 3 | 4 | Copyright 1993, 1994, 1998 The Open Group 5 | 6 | Permission to use, copy, modify, distribute, and sell this software and its 7 | documentation for any purpose is hereby granted without fee, provided that 8 | the above copyright notice appear in all copies and that both that 9 | copyright notice and this permission notice appear in supporting 10 | documentation. 11 | 12 | The above copyright notice and this permission notice shall be included 13 | in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 | OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | Except as contained in this notice, the name of The Open Group shall 24 | not be used in advertising or otherwise to promote the sale, use or 25 | other dealings in this Software without prior written authorization 26 | from The Open Group. 27 | 28 | */ 29 | /* $XFree86: xc/lib/xtrans/transport.c,v 3.8 2001/12/14 19:57:07 dawes Exp $ */ 30 | 31 | /* Copyright 1993, 1994 NCR Corporation - Dayton, Ohio, USA 32 | * 33 | * All Rights Reserved 34 | * 35 | * Permission to use, copy, modify, and distribute this software and its 36 | * documentation for any purpose and without fee is hereby granted, provided 37 | * that the above copyright notice appear in all copies and that both that 38 | * copyright notice and this permission notice appear in supporting 39 | * documentation, and that the name NCR not be used in advertising 40 | * or publicity pertaining to distribution of the software without specific, 41 | * written prior permission. NCR makes no representations about the 42 | * suitability of this software for any purpose. It is provided "as is" 43 | * without express or implied warranty. 44 | * 45 | * NCR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 46 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN 47 | * NO EVENT SHALL NCR BE LIABLE FOR ANY SPECIAL, INDIRECT OR 48 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 49 | * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 50 | * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 51 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 52 | */ 53 | 54 | #ifdef XSERV_t 55 | #include "os.h" 56 | #else 57 | #include 58 | #define xalloc(_size) malloc(_size) 59 | #define xcalloc(_num,_size) calloc(_num,_size) 60 | #define xrealloc(_ptr,_size) realloc(_ptr,_size) 61 | #define xfree(_ptr) free(_ptr) 62 | #endif 63 | 64 | #include "Xtransint.h" 65 | 66 | #ifdef LOCALCONN 67 | #include "Xtranslcl.c" 68 | #endif 69 | #ifdef OS2PIPECONN 70 | #include "Xtransos2.c" 71 | #endif 72 | #if defined(TCPCONN) || defined(UNIXCONN) 73 | #include "Xtranssock.c" 74 | #endif 75 | #include "Xtrans.c" 76 | #include "Xtransutil.c" 77 | -------------------------------------------------------------------------------- /randr/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $XFree86: xc/programs/Xserver/randr/Imakefile,v 1.1 2001/05/23 03:29:44 keithp Exp $ 2 | #include 3 | 4 | SRCS = randr.c mirandr.c 5 | 6 | OBJS = randr.o mirandr.o 7 | 8 | INCLUDES = -I../include -I../mi -I../../../include/fonts \ 9 | -I../fb -I../hw/kdrive -I$(EXTINCSRC) -I$(XINCLUDESRC) \ 10 | -I$(FONTINCSRC) 11 | LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln 12 | 13 | NormalLibraryTarget(randr,$(OBJS)) 14 | NormalLibraryObjectRule() 15 | LintLibraryTarget(randr,$(SRCS)) 16 | NormalLintTarget($(SRCS)) 17 | 18 | DependTarget() 19 | -------------------------------------------------------------------------------- /randr/Makefile: -------------------------------------------------------------------------------- 1 | include ../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../include -I../mi -I../fb -I../hw/kdrive $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | librandr.a: $(OBJS:.c=.o) 10 | ar cr librandr.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: librandr.a 14 | cp -f librandr.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /randr/mirandr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/randr/mirandr.c -------------------------------------------------------------------------------- /randr/randr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/randr/randr.c -------------------------------------------------------------------------------- /randr/randr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/randr/randr.h -------------------------------------------------------------------------------- /randr/randrproto.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/randr/randrproto.h -------------------------------------------------------------------------------- /randr/randrstr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/randr/randrstr.h -------------------------------------------------------------------------------- /record/Makefile: -------------------------------------------------------------------------------- 1 | include ../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../include -I../Xext $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | libICE.a: $(OBJS:.c=.o) 10 | ar cr librecord.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: librecord.a 14 | cp -f librecord.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /record/record.lo: -------------------------------------------------------------------------------- 1 | # record.lo - a libtool object file 2 | # Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06) 3 | # 4 | # Please DO NOT delete this file! 5 | # It is necessary for linking the library. 6 | 7 | # Name of the PIC object. 8 | pic_object='.libs/record.o' 9 | 10 | # Name of the non-PIC object. 11 | non_pic_object=none 12 | 13 | -------------------------------------------------------------------------------- /record/set.lo: -------------------------------------------------------------------------------- 1 | # set.lo - a libtool object file 2 | # Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06) 3 | # 4 | # Please DO NOT delete this file! 5 | # It is necessary for linking the library. 6 | 7 | # Name of the PIC object. 8 | pic_object='.libs/set.o' 9 | 10 | # Name of the non-PIC object. 11 | non_pic_object=none 12 | 13 | -------------------------------------------------------------------------------- /render/Imakefile: -------------------------------------------------------------------------------- 1 | XCOMM $XFree86: xc/programs/Xserver/render/Imakefile,v 1.7 2001/07/18 10:15:02 keithp Exp $ 2 | #include 3 | 4 | SRCS = glyph.c \ 5 | miglyph.c \ 6 | miindex.c \ 7 | mipict.c \ 8 | mirect.c \ 9 | picture.c \ 10 | render.c 11 | 12 | OBJS = glyph.o \ 13 | miglyph.o \ 14 | miindex.o \ 15 | mipict.o \ 16 | mirect.o \ 17 | picture.o \ 18 | render.o 19 | 20 | INCLUDES = -I. -I../include -I../mi -I../../../include/fonts \ 21 | -I../fb -I../hw/kdrive -I$(EXTINCSRC) -I$(XINCLUDESRC) \ 22 | -I$(FONTINCSRC) -I../Xext 23 | LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln 24 | 25 | NormalLibraryTarget(render,$(OBJS)) 26 | NormalLibraryObjectRule() 27 | LintLibraryTarget(render,$(SRCS)) 28 | NormalLintTarget($(SRCS)) 29 | 30 | DependTarget() 31 | -------------------------------------------------------------------------------- /render/Makefile: -------------------------------------------------------------------------------- 1 | include ../standard_definitions.mk 2 | 3 | DEFS= 4 | 5 | CFLAGS= -I../include -I../mi -I../fb -I../hw/kdrive -I../Xext $(COMMONDEFS) $(DEFS) 6 | 7 | OBJS=$(wildcard *.c) 8 | 9 | libICE.a: $(OBJS:.c=.o) 10 | ar cr librender.a $(OBJS:.c=.o) 11 | clean: 12 | rm -f *.o *.a 13 | install: librender.a 14 | cp -f librender.a $(LIBDIR) 15 | depend: 16 | gccmakedep -- $(CFLAGS) -- *.c -------------------------------------------------------------------------------- /render/glyph.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/render/glyph.c -------------------------------------------------------------------------------- /render/glyphstr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/render/glyphstr.h -------------------------------------------------------------------------------- /render/miglyph.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/render/miglyph.c -------------------------------------------------------------------------------- /render/miindex.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/render/miindex.c -------------------------------------------------------------------------------- /render/mipict.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/render/mipict.c -------------------------------------------------------------------------------- /render/mipict.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/render/mipict.h -------------------------------------------------------------------------------- /render/mirect.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/render/mirect.c -------------------------------------------------------------------------------- /render/picture.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/render/picture.c -------------------------------------------------------------------------------- /render/picture.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/render/picture.h -------------------------------------------------------------------------------- /render/picturestr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/render/picturestr.h -------------------------------------------------------------------------------- /render/render.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idunham/tinyxserver/b010434a14ad650923ba3e8f784112f6b3ce56c3/render/render.c -------------------------------------------------------------------------------- /standard_definitions.mk: -------------------------------------------------------------------------------- 1 | 2 | ####compiler#### 3 | CC=/usr/bin/gcc 4 | #CC=/opt/musl/bin/musl-gcc 5 | 6 | ####compilerflags#### 7 | COMPFLAGS=-pipe -fPIC -Os -Wall -D_BSD_SOURCE -D_GNU_SOURCE -D__KERNEL_STRICT_NAMES \ 8 | -fno-strength-reduce -nodefaultlibs -fno-strict-aliasing \ 9 | -ffunction-sections -fdata-sections \ 10 | -I. -I/usr/xsrc/pkg/usr/include 11 | 12 | 13 | ####extensions#### 14 | DPMS=-DDPMSExtension 15 | SCREENSAVER=-DSCREENSAVER 16 | MIT-SHM=-DMITSHM 17 | RENDER=-DRENDER 18 | #FIXME:if not defined dont define PANORAMIX=-DPANORAMIX 19 | SHAPE=-DSHAPE 20 | SYNC=-DXSYNC 21 | TOG-CUP=-DTOGCUP 22 | XCMISC=-DXCMISC 23 | XTEST=-DXTEST 24 | XTRAP=-DXTRAP 25 | XV=-DXV 26 | RANDR=-DRANDR 27 | XRECORD=-DXRECORD 28 | FONTCACHE=-DNOFONTSERVERACCESS # -DFONTCACHE or -DNOFONTSERVERACCESS 29 | 30 | ####not working#### 31 | #XINPUT=-DXINPUT #NOT WORKING! 32 | #XKB=-DXKB/XKB_IN_SERVER=-DXKB #NOT WORKING! 33 | 34 | 35 | ####others#### 36 | #SERVER_LOCK=-DSERVER_LOCK 37 | #SMART_SCHEDULE=-DSMART_SCHEDULE 38 | USE_RGB_TXT=-DUSE_RGB_TXT 39 | #XDMCP=-DXDMCP 40 | PANORAMIX=-DPANORAMIX 41 | 42 | ####where to look for fonts/colors#### 43 | # Puppy: 44 | #FONTPATH=/usr/X11R7/lib/X11/fonts/misc/ 45 | #RGB=/usr/X11R7/lib/X11/rgb 46 | # Debian: 47 | FONTPATH=/usr/share/fonts/X11/misc/ 48 | RGB=/usr/share/X11/rgb 49 | 50 | #Lazyux 51 | #FONTPATH="/usr/share/fonts/misc/,/usr/share/fonts/truetype/,/usr/share/fonts/X11/100dpi/,/usr/share/fonts/X11/75dpi/\" 52 | 53 | #-DRGB_DB=\"/usr/share/X11/rgb.txt\" \ 54 | 55 | #all deactivated creates 543K Xvesa 56 | #all activated creates 728K Xvesa 57 | COMMONDEFS=$(COMPFLAGS) \ 58 | -DNOERROR \ 59 | -Dlinux \ 60 | -D_POSIX_SOURCE \ 61 | -D_BSD_SOURCE \ 62 | -DTOSHIBA_SMM \ 63 | -D_SVID_SOURCE \ 64 | -D_GNU_SOURCE \ 65 | -DX_LOCALE \ 66 | -DKDRIVESERVER \ 67 | -DGCCUSESGAS \ 68 | -DDDXOSINIT \ 69 | $(FONTCACHE) \ 70 | -DNDEBUG \ 71 | -DNARROWPROTO \ 72 | -DPIXPRIV \ 73 | $(XTEST) \ 74 | -DFUNCPROTO=15 \ 75 | -DCOMPILEDDEFAULTFONTPATH=\"${FONTPATH}\" \ 76 | -DRGB_DB=\"${RGB}\" \ 77 | -D_POSIX_C_SOURCE=2 \ 78 | $(DPMS) \ 79 | $(SYNC) \ 80 | $(PANORAMIX) \ 81 | $(SHAPE) \ 82 | $(TOG-CUP) \ 83 | $(MIT-SHM) \ 84 | $(RENDER) \ 85 | $(SCREENSAVER) \ 86 | $(SERVER_LOCK) \ 87 | $(SMART_SCHEDULE) \ 88 | $(XCMISC) \ 89 | $(XDMCP) \ 90 | $(XTRAP) \ 91 | $(XV) \ 92 | $(XINPUT) \ 93 | $(XKB) \ 94 | $(XKB_IN_SERVER) \ 95 | $(RANDR) \ 96 | $(XRECORD) \ 97 | $(USE_RGB_TXT) \ 98 | $(PIXPRIV) \ 99 | $(X_LOCALE) \ 100 | $(XF86BIGFONT) \ 101 | $(BIGREQS) \ 102 | -D__KERNEL_STRICT_NAMES 103 | 104 | LDFLAGS=-static -Wl,--gc-sections,--sort-common,-s 105 | LINKDIR=-L/usr/xsrc/pkg/usr/lib 106 | 107 | #LINKDIR=-L/opt/musl/lib 108 | #LIBDIR=/opt/musl/lib 109 | #INCDIR=/opt/musl/include 110 | 111 | PREDIR=/usr 112 | LIBDIR=$(DESTDIR)$(PREDIR)/lib 113 | INCDIR=$(DESTIR)$(PREDIR)/include 114 | 115 | -------------------------------------------------------------------------------- /version.txt: -------------------------------------------------------------------------------- 1 | tiny-Xserver 0.03 2 | --------------------------------------------------------------------------------