summaryrefslogtreecommitdiff
path: root/os
AgeCommit message (Collapse)AuthorFilesLines
2008-02-14Remove useless commentary from environment and argument processing.Adam Jackson1-26/+0
2008-02-14Use strerror instead of errno values in user strings.Adam Jackson1-4/+4
2008-01-17OS: IO: Zero out client buffersDaniel Stone1-1/+1
For alignment reasons, we can write out uninitialised bytes, so allocate the whole thing with xcalloc.
2007-12-28OS: Don't leak connection translation table on regenerationDaniel Stone1-1/+2
2007-12-13Merge branch 'master' into XACE-SELINUXEamon Walsh5-36/+15
Conflicts: Xext/EVI.c Xext/bigreq.c Xext/cup.c Xext/dpms.c Xext/fontcache.c Xext/mitmisc.c Xext/xcmisc.c Xext/xf86bigfont.c Xext/xtest.c configure.ac dbe/dbe.c hw/darwin/darwin.h hw/darwin/darwinEvents.c hw/darwin/iokit/xfIOKit.h hw/darwin/iokit/xfIOKitCursor.c hw/darwin/quartz/fullscreen/fullscreen.c hw/darwin/quartz/fullscreen/quartzCursor.c hw/darwin/quartz/quartz.c hw/darwin/quartz/quartzCommon.h hw/darwin/quartz/quartzCursor.c hw/darwin/quartz/xpr/dri.c hw/darwin/quartz/xpr/dristruct.h hw/darwin/quartz/xpr/xprCursor.c hw/darwin/quartz/xpr/xprFrame.c hw/xfree86/modes/xf86RandR12.c include/cursor.h miext/rootless/rootlessCommon.h miext/rootless/rootlessScreen.c miext/rootless/rootlessWindow.c render/picturestr.h Trying to pick up the pieces from the darwin churn here...
2007-12-05WaitForSomething: Ignore EAGAINDaniel Stone1-1/+1
If select ever returns EAGAIN, don't bother complaining.
2007-12-05OS: Connection: Keep trying select while it gets interrupted (bug #9240)Rich Coe1-4/+9
If we got interrupted (EINTR or EAGAIN) during select, just try again, rather than shutting clients down on either of these errors.
2007-12-05OS: Connection: Don't shut down disappeared clients (bug #7876)Rich Coe1-1/+2
If a client disappears in the middle of CheckConnections (presumably because its appgroup leader disappears), then don't attempt to shut it down a second time, when it's already vanished.
2007-12-03Death to libcwrapper.Adam Jackson1-8/+1
This has been deprecated since 1.1. Since we're breaking ABI again anyway, remove it entirely.
2007-12-02Clean up many #if 0.Adam Jackson3-22/+2
2007-11-19Merge branch 'master' into XACE-SELINUXEamon Walsh4-819/+20
Conflicts: hw/xnest/Pixmap.c include/dix.h
2007-11-19xace: restore the old SaveScreens function and introduce new API, since theEamon Walsh1-1/+1
old version is called from drivers...
2007-11-16Bug #1612: Use a stronger PRNG.Adam Jackson1-0/+16
Currently just reads from /dev/urandom, and only on Linux.
2007-11-15Nuke the debugging allocator.Adam Jackson2-819/+0
This has never been hooked up in the modular build, and can not possibly have built since before 6.7. Clearly no one's using it.
2007-11-14Add -pogo option for init/teardown performance testing.Adam Jackson1-0/+4
2007-11-14Merge branch 'master' into XACE-SELINUXEamon Walsh1-0/+4
Conflicts: Xext/xace.c Xext/xace.h
2007-11-08Rework of the XC-SECURITY extension. The gen-auth protocol has not changed,Eamon Walsh1-12/+0
but the XC-QUERY-SECURITY-1 authorization method and the SecurityPolicy configuration file have been removed. The semantics of the trusted vs. untrusted split have been changed. This will be documented in a future commit.
2007-11-07Don't frob timers unless SmartSchedule is runningKeith Packard1-0/+4
2007-11-05Merge branch 'master' into XACE-SELINUXEamon Walsh4-237/+66
Conflicts: dix/dispatch.c dix/property.c hw/xfree86/common/xf86VidMode.c include/xkbsrv.h render/glyph.c xkb/xkbActions.c
2007-11-05Remove all traces of external RGB database (and Speedo)Daniel Stone2-166/+11
Remove all references to an external RGB database (which hasn't been enabled for a very long time). Also get rid of some references to Speedo fonts.
2007-11-05OS: Remove usage of allocaDaniel Stone1-5/+5
Replace with heap allocations.
2007-11-02Move SIGUSR1 notification as late as possible.Adam Jackson1-38/+49
If we inherited a signal mask from the parent process that ignores SIGUSR1, then we will send SIGUSR1 to the parent to indicate when we're ready to accept connections. Unfortunately, we send this notification way too early, right after creating the sockets rather than just before entering the main loop. Move it to just before Dispatch() so we're not lying quite so much.
2007-10-30reduce wakeups from smart schedulerArjan van de Ven2-33/+6
The smart scheduler itimer currently always fires after each request (which in turn causes the CPU to wake out of idle, burning precious power). Rather than doing this, just stop the timer before going into the select() portion of the WaitFor loop. It's a cheap system call, and it will only get called if there's no more commands batched up from the active fd. This change also allows some of the functions to be simplified; setitimer() will only fail if it's passed invalid data, and we don't do that... so make it void and remove all the conditional code that deals with failure. The change also allows us to remove a few variables that were used for housekeeping between the signal handler and the main loop. Signed-off-by: Keith Packard <keithp@koto.keithp.com>
2007-10-17Merge branch 'master' into XACE-SELINUXEamon Walsh5-87/+151
Conflicts: os/access.c
2007-10-14mass change from #ifdef i386 to #ifdef __i386__ to conform to ANSIBen Byer3-4/+4
2007-10-02GLX: allow skipping of visual init wrappingDodji Seketeli1-0/+1
* GL/glx/glxvisuals.c: added boolean to disable calling init_visuals(). This gives a chance to Xephyr to take over visuals manipulation and avoid a crash at server shutdown in __glXMesaScreenDestroy(), due to the fact that mesa might sees more visual than what it has actually created in init_visuals(). It might see more visuals because Xephyr can augment the number of visuals, dynamically. * os/utils.c: the boolean is actually defined here.
2007-09-27Rework local client id finding code to be more uniformAlan Coopersmith2-83/+146
2007-09-26Merge branch 'master' into XACE-SELINUXEamon Walsh1-4/+20
Conflicts: dix/devices.c
2007-09-21So, like, checking return codes of system calls (signal, etc) is good.Ben Byer1-4/+20
Also, only restore an old signal handler if one was actually set (prevents the server from dying on OS X).
2007-09-19Merge branch 'master' into XACE-SELINUXEamon Walsh4-4/+26
Conflicts: afb/afbpntwin.c afb/afbscrinit.c afb/afbwindow.c cfb/cfb.h cfb/cfballpriv.c cfb/cfbscrinit.c cfb/cfbwindow.c configure.ac fb/wfbrename.h hw/xfree86/xf4bpp/ppcIO.c hw/xfree86/xf4bpp/ppcPntWin.c hw/xfree86/xf4bpp/ppcWindow.c hw/xfree86/xf8_32bpp/cfbscrinit.c mfb/mfb.h mfb/mfbpntwin.c mfb/mfbscrinit.c mfb/mfbwindow.c mi/miexpose.c Note: conflicts caused by devPrivates rework vs. paintwindow changes.
2007-09-12Fix build on FreeBSD after Popen changes.Eric Anholt1-1/+1
2007-09-11Ignore - not just block - SIGALRM around Popen()/Pclose().Adam Jackson1-0/+8
Because our "popen" implementation uses stdio, and because nobody's stdio library is capable of surviving signals, we need to make absolutely sure that we hide the SIGALRM from the smart scheduler. Otherwise, when you open a menu in openoffice, and it recompiles XKB to deal with the accelerators, and you popen xkbcomp because we suck, then the scheduler will tell you you're taking forever doing something stupid, and the wait() code will get confused, and input will hang and your CPU usage slams to 100%. Down, not across.
2007-09-05XDARWIN: Add launchd supportBen Byer1-0/+15
This adds a bit of glue to configure.ac to support launchd detection; on OS X (or other platforms which choose to implement launchd), this allows the system to automagically start the Xserver as necessary to serve clients.
2007-08-31Bug #7186: Fix an excessive request size limitation that broke big-requests.Eric Anholt2-4/+3
MAXBUFSIZE appears to be a leftover of some previous time. Instead, just use maxBigRequestSize when bigreqs are available (limiting buffers to ~16MB). When bigreqs are not available, needed won't be larger than the maximum size of a non-bigreqs request (256kB).
2007-08-28Merge branch 'master' into XACE-SELINUXEamon Walsh2-9/+13
Conflicts: include/miscstruct.h mi/mibstore.c mi/midispcur.c os/Makefile.am
2007-08-17Actually build Secure RPC authentication support (missed in modularization)Alan Coopersmith2-9/+13
2007-08-16xace: add hooks + new access codes: core protocol screensaver requestsEamon Walsh1-2/+2
2007-08-16xace: add hooks + new access codes: core protocol server requestsEamon Walsh2-15/+26
2007-08-15xace: rename hostlist security hook to "server" as this hook will be usedEamon Walsh1-1/+1
for other types of server access besides just the host list.
2007-08-03security: drop support for XC-QUERY-SECURITY authorization method.Eamon Walsh5-232/+2
2007-08-02Merge branch 'master' into XACE-SELINUXEamon Walsh12-91/+20
Conflicts: dix/devices.c dix/property.c include/dix.h
2007-08-01Build system: Non-dtrace distcheck hacksDaniel Stone1-1/+5
automake 1.10 really wants foo.c for foo.O, so give it some dummy files to deal with if it really needs them.
2007-06-29Death to RCS tags.Adam Jackson2-6/+0
2007-06-28Remove the remnants of OS/2 support.Adam Jackson9-83/+10
This has never worked in any modular server release, and as far as I know was never tested in 6.7 through 6.9.
2007-06-26Split checks for dtrace & getpeerucred()Alan Coopersmith1-1/+5
2007-06-11Merge branch 'master' into XACE-SELINUXEamon Walsh6-868/+14
Conflicts: dix/dixutils.c
2007-06-04Remove the old Kerberos 5 authentication code.Adam Jackson5-867/+1
Before you complain, this code hasn't seen material change since at least X11R6. It certainly does not build with any modern version of Kerberos. Anybody wanting krb5 auth to their X server should probably be using GSSAPI instead of internal krb5 API anyway.
2007-05-24Fix os/utils.c compile with mingw.Luo Jie1-1/+13
2007-04-17xace: change the semantics of the return value of XACE hooks to allowEamon Walsh1-1/+1
arbitrary X status codes instead of just TRUE/FALSE. The dix layer in most cases still does not propagate the return value of XACE hooks back to the client, however. There is more error propagation work to do.
2007-04-09Bug #10560: Code-Cleanup: function declarations () -> (void)Stefan Huehner2-3/+3
X.Org Bugzilla #10560: <https://bugs.freedesktop.org/show_bug.cgi?id=10560> Patch #9511 <https://bugs.freedesktop.org/attachment.cgi?id=9511>