tsolprotocol.c revision 705
341N/A#pragma ident "@(#)tsolprotocol.c 1.30 09/05/15 SMI"
341N/A#ifdef HAVE_DIX_CONFIG_H
341N/A#include <dix-config.h>
341N/A#include "auditwrite.h"
341N/A#include "inputstr.h"
341N/A#define NEED_REPLIES
604N/A#include "dixevents.h"
646N/A#include "selection.h"
688N/A#include "tsolpolicy.h"
688N/A#include "servermd.h"
688N/A#include "../Xext/panoramiXsrv.h"
688N/A#ifdef XCSECURITY
688N/A#include "../Xext/securitysrv.h"
static Atom
GetLastAtom(void)
while (ValidAtom(a)) {
UpdateTsolNode(void)
tsol_lastAtom = 0;
char *tchar;
return(BadValue);
return (BadAlloc);
#ifdef UNUSED
char *str;
int len;
return (BadAtom);
static Atom
int newsize;
return (newAtom);
return newAtom;
return newAtom;
return (Success);
return (Success);
return result;
int status;
if (!reportErrors) {
else if (makeTrusted)
return (status);
int rc;
#if defined(PANORAMIX)
if (!noPanoramiXExtension)
if (tpwin) {
if (tpwin) {
int result;
return result;
if (kbdgrab)
if (tsolinfo)
if (ptrgrab)
if (tsolinfo)
if (!trusted_grab)
int rc;
return rc;
return Success;
#ifdef UNUSED
while (p2)
CheckTPWin(void)
while (pWin)
return count;
++count;
int status;
if ( noPanoramiXExtension )
return status;
return (status);
return (BadValue);
#ifdef UNUSED
return rc;
return rc;
sizeof(Colormap));
if(!preply)
return(BadAlloc);
#ifdef TSOL
int err_code, i;
#ifdef TSOL
return rc;
#ifdef TSOL
return(BadWindow);
#ifdef TSOL
numChildren++;
numChildren++;
if (numChildren)
int curChild = 0;
if (!childIDs)
return BadAlloc;
#ifdef TSOL
if (numChildren)
unsigned int protocol;
int count = 0;
int status = 0;
if (system_audit_on &&
* X audit events start from 9101 in audit_uevents.h. The first two
audit_ret = 0;
int rc;
return rc;
return(Success);
int format,
register int linesDone;
char *pBuf;
#ifdef TSOL
return(BadValue);
return rc;
#ifdef TSOL
x = tmpx;
y = tmpy;
if (not_root_window)
int rc;
return rc;
while (tmpwin)
return rc;
pDraw->x + x < 0 ||
pDraw->y + y < 0 ||
return(BadMatch);
return(BadMatch);
if (im_return) {
if (!pBuf)
return (BadAlloc);
if (widthBytesLine == 0)
linesPerBuf = 0;
linesPerBuf = 0;
linesPerBuf--;
linesPerBuf++;
return (BadAlloc);
if (linesPerBuf == 0)
linesDone = 0;
y + linesDone,
#ifdef TSOL
if (not_root_window)
if (over_win &&
if (overlap)
if (!im_return)
pBuf);
linesDone = 0;
y + linesDone,
#ifdef TSOL
if (not_root_window)
if (over_win &&
if (overlap)
if (im_return) {
pBuf);
if (!im_return)
int status;
return (status);
int savedtrust;
int status;
return (BadGC);
return (status);
int savedtrust;
int status;
return (BadGC);
return (status);
int savedtrust;
int status;
int rc;
return rc;
return (BadMatch);
return (BadGC);
return (status);
int savedtrust;
int status;
int rc;
return rc;
return (BadMatch);
return (BadGC);
return (status);