tsolutils.c revision 851
830N/A#pragma ident "@(#)tsolutils.c 1.25 09/12/05 SMI"
830N/A#ifdef HAVE_DIX_CONFIG_H
830N/A#include <dix-config.h>
830N/A#define NEED_EVENTS
830N/A#include "auditwrite.h"
830N/A#include "windowstr.h"
830N/A#include "scrnintstr.h"
830N/A#include "tsolinfo.h"
830N/A#include "tsolpolicy.h"
830N/A#include "inputstr.h"
830N/A#include "propertyst.h"
830N/A#include "panoramiXsrv.h"
830N/A#include "registry.h"
830N/A * The following need to be moved to tsolextension.c
830N/A * Use the NodeRec struct in tsolinfo.h. This is referenced
830N/Astatic int tsolPrivateKeyIndex;
830N/Aunsigned int StripeHeight = 0;
830N/Aint tsol_nodelength = 0;
830N/Atypedef struct _TsolConfig
830N/Acount_uid_table(void)
830N/A for (i = 0; i < MAX_UID_ENTRY; i++)
830N/A for (i = 0; i < MAX_UID_ENTRY; i++)
830N/A for (i = 0; i < MAX_UID_ENTRY; i++)
830N/A while (i < MAX_UID_ENTRY)
830N/A while (i < MAX_UID_ENTRY)
830N/A while (i < MAX_UID_ENTRY)
830N/AlookupSL_low(void)
830N/A if (i < MAX_SL_ENTRY)
830N/A/* Updated version based roughly on RREditConnectionInfo in randr/rrscreen.c */
830N/A int old_height;
830N/A float height_mult;
830N/A sizeof (xPixmapFormat) *
830N/A for (i = 0; i < screen_num; i++)
830N/A sizeof (xWindowRoot));
830N/A sizeof (xVisualType));
830N/Ainit_xtsol(void)
int rc;
int max_keys_per_mod = 0;
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;