tsolutils.c revision 799
98N/A#pragma ident "@(#)tsolutils.c 1.24 09/08/23 SMI"
606N/A#ifdef HAVE_DIX_CONFIG_H
98N/A#include <dix-config.h>
98N/A#define NEED_EVENTS
493N/A#include "auditwrite.h"
493N/A#include "windowstr.h"
98N/A#include "scrnintstr.h"
493N/A#include "tsolinfo.h"
98N/A#include "tsolpolicy.h"
493N/A#include "inputstr.h"
493N/A#include "propertyst.h"
98N/A#include "panoramiXsrv.h"
306N/A#include "registry.h"
* The following need to be moved to tsolextension.c
* Use the NodeRec struct in tsolinfo.h. This is referenced
static int tsolPrivateKeyIndex;
unsigned int StripeHeight = 0;
int tsol_nodelength = 0;
struct xUIDreply
unsigned char family;
unsigned char pad;
unsigned short length;
struct slentry
char allocated;
struct uidentry
char allocated;
typedef struct _TsolConfig
int count;
char **list;
{0, NULL},
{0, NULL},
{0, NULL},
{0, NULL},
{0, NULL}
init_TSOL_cached_SL(void)
init_TSOL_uid_table(void)
#if UNUSED
count_uid_table(void)
int i, count = 0;
for (i = 0; i < MAX_UID_ENTRY; i++)
count++;
return (count);
for (i = 0; i < MAX_UID_ENTRY; i++)
int nUid)
for (i = 0; i < MAX_UID_ENTRY; i++)
if (nUid != j)
while (i < MAX_UID_ENTRY)
while (i < MAX_UID_ENTRY)
#if UNUSED
if (*userid == 0)
while (i < MAX_UID_ENTRY)
lookupSL_low(void)
return (slptr);
if (i < MAX_SL_ENTRY)
return (NULL);
extern char *ConnectionInfo;
extern int connBlockScreenStart;
int old_height;
float height_mult;
for (i = 0; i < screen_num; i++)
if (noPanoramiXExtension)
init_xtsol(void)
static KeySym
return NoSymbol;
per--;
return lsym;
return NoSymbol;
return usym;
static KeyCode
KeySym *k;
mods = 0;
while (k < kmax) {
if (*k == ks ) {
return mods;
int count;
char **newlist;
for (i = 0; i < KEYWORDCOUNT; i++) {
if (i >= KEYWORDCOUNT) {
InitPrivileges(void)
int count;
char **list;
for (i = 0; i < count; i++) {
LoadTsolConfig(void)
char *keyword;
char *value;
MakeTSOLAtoms(void)
char *atomname;
for (i = 0; i < TSOL_ATOMCOUNT; i++) {
AtomError();
AtomError();
int status;
char *regexpstrp;
int regexpstrlen;
if (status == 0) {
if (status == 0)
return (TRUE);
return (FALSE);
return (TRUE);
return (FALSE);
int count;
char **list;
unsigned int flags = 0;
for (i = 0; i < count; i++) {
for (i = 0; i < count; i++) {
return (flags);
return TRUE;
return FALSE;
return TRUE;
return FALSE;
return TRUE;
return FALSE;
if (pWin)
return (NULL);
#ifdef UNUSED
if (pWin)
return (pWin);
if (pWin)
return (NULL);
return FALSE;
return TRUE;
return TRUE;
return FALSE;
#ifdef SHAPE
return(pSib);
if (pWin)
return (pWin);
return TRUE;
return FALSE;
_X_HIDDEN const char *
return access_mode_str;
_X_HIDDEN const char *
return str;
_X_HIDDEN const char *
return unknown_string;
return regentry;
_X_HIDDEN const char *
return unknown_string;
return regentry;
_X_HIDDEN const char *
const char *regentry;
if (req < 0) {
return unknown_string;
return regentry;