~ubuntu-branches/ubuntu/intrepid/xserver-xgl/intrepid

« back to all changes in this revision

Viewing changes to hw/xfree86/os-support/shared/sigiostubs.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Garrett
  • Date: 2006-02-13 14:21:43 UTC
  • Revision ID: james.westby@ubuntu.com-20060213142143-mad6z9xzem7hzxz9
Tags: upstream-7.0.0
ImportĀ upstreamĀ versionĀ 7.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/shared/sigiostubs.c,v 1.4 2003/08/24 17:37:06 dawes Exp $ */
 
2
/*
 
3
 * Copyright (c) 1999-2003 by The XFree86 Project, Inc.
 
4
 *
 
5
 * Permission is hereby granted, free of charge, to any person obtaining a
 
6
 * copy of this software and associated documentation files (the "Software"),
 
7
 * to deal in the Software without restriction, including without limitation
 
8
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 
9
 * and/or sell copies of the Software, and to permit persons to whom the
 
10
 * Software is furnished to do so, subject to the following conditions:
 
11
 *
 
12
 * The above copyright notice and this permission notice shall be included in
 
13
 * all copies or substantial portions of the Software.
 
14
 *
 
15
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
16
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
17
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 
18
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 
19
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 
20
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 
21
 * OTHER DEALINGS IN THE SOFTWARE.
 
22
 *
 
23
 * Except as contained in this notice, the name of the copyright holder(s)
 
24
 * and author(s) shall not be used in advertising or otherwise to promote
 
25
 * the sale, use or other dealings in this Software without prior written
 
26
 * authorization from the copyright holder(s) and author(s).
 
27
 */
 
28
/* $XdotOrg: xserver/xorg/hw/xfree86/os-support/shared/sigiostubs.c,v 1.5 2005/07/03 07:01:35 daniels Exp $ */
 
29
 
 
30
#ifdef HAVE_XORG_CONFIG_H
 
31
#include <xorg-config.h>
 
32
#endif
 
33
 
 
34
#ifdef XFree86Server
 
35
#ifdef __UNIXOS2__
 
36
# define I_NEED_OS2_H
 
37
#endif
 
38
# include <X11/X.h>
 
39
# include "xf86.h"
 
40
# include "xf86Priv.h"
 
41
# include "xf86_OSlib.h"
 
42
#else
 
43
# include <unistd.h>
 
44
# include <signal.h>
 
45
# include <fcntl.h>
 
46
# include <sys/time.h>
 
47
# include <errno.h>
 
48
#endif
 
49
 
 
50
int
 
51
xf86InstallSIGIOHandler(int fd, void (*f)(int, void *), void *closure)
 
52
{
 
53
    return 0;
 
54
}
 
55
 
 
56
int
 
57
xf86RemoveSIGIOHandler(int fd)
 
58
{
 
59
    return 0;
 
60
}
 
61
 
 
62
int
 
63
xf86BlockSIGIO (void)
 
64
{
 
65
    return 0;
 
66
}
 
67
 
 
68
void
 
69
xf86UnblockSIGIO (int wasset)
 
70
{
 
71
}
 
72
 
 
73
#ifdef XFree86Server
 
74
void
 
75
xf86AssertBlockedSIGIO (char *where)
 
76
{
 
77
}
 
78
#endif
 
79
 
 
80
/* XXX This is a quick hack for the benefit of xf86SetSilkenMouse() */
 
81
Bool
 
82
xf86SIGIOSupported ()
 
83
{
 
84
    return FALSE;
 
85
}
 
86