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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/hw/xfree86/os-support/os2/os2_select.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
/* $XConsortium: os2_select.h /main/1 1996/05/13 16:38:30 kaleb $ */
 
2
/*
 
3
 * (c) Copyright 1996 by Sebastien Marineau
 
4
 *                      <marineau@genie.uottawa.ca>
 
5
 *
 
6
 * Permission is hereby granted, free of charge, to any person obtaining a 
 
7
 * copy of this software and associated documentation files (the "Software"), 
 
8
 * to deal in the Software without restriction, including without limitation 
 
9
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 
 
10
 * and/or sell copies of the Software, and to permit persons to whom the 
 
11
 * Software is furnished to do so, subject to the following conditions:
 
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 
 
19
 * HOLGER VEIT  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 
 
20
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF 
 
21
 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
 
22
 * SOFTWARE.
 
23
 * 
 
24
 * Except as contained in this notice, the name of Sebastien Marineau shall not be
 
25
 * used in advertising or otherwise to promote the sale, use or other dealings
 
26
 * in this Software without prior written authorization from Sebastien Marineau.
 
27
 *
 
28
 */
 
29
 
 
30
/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/os2/os2_select.h,v 3.1 1996/12/27 07:04:31 dawes Exp $ */
 
31
 
 
32
/* Header file for os2_select.c */
 
33
 
 
34
#define MAX_TCP 256
 
35
 
 
36
#define MOUSE_SEM_KEY 0x0F01
 
37
#define KBD_SEM_KEY 0x0F02
 
38
#define PIPE_SEM_KEY 0x0F03
 
39
#define HRT_SEM_KEY 0x0F04
 
40
 
 
41
 
 
42
struct select_data
 
43
{
 
44
   fd_set read_copy;
 
45
   fd_set write_copy;
 
46
   BOOL have_read;
 
47
   BOOL have_write;
 
48
   int tcp_select_mask[MAX_TCP];
 
49
   int tcp_emx_handles[MAX_TCP];
 
50
   int tcp_select_copy[MAX_TCP];
 
51
   int socket_nread;
 
52
   int socket_nwrite;
 
53
   int socket_ntotal;
 
54
   int pipe_ntotal;
 
55
   int pipe_have_write;
 
56
   int max_fds;
 
57
};
 
58
 
 
59
 
 
60