~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/programs/twm/parse.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $XFree86: xc/programs/twm/parse.h,v 1.11 2001/12/14 20:01:09 dawes Exp $ */
 
2
/*****************************************************************************/
 
3
/*
 
4
 
 
5
Copyright 1989, 1998  The Open Group
 
6
 
 
7
Permission to use, copy, modify, distribute, and sell this software and its
 
8
documentation for any purpose is hereby granted without fee, provided that
 
9
the above copyright notice appear in all copies and that both that
 
10
copyright notice and this permission notice appear in supporting
 
11
documentation.
 
12
 
 
13
The above copyright notice and this permission notice shall be included in
 
14
all copies or substantial portions of the Software.
 
15
 
 
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
19
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 
20
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
21
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
22
 
 
23
Except as contained in this notice, the name of The Open Group shall not be
 
24
used in advertising or otherwise to promote the sale, use or other dealings
 
25
in this Software without prior written authorization from The Open Group.
 
26
 
 
27
*/
 
28
/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
 
29
/**                          Salt Lake City, Utah                           **/
 
30
/**                        Cambridge, Massachusetts                         **/
 
31
/**                                                                         **/
 
32
/**                           All Rights Reserved                           **/
 
33
/**                                                                         **/
 
34
/**    Permission to use, copy, modify, and distribute this software and    **/
 
35
/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
 
36
/**    granted, provided that the above copyright notice appear  in  all    **/
 
37
/**    copies and that both  that  copyright  notice  and  this  permis-    **/
 
38
/**    sion  notice appear in supporting  documentation,  and  that  the    **/
 
39
/**    name of Evans & Sutherland not be used in advertising    **/
 
40
/**    in publicity pertaining to distribution of the  software  without    **/
 
41
/**    specific, written prior permission.                                  **/
 
42
/**                                                                         **/
 
43
/**    EVANS & SUTHERLAND DISCLAIMs ALL WARRANTIES WITH REGARD    **/
 
44
/**    TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES  OF  MERCHANT-    **/
 
45
/**    ABILITY  AND  FITNESS,  IN  NO  EVENT SHALL EVANS & SUTHERLAND    **/
 
46
/**    BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL  DAM-    **/
 
47
/**    AGES OR  ANY DAMAGES WHATSOEVER  RESULTING FROM LOSS OF USE, DATA    **/
 
48
/**    OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER    **/
 
49
/**    TORTIOUS ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE    **/
 
50
/**    OR PERFORMANCE OF THIS SOFTWARE.                                     **/
 
51
/*****************************************************************************/
 
52
 
 
53
 
 
54
/**********************************************************************
 
55
 *
 
56
 * $Xorg: parse.h,v 1.4 2001/02/09 02:05:37 xorgcvs Exp $
 
57
 *
 
58
 * .twmrc parsing externs
 
59
 *
 
60
 *  8-Apr-88 Tom LaStrange        Initial Version.
 
61
 *
 
62
 **********************************************************************/
 
63
 
 
64
#ifndef _PARSE_
 
65
#define _PARSE_
 
66
 
 
67
#include "list.h"
 
68
 
 
69
extern void assign_var_savecolor ( void );
 
70
extern int do_single_keyword ( int keyword );
 
71
extern int do_string_keyword ( int keyword, char *s );
 
72
extern int do_number_keyword ( int keyword, int num );
 
73
extern name_list **do_colorlist_keyword ( int keyword, int colormode, 
 
74
                                          char *s );
 
75
extern int do_color_keyword ( int keyword, int colormode, char *s );
 
76
void put_pixel_on_root ( Pixel pixel );
 
77
extern void do_string_savecolor ( int colormode, char *s );
 
78
extern void do_var_savecolor ( int key );
 
79
extern int ParseStringList ( char **sl );
 
80
extern int ParseTwmrc ( char *filename );
 
81
extern int parse_keyword ( char *s, int *nump );
 
82
extern void TwmOutput ( int c );
 
83
extern void twmUnput ( int c );
 
84
extern void do_squeeze_entry ( name_list **list, char *name, int justify, 
 
85
                               int num, int denom );
 
86
 
 
87
 
 
88
extern int (*twmInputFunc)(void);
 
89
extern int ConstrainedMoveTime;
 
90
extern char *defTwmrc[];
 
91
extern int mods;
 
92
 
 
93
#define F_NOP                   0
 
94
#define F_BEEP                  1
 
95
#define F_RESTART               2
 
96
#define F_QUIT                  3
 
97
#define F_FOCUS                 4
 
98
#define F_REFRESH               5
 
99
#define F_WINREFRESH            6
 
100
#define F_DELTASTOP             7
 
101
#define F_MOVE                  8
 
102
#define F_POPUP                 9
 
103
#define F_FORCEMOVE             10
 
104
#define F_AUTORAISE             11
 
105
#define F_IDENTIFY              12
 
106
#define F_ICONIFY               13
 
107
#define F_DEICONIFY             14
 
108
#define F_UNFOCUS               15
 
109
#define F_RESIZE                16
 
110
#define F_ZOOM                  17
 
111
#define F_LEFTZOOM              18
 
112
#define F_RIGHTZOOM             19
 
113
#define F_TOPZOOM               20
 
114
#define F_BOTTOMZOOM            21
 
115
#define F_HORIZOOM              22
 
116
#define F_FULLZOOM              23
 
117
#define F_RAISE                 24
 
118
#define F_RAISELOWER            25
 
119
#define F_LOWER                 26
 
120
#define F_DESTROY               27
 
121
#define F_DELETE                28
 
122
#define F_SAVEYOURSELF          29
 
123
#define F_VERSION               30
 
124
#define F_TITLE                 31
 
125
#define F_RIGHTICONMGR          32
 
126
#define F_LEFTICONMGR           33
 
127
#define F_UPICONMGR             34
 
128
#define F_DOWNICONMGR           35
 
129
#define F_FORWICONMGR           36
 
130
#define F_BACKICONMGR           37
 
131
#define F_NEXTICONMGR           38
 
132
#define F_PREVICONMGR           39
 
133
#define F_SORTICONMGR           40
 
134
#define F_CIRCLEUP              41
 
135
#define F_CIRCLEDOWN            42
 
136
#define F_CUTFILE               43
 
137
#define F_SHOWLIST              44
 
138
#define F_HIDELIST              45
 
139
 
 
140
#define F_MENU                  101     /* string */
 
141
#define F_WARPNEXT              112     /* string */
 
142
#define F_WARPPREV              113     /* string */
 
143
#define F_WARPTO                102     /* string */
 
144
#define F_WARPTOICONMGR         103     /* string */
 
145
#define F_WARPRING              104     /* string */
 
146
#define F_FILE                  105     /* string */
 
147
#define F_EXEC                  106     /* string */
 
148
#define F_CUT                   107     /* string */
 
149
#define F_FUNCTION              108     /* string */
 
150
#define F_WARPTOSCREEN          109     /* string */
 
151
#define F_COLORMAP              110     /* string */
 
152
#define F_PRIORITY              111     /* string */
 
153
#define F_STARTWM               114     /* string */
 
154
 
 
155
#define D_NORTH                 1
 
156
#define D_SOUTH                 2
 
157
#define D_EAST                  3
 
158
#define D_WEST                  4
 
159
 
 
160
#endif /* _PARSE_ */