summaryrefslogtreecommitdiff
path: root/os/utils.c
AgeCommit message (Collapse)AuthorFilesLines
2007-03-20Static markup and dead code cull over xkb/.Adam Jackson1-1/+1
The former <X11/extensions/XKBsrv.h> has been pulled into the server now as include/xkbsrv.h, and the world updated to look for it in the new place, since it made no sense to define server API in an extension header. Any further work along this line will need to do similar things with XKBgeom.h and friends.
2007-02-16merged in miext/rootless changes for XDarwin supportBen Byer1-1/+1
2007-01-10Bug #9555: Always define _GNU_SOURCE in glibc environments.Eric Anholt1-17/+1
This keeps us from having to define _POSIX_C_SOURCE, _BSD_SOURCE, and _XOPEN_SORUCE to get the C environment we want in different places. It also fixes the build on linux due to RTLD_DEFAULT having not been defined.
2006-12-24os: test for userland, not kernelDaniel Stone1-1/+1
It doesn't matter which kernel we're running on, the relevant part when dealing with includes is what our userland is.
2006-12-19Only do the _POSIX_C_SOURCE hackery on linux where it's required.Eric Anholt1-4/+4
On other OSes, the nasty hack was resulting in prototypes being hidden, so just don't do it.
2006-11-08os: fix sun extensions testDaniel Stone1-2/+4
'else if' is not very valid, plus the logic is kind of broken, so just move it outside the ifdef in the first place.
2006-11-02Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into ↵Daniel Stone1-0/+2
input-hotplug
2006-10-31Make _POSIX_C_SOURCE hack work with Solaris headersAlan Coopersmith1-0/+2
Solaris headers are very literal - if you ask for POSIX_C_SOURCE 199309L, they limit to only the functions in that standard and no more, unless you also specify __EXTENSIONS__ to allow functions beyond the standard base.
2006-10-29GetTimeInMillis: use correct units for clock_gettimeDaniel Stone1-1/+1
Make sure we're treating the nanoseconds as a long, not an int, so we don't overflow.
2006-10-26GetTimeInMillis: simplify monotonic testDaniel Stone1-16/+3
We don't actually need to get the CPU clock ID, which means we don't need the monotonic_usable test. Since there's now only one branch, the compiler will treat that as likely, so we don't need xproto 7.0.9 anymore. The fallthrough to gettimeofday() is preserved.
2006-10-25GetTimeInMillis: spuport monotonic clockDaniel Stone1-4/+35
Add support for CLOCK_MONOTONIC from clock_gettime, and use that in GetTimeInMillis() if available, falling back to the old gettimeofday() implementation. This is _slightly_ faster on some 64-bit architectures, and _slightly_ slower on others (though barely measurable).
2006-08-18dix: add whiteroot flagDaniel Stone1-0/+3
Add a -wr option to use a white root window, and use a BackPixel rather than BackPixmap for both white and black root windows.
2006-08-12remove obsolete vendor definesDaniel Stone1-7/+0
Remove random behaviour changes for SGI and MetroLink.
2006-08-09Remove the bc flag from the -help text, since it's gone.Adam Jackson1-1/+0
2006-08-07remove optional R3 backwards compatibilityDaniel Stone1-2/+0
Remove the permitOldBugs flag, which enabled backwards compatbility with broken R2/R3 era clients.
2006-07-21Remove RCS tags. Fix Xprint makefile braindamage.Adam Jackson1-3/+0
2006-07-21never define MEMBUGDaniel Stone1-6/+0
Definining MEMBUG causes allocations to randomly fail.
2006-07-20Remove the DDXTIME conditional, for being unused.Adam Jackson1-2/+0
2006-07-18get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULEDaniel Stone1-7/+3
Get rid of almost all uses of these definitions. They're still defined for delinquent out-of-tree drivers, and also for the Mesa build. As well as for miinitext.c. But largely gone.
2006-06-21fix a number of compiler warnings in os/*Greg Kroah-Hartman1-0/+3
2006-06-20Move Xserver API for security extension to securitysrv.hAlan Coopersmith1-2/+1
2006-06-20Check setuid() return value. Bugzilla #7116.Matthieu Herrb1-7/+13
2006-06-08fix up EnableDisableExtension() and EnableDisableExtensionError() prototypesGreg Kroah-Hartman1-4/+1
2006-06-08Properly define dispatchExceptionAtReset to fix compiler warningsGreg Kroah-Hartman1-2/+0
2006-06-01Kill LBX, too.Daniel Stone1-4/+1
2006-03-25Mark everything in xf86sym.c as _X_EXPORT.Adam Jackson1-2/+2
2006-02-16Make more extensions optional in build (for kdrive). Fix kdrive build forKeith Packard1-4/+10
actual hardware. Fix kdrive pointer signed/unsigned types. Add kdrive-required YX rotation functions. Replace rgb text file loading with static rgb color table.
2006-02-15Mark everything in dixsym.c as _X_EXPORT.Adam Jackson1-46/+46
2006-01-08Remove remaining #ifdef DPSEXT stanzas.Adam Jackson1-3/+0
2005-11-08See ChangeLog entry 2005-11-07 for details.Kean Johnson1-0/+50
2005-07-03Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h".Daniel Stone1-1/+1
2005-07-03Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings.Daniel Stone1-0/+4
Add XSERV_t, TRANS_SERVER, TRANS_REOPEN to quash warnings. Add #include <dix-config.h> or <xorg-config.h>, as appropriate, to all source files in the xserver/xorg tree, predicated on defines of HAVE_{DIX,XORG}_CONFIG_H. Change all Xfont includes to <X11/fonts/foo.h>.
2005-07-01Change all misc.h and os.h references to <X11/foo.h>.Daniel Stone1-2/+2
2005-06-09Bug #1846: Add intentionally undocumented -disablexineramaextension flag toAdam Jackson1-0/+4
the server to work around ignorant clients on large display walls. (Kevin E. Martin)
2005-05-19Bug #3334: Clean up remnants from the PEX, XIE, and BEZIER extensions.Adam Jackson1-9/+0
2005-04-27Catch SIGCHLD in OsBlockSignals() too to make sure this signal doesn'tEgbert Eich1-0/+3
intercept reading the authority file (Fabian Franz, Bugzilla #3137).
2005-04-24xc/config/cf/X11.tmplRoland Mainz1-0/+4
xc/programs/Xserver/Xext/Imakefile xc/programs/Xserver/dix/Imakefile xc/programs/Xserver/dix/main.c xc/programs/Xserver/dix/xpstubs.c xc/programs/Xserver/mi/miinitext.c //bugs.freedesktop.org/show_bug.cgi?id=2792) attachment #2526 (https://bugs.freedesktop.org/attachment.cgi?id=2526) bug 2792 part II: Make Xprint headers in dix/, mi/, os/ and Xext/ conditional on whether the Xprint extension is build or not. Patch by Egbert Eich <eich@freedesktop.org> and Roland Mainz <roland.mainz@nrubsig.org>.
2005-04-20Fix includes right throughout the Xserver tree:Daniel Stone1-6/+6
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h; change "foo.h", "extensions/foo.h" and "X11/foo.h" to <X11/extensions/foo.h> for extension headers, e.g. Xv.h; change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
2005-03-23xc/programs/Xserver/ImakefileRoland Mainz1-2/+5
xc/programs/Xserver/Xprint/DiPrint.h xc/programs/Xserver/Xprint/Imakefile xc/programs/Xserver/Xprint/Init.c xc/programs/Xserver/Xprint/ddxInit.c xc/programs/Xserver/dix/Imakefile xc/programs/Xserver/dix/main.c xc/programs/Xserver/dix/xpstubs.c xc/programs/Xserver/os/Imakefile //bugs.freedesktop.org/show_bug.cgi?id=2792) attachment #2193 (https://bugs.freedesktop.org/attachment.cgi?id=2193) Fix build bustage when |PrintOnlyServer| is set to |NO|. Patch by Roland Mainz <roland.mainz@nrubsig.org> and Julien Lafon <julien.lafon@gmail.com>.
2004-11-25Bugzilla #1914: fix size limit for -fp argumentAlexander Gottwald1-4/+12
2004-11-15Bufzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802 AddedAlexander Gottwald1-1/+7
mingw (Win32) port
2004-09-29Fix for http://freedesktop.org/bugzilla/show_bug.cgi?id=1489 - Use |long|Roland Mainz1-4/+4
instead of |int| for BIGREQUESTS commandline option.
2004-09-24Fix for http://freedesktop.org/bugzilla/show_bug.cgi?id=1453 - Fix spacesRoland Mainz1-2/+2
in usage output for BIGREQUESTS extension (option "-maxbigreqsize").
2004-09-14Fix for http://freedesktop.org/bugzilla/show_bug.cgi?id=1361 - RFE: AllowRoland Mainz1-11/+119
enabling/disabling of more extensions
2004-08-11Fix bogus contact address in Xserver/os/util.c (Bug #738).Kevin E Martin1-9/+17
2004-07-31Add "Extensions" section support to configuration parserKevin E Martin1-3/+18
2004-07-31Add new extension enable/disable feature. This code is a small step in theKevin E Martin1-1/+21
right direction -- i.e., moving towards full run-time config of extensions. Currently, only XTEST, XINERAMA, RENDER, XKB, and XEVIE are supported.
2004-06-19Refix for http://freedesktop.org/bugzilla/show_bug.cgi?id=764 : ReworkRoland Mainz1-1/+7
previous solution and make Xprt to default to "-noreset" (the default of Solaris version of Xprt) and add a "-reset" option which can be used to restore the default behaviour on demand.
2004-04-23Merging XORG-CURRENT into trunkEgbert Eich1-6/+18
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004Egbert Eich1-1/+1