summaryrefslogtreecommitdiff
path: root/os
AgeCommit message (Collapse)AuthorFilesLines
2009-09-27Add (ok, fix) support for DTrace under OS XBen Byer1-0/+2
(cherry picked from commit 8428a57184f542941d2c8c90e97d18e111a69dd2)
2009-09-04os: silence bigreqsproto compiler warningPeter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-04os: don't redefine GNU_SOURCEPeter Hutterer1-0/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-28os: remove unused -cursor optionTiago Vignatti1-5/+0
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
2009-08-20linux: Yet more malloc() avoidance for backtrace()Adam Jackson1-0/+14
Turns out, there's an initializer at the top of backtrace() that (on some arches) calls dlopen(). dlopen(), unsurprisingly, calls malloc(). So, call backtrace() early in signal handler setup so we can later safely call it from the signal handler itself.
2009-08-19linux: hand-roll a backtrace printer instead of using backtrace_symbolsAdam Jackson1-7/+16
Why? Because backtrace_symbols calls malloc, which you can't do from a signal handler. Face? Palm.
2009-08-18xserver doesn't stop all connections to localhostJesse Adkins1-2/+1
X.Org Bugzilla #23329: http://bugs.freedesktop.org/show_bug.cgi?id=23329 Patch #28648: http://bugs.freedesktop.org/attachment.cgi?id=28648 I noticed in xserver at os/access.c that xorg tries to stop connections to localhost by checking against the address 127.0.0.1. However, RFC 3330 defines the localhost network as 127.0.0.0/8. This means that any IPv4 address that starts with 127 is just another name for localhost.
2009-08-03Bug 16832: XDMCP related build error when --disable-xdmcp is usedPaul Bender1-0/+6
X.Org Bugzilla #16832: http://bugs.freedesktop.org/show_bug.cgi?id=16832 Patch #27279: http://bugs.freedesktop.org/attachment.cgi?id=27279
2009-07-15Update to xextproto 7.0.99.1.Peter Hutterer1-2/+1
xextproto had Xlib client headers moved into libXext. Protocol header files are named fooproto.h, header files with constants foo.h or fooconst.h where foo.h was already in use for client-side headers.
2009-07-14os: switch to byte counting functionsPeter Hutterer2-5/+5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-18Clarify use of and need for mffs vs. ffsAlan Coopersmith3-4/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-06-11OS: Fix compile warningsDaniel Stone1-5/+7
It's a marvel the sigaction() ever actually worked. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-05-28Merge branch 'master' into xi2Peter Hutterer2-11/+22
Conflicts: Xext/geext.c Xi/chdevcur.c Xi/extgrbdev.c Xi/xiproperty.c configure.ac dix/ptrveloc.c hw/xfree86/common/xf86Config.c mi/mipointer.h test/input.c xkb/xkb.c
2009-05-22os: fix compiler warning "too few arguments to format"Peter Hutterer1-2/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-14Update several of my and/or Red Hat's licenses to standard form.Adam Jackson1-10/+11
2009-04-28Make the cursor completely optionalSimon Farnsworth1-1/+11
For embedded use, it's convenient to be able to disable the cursor completely, without having to audit and fix up all your third-party code (e.g. Mozilla Firefox). Add -nocursor and -cursor server options to enable and disable the cursor. The default is still -cursor, but embedded users can run the server with -nocursor to hide the cursor regardless of what application developers do. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-19os: don't malloc memory in LogVMessageVerb.Peter Hutterer1-16/+6
LogVWrite is limited to a buffer size of 1024, so we don't loose anything here by truncating. This way we can use LogVMessageVerb (and xf86Msg and friends) during signal handlers with the normal message types. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-14xdmcp: Don't crash on X -query with more than 255 IP addresses. (#20675)Adam Jackson1-0/+2
You could be more clever than this, but the wire protocol says this really is an array of not more than 255 ARRAY8, so it's not just a matter of changing the types.
2009-04-09Use RTLD_DI_SETSIGNAL to catch runtime dynamic loader errors and clean upAlan Coopersmith1-0/+20
Based on fix for Sun bug 6813925: Xorg needs to catch ld.so.1 failure so it can close down devices cleanly <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6813925> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-09Lift fatal signal handlers from DDX'es up to a common DIX implementationAlan Coopersmith2-0/+90
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-06os: signal handlers return void.Adam Jackson1-4/+2
2009-04-06Remove some OS/2 leftovers.Adam Jackson1-9/+0
2009-04-03os: Remove the useless -x optionAdam Jackson1-9/+0
2009-04-03DPMS: Simplify command line parsingAdam Jackson1-2/+1
2009-03-23Remove two unused defines in C filesTomas Carnecky1-1/+0
These two defines were defined in C files but not used anywhere: dix/window.c #define DeviceEventMasks (KeyPressMask | [...] os/connection.c #define MAXFD 500 Signed-off-by: Tomas Carnecky <tom@dbservice.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-03-05Remove #ifdef macII code left over from ancient A/UX 3.0 supportAlan Coopersmith1-4/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-01-22Remove a bunch of useless casts.Adam Jackson9-34/+33
We've had void * for twenty years now people let's try to act like we know how it works.
2009-01-22XKB: Make XKB mandatoryDaniel Stone1-8/+1
No more #ifdef XKB, because you can't disable the build, and no more noXkbExtension either. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-19Cygwin/X: should also use GetTickCount(), just like XmingJon TURNEY1-1/+6
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-01-11os: don't mix declarations and codeJulien Cristau1-1/+1
2009-01-11os: backtrace() returns int, not size_tJulien Cristau1-1/+1
2009-01-11os: ANSI cleanupsJulien Cristau2-6/+2
2008-12-17Don't log audit messages when -audit 0 specifiedFrancis Giraldeau1-3/+1
make the auditTrailLevel check more general and don't log when not using DTRACE and -audit 0 is set.
2008-12-16Fix compilation with -Werror=format-securityColin Guthrie1-2/+3
2008-12-12Remove #define NEED_EVENTS and NEED_REPLIESPeter Hutterer1-1/+0
A grep on xorg/* revealed there's no consumer of this define. Quote Alan Coopersmith: "The consumer was in past versions of the headers now located in proto/x11proto - for instance, in X11R6.0's xc/include/Xproto.h, all the event definitions were only available if NEED_EVENTS were defined, and all the reply definitions required NEED_REPLIES. Looks like Xproto.h dropped them by X11R6.3, which didn't have the #ifdef's anymore, so these are truly ancient now." Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-12-03Rework symbol visibility for easier maintenancePaulo Cesar Pereira de Andrade15-165/+165
Save in a few special cases, _X_EXPORT should not be used in C source files. Instead, it should be used in headers, and the proper C source include that header. Some special cases are symbols that need to be shared between modules, but not expected to be used by external drivers, and symbols that are accessible via LoaderSymbol/dlopen. This patch also adds conditionally some new sdk header files, depending on extensions enabled. These files were added to match pattern for other extensions/modules, that is, have the headers "deciding" symbol visibility in the sdk. These headers are: o Xext/panoramiXsrv.h, Xext/panoramiX.h o fbpict.h (unconditionally) o vidmodeproc.h o mioverlay.h (unconditionally, used only by xaa) o xfixes.h (unconditionally, symbols required by dri2) LoaderSymbol and similar functions now don't have different prototypes, in loaderProcs.h and xf86Module.h, so that both headers can be included, without the need of defining IN_LOADER. xf86NewInputDevice() device prototype readded to xf86Xinput.h, but not exported (and with a comment about it).
2008-12-02Add visibility flags to XSERVER_CFLAGS.Paulo Cesar Pereira de Andrade1-1/+1
This is done to actually change DIX_CFLAGS, as not all "modules" use XORG_CFLAGS. Also export the symbols that are required by other modules after the change.
2008-11-29Export symbols defined in the sdk.Paulo Cesar Pereira de Andrade15-101/+101
This is the biggest "visibility" patch. Instead of doing a "export" symbol on demand, export everything in the sdk, so that if some module fails due to an unresolved symbol, it is because it is using a symbol not in the sdk. Most exported symbols shouldn't really be made visible, neither advertised in the sdk, as they are only used by a single shared object. Symbols in the sdk (or referenced in sdk macros), but not defined anywhere include: XkbBuildCoreState() XkbInitialMap XkbXIUnsupported XkbCheckActionVMods() XkbSendCompatNotify() XkbDDXFakePointerButton() XkbDDXApplyConfig() _XkbStrCaseCmp() _XkbErrMessages[] _XkbErrCode _XkbErrLocation _XkbErrData XkbAccessXDetailText() XkbNKNDetailMaskText() XkbLookupGroupAndLevel() XkbInitAtoms() XkbGetOrderedDrawables() XkbFreeOrderedDrawables() XkbConvertXkbComponents() XkbWriteXKBSemantics() XkbWriteXKBLayout() XkbWriteXKBKeymap() XkbWriteXKBFile() XkbWriteCFile() XkbWriteXKMFile() XkbWriteToServer() XkbMergeFile() XkmFindTOCEntry() XkmReadFileSection() XkmReadFileSectionName() InitExtInput() xf86CheckButton() xf86SwitchCoreDevice() RamDacSetGamma() RamDacRestoreDACValues() xf86Bpp xf86ConfigPix24 xf86MouseCflags[] xf86SupportedMouseTypes[] xf86NumMouseTypes xf86ChangeBusIndex() xf86EntityEnter() xf86EntityLeave() xf86WrapperInit() xf86RingBell() xf86findOptionBoolean() xf86debugListOptions() LoadSubModuleLocal() LoaderSymbolLocal() getInt10Rec() xf86CurrentScreen xf86ReallocatePciResources() xf86NewSerialNumber() xf86RandRSetInitialMode() fbCompositeSolidMask_nx1xn fbCompositeSolidMask_nx8888x0565C fbCompositeSolidMask_nx8888x8888C fbCompositeSolidMask_nx8x0565 fbCompositeSolidMask_nx8x0888 fbCompositeSolidMask_nx8x8888 fbCompositeSrc_0565x0565 fbCompositeSrc_8888x0565 fbCompositeSrc_8888x0888 fbCompositeSrc_8888x8888 fbCompositeSrcAdd_1000x1000 fbCompositeSrcAdd_8000x8000 fbCompositeSrcAdd_8888x8888 fbGeneration fbIn fbOver fbOver24 fbOverlayGeneration fbRasterizeEdges fbRestoreAreas fbSaveAreas composeFunctions VBEBuildVbeModeList() VBECalcVbeModeIndex() TIramdac3030CalculateMNPForClock() shadowBufPtr shadowFindBuf() miRRGetScreenInfo() RRSetScreenConfig() RRModePruneUnused() PixmanImageFromPicture() extern int miPointerGetMotionEvents() miClipPicture() miRasterizeTriangle() fbPush1toN() fbInitializeBackingStore() ddxBeforeReset() SetupSprite() InitSprite() DGADeliverEvent() SPECIAL CASES o defined as _X_INTERNAL xf86NewInputDevice() o defined as static fbGCPrivateKey fbOverlayScreenPrivateKey fbScreenPrivateKey fbWinPrivateKey o defined in libXfont.so, but declared in xorg/dixfont.h GetGlyphs() QueryGlyphExtents() QueryTextExtents() ParseGlyphCachingMode() InitGlyphCaching() SetGlyphCachingMode()
2008-11-27Export symbols also defined in libXfont.Paulo Cesar Pereira de Andrade1-1/+1
libXfont has stubs for these symbols, so, when compiling with hidden symbols by default, these symbols must be visible in the X Server, or the stubs in libXfont will be used.
2008-11-14os/connection: TRANS_NOXAUTH bit comparison brainfart fix.Jeremy Huddleston1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=18524
2008-11-05Use OsSignal in Popen/Pclose to avoid SysV signal() stupidityAlan Coopersmith1-4/+4
2008-11-04Remove XEvIEDaniel Stone1-5/+0
It's unmaintained and has been broken for quite a while; MPX finally smashed it completely. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-04Xi: XINPUT has been mandatory for agesDaniel Stone1-1/+0
Ditch all #ifdef XINPUT, since it's always built. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-10-26Add prototypes for strlcpy/strlcatJulien Cristau2-0/+2
2008-10-23Argh, macros.Adam Jackson1-8/+8
2008-10-23Change some #define foo() -> static void foo()Adam Jackson1-8/+19
2008-10-21Close well known connections in ServerAbort()Matthieu Herrb1-0/+1
2008-10-10Move xorg_backtrace() up to the OS level so we can call it from DIX.Adam Jackson2-0/+202
2008-10-07Depend on xtrans >= 1.2.2 for TRANS_NOXAUTHJeremy Huddleston1-5/+0
2008-10-03Remove the Must_have_memory hack.Adam Jackson1-51/+25
Also remove an astonishing amount of misunderstanding of how casts work.