tsolprotocol.c revision 196
792N/A#pragma ident "@(#)tsolprotocol.c 1.18 07/04/03 SMI"
792N/A#ifdef HAVE_DIX_CONFIG_H
792N/A#include <dix-config.h>
924N/A#include "auditwrite.h"
792N/A#include "inputstr.h"
792N/A#define NEED_REPLIES
792N/A#include "selection.h"
792N/A#include "tsolpolicy.h"
792N/A#include "servermd.h"
792N/A#include "../Xext/panoramiXsrv.h"
792N/A#ifdef XCSECURITY
792N/A#define _SECURITY_SERVER
792N/A#include "security.h"
extern void Swap32Write();
extern int tsol_nodelength;
extern int NumCurrentSelections;
extern int tsolMultiLevel;
extern char *ConnectionInfo;
extern int connBlockScreenStart;
static Atom
while (ValidAtom(a)) {
tsol_lastAtom = 0;
char *tchar;
return(BadValue);
return (BadAlloc);
char *str;
int len;
return (BadAtom);
int count;
int newsize;
return (newAtom);
return newAtom;
return newAtom;
#ifdef TSOL
return Success;
if (!pWin)
return(BadWindow);
while ((i < NumCurrentSelections) &&
#ifdef TSOL
return(BadAtom);
if (i < NumCurrentSelections)
#ifdef TSOL
while (tsolseln)
return Success;
&event,
NullGrab);
else if (tsolseln)
== EARLIER)
return Success;
NullGrab);
#ifdef TSOL
if (!newsels)
return BadAlloc;
#ifdef TSOL
if (!tsolseln)
if (!tsolseln)
return BadAlloc;
if (prevtsolseln)
if (SelectionCallback)
#ifdef TSOL
return (BadAtom);
while ((i < NumCurrentSelections) &&
if (i < NumCurrentSelections)
#ifdef TSOL
while (tsolseln)
if (tsolseln)
return (BadAtom);
if (!pWin)
return(BadWindow);
if (paramsOkay)
while ((i < NumCurrentSelections) &&
#ifdef TSOL
if (i < NumCurrentSelections)
while (tsolseln)
if (!tsolseln)
return (BadAtom);
NullGrab))
if ((i < NumCurrentSelections) &&
#ifdef XCSECURITY
if (TryClientEvents(
return (BadAtom);
if (tsolprop)
return tsolprop;
if (tsolprop)
return tsolprop;
unsigned long len;
int sizeInBytes;
int totalSize;
int result;
if (!polyprop)
return (result);
while (pProp )
return(BadAlloc);
return (result);
return(BadAlloc);
if (!pProp)
return(BadAlloc);
return(BadAlloc);
return(BadAlloc);
if (len)
return(BadMatch);
return(BadMatch);
while (tsolprop)
if (!tsolprop)
if (!newtsol)
return(BadAlloc);
return(BadAlloc);
if (len)
switch (mode)
case PropModeReplace:
return(BadAlloc);
if (len)
case PropModeAppend:
if (len)
data =
if (!data)
return(BadAlloc);
case PropModePrepend:
if (len)
data =
if (!data)
return(BadAlloc);
return(Success);
return (Success);
return(Success);
while (pProp)
while (tsolprop)
if (pProp)
if (tsolprop)
if (prevtsolprop)
return(Success);
int numProps = 0;
int err_code;
if (!pWin)
return(BadWindow);
return (err_code);
while (pProp)
numProps++;
numProps++;
if (numProps)
return(BadAlloc);
while (pProp)
if (numProps)
int err_code;
if (!pWin)
return BadWindow;
return(BadAtom);
return(BadValue);
return(BadAtom);
return (err_code);
while (pProp)
while (tsolprop)
return(Success);
if (n < ind)
return BadValue;
if (len)
int status;
return (status);
int status;
return (status);
int status;
return (status);
int status;
return (status);
int status;
return (status);
int inputMapLen;
int status;
return BadLength;
i = inputMapLen;
if (inputMap[i]
return BadValue;
return (status);
if (!tpwin)
if (tpwin)
int result;
return BadWindow;
return (result);
return result;
int result;
if (!pWin)
return(BadWindow);
return (result);
return result;
int result;
return result;
int result;
return result;
int result;
return result;
if (!pWin)
return BadWindow;
extern unsigned int StripeHeight;
if (kbdgrab)
if (tsolinfo)
if (ptrgrab)
if (tsolinfo)
if (!trusted_grab)
#ifdef PANORAMIX
if ( !noPanoramiXExtension )
return Success;
while (p2)
while (pWin)
return count;
++count;
int status;
if ( noPanoramiXExtension )
return status;
extern unsigned int StripeHeight;
return (status);
int result;
if (pMap)
return result;
int result;
return (result);
int result;
return (result);
return (result);
int result;
return (result);
return (result);
int result;
return (result);
return (BadValue);
int result;
return (result);
for (i = 0; i< NumCurrentSelections; i++)
while (tsolseln)
if (tsolseln)
if (SelectionCallback)
for (i = 0; i< NumCurrentSelections; i++)
while (tsolseln)
if (tsolseln)
if (SelectionCallback)
int nummaps;
if (!pWin)
return(BadWindow);
sizeof(Colormap));
if(!preply)
return(BadAlloc);
#ifdef TSOL
int err_code, i;
int numChildren = 0;
int j, thisScreen;
#ifdef TSOL
if (!pWin)
return(BadWindow);
#ifdef TSOL
return(BadWindow);
if ( !noPanoramiXExtension ) {
thisScreen = 0;
thisScreen = j;
pWin =
if (!pWin)
return(BadWindow);
numChildren++;
if (numChildren)
int curChild = 0;
if (!childIDs)
return BadAlloc;
#ifdef TSOL
numChildren++;
numChildren++;
if (numChildren)
int curChild = 0;
if (!childIDs)
return BadAlloc;
#ifdef TSOL
#ifdef TSOL
numChildren++;
numChildren++;
if (numChildren)
int curChild = 0;
if (!childIDs)
return BadAlloc;
#ifdef TSOL
if (numChildren)
unsigned int protocol;
int xevent_num;
int count = 0;
int status = 0;
if (system_audit_on &&
* X audit events start from 9101 in audit_uevents.h. The first two
unsigned int protocol;
int xevent_num;
int count = 0;
int status = 0;
audit_ret = 0;
if (!pWin)
return BadWindow;
return(Success);
int savedtrust;
return (status);
int savedtrust;
int status;
return (status);
int savedtrust;
int status;
if (!pWin)
return(BadWindow);
return(status);
int savedtrust;
int status;
if (!pWin)
return(BadWindow);
return(status);
int format;
register int linesDone;
char *pBuf;
#ifdef TSOL
return(BadValue);
#ifdef TSOL
x = tmpx;
y = tmpy;
if (not_root_window)
while (tmpwin)
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;
return (BadMatch);
return (BadGC);
return (status);
int savedtrust;
int status;
return (BadMatch);
return (BadGC);
return (status);