VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.4.2/xf86_OSlib.h@ 77662

最後變更 在這個檔案從77662是 43272,由 vboxsync 提交於 12 年 前

Additions/x11: more original X server headers.

  • 屬性 svn:eol-style 設為 native
檔案大小: 20.0 KB
 
1/*
2 * Copyright 1990, 1991 by Thomas Roell, Dinkelscherben, Germany
3 * Copyright 1992 by David Dawes <[email protected]>
4 * Copyright 1992 by Jim Tsillas <[email protected]>
5 * Copyright 1992 by Rich Murphey <[email protected]>
6 * Copyright 1992 by Robert Baron <[email protected]>
7 * Copyright 1992 by Orest Zborowski <[email protected]>
8 * Copyright 1993 by Vrije Universiteit, The Netherlands
9 * Copyright 1993 by David Wexelblat <[email protected]>
10 * Copyright 1994, 1996 by Holger Veit <[email protected]>
11 * Copyright 1997 by Takis Psarogiannakopoulos <[email protected]>
12 * Copyright 1994-2003 by The XFree86 Project, Inc
13 *
14 * Permission to use, copy, modify, distribute, and sell this software and its
15 * documentation for any purpose is hereby granted without fee, provided that
16 * the above copyright notice appear in all copies and that both that
17 * copyright notice and this permission notice appear in supporting
18 * documentation, and that the names of the above listed copyright holders
19 * not be used in advertising or publicity pertaining to distribution of
20 * the software without specific, written prior permission. The above listed
21 * copyright holders make no representations about the suitability of this
22 * software for any purpose. It is provided "as is" without express or
23 * implied warranty.
24 *
25 * THE ABOVE LISTED COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD
26 * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
27 * AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDERS BE
28 * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
29 * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
30 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
31 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
32 *
33 */
34
35/*
36 * The ARM32 code here carries the following copyright:
37 *
38 * Copyright 1997
39 * Digital Equipment Corporation. All rights reserved.
40 * This software is furnished under license and may be used and copied only in
41 * accordance with the following terms and conditions. Subject to these
42 * conditions, you may download, copy, install, use, modify and distribute
43 * this software in source and/or binary form. No title or ownership is
44 * transferred hereby.
45 *
46 * 1) Any source code used, modified or distributed must reproduce and retain
47 * this copyright notice and list of conditions as they appear in the
48 * source file.
49 *
50 * 2) No right is granted to use any trade name, trademark, or logo of Digital
51 * Equipment Corporation. Neither the "Digital Equipment Corporation"
52 * name nor any trademark or logo of Digital Equipment Corporation may be
53 * used to endorse or promote products derived from this software without
54 * the prior written permission of Digital Equipment Corporation.
55 *
56 * 3) This software is provided "AS-IS" and any express or implied warranties,
57 * including but not limited to, any implied warranties of merchantability,
58 * fitness for a particular purpose, or non-infringement are disclaimed.
59 * In no event shall DIGITAL be liable for any damages whatsoever, and in
60 * particular, DIGITAL shall not be liable for special, indirect,
61 * consequential, or incidental damages or damages for lost profits, loss
62 * of revenue or loss of use, whether such damages arise in contract,
63 * negligence, tort, under statute, in equity, at law or otherwise, even
64 * if advised of the possibility of such damage.
65 *
66 */
67
68/*
69 * This is private, and should not be included by any drivers. Drivers
70 * may include xf86_OSproc.h to get prototypes for public interfaces.
71 */
72
73#ifndef _XF86_OSLIB_H
74#define _XF86_OSLIB_H
75
76#include <X11/Xos.h>
77#include <X11/Xfuncproto.h>
78
79/*
80 * Define some things from the "ANSI" C wrappers that are needed in the
81 * the core server.
82 */
83#ifndef HAVE_WRAPPER_DECLS
84#define HAVE_WRAPPER_DECLS
85#undef usleep
86#define usleep(a) xf86usleep(a)
87extern void xf86usleep(unsigned long);
88extern int xf86getpagesize(void);
89extern int xf86GetErrno(void);
90typedef unsigned long xf86size_t;
91typedef signed long xf86ssize_t;
92#endif
93
94#include <stdio.h>
95#include <ctype.h>
96#include <stddef.h>
97
98/**************************************************************************/
99/* SYSV386 (SVR3, SVR4), including Solaris */
100/**************************************************************************/
101#if (defined(SYSV) || defined(SVR4)) && \
102 !defined(DGUX) && !defined(sgi) && \
103 (defined(sun) || defined(i386))
104# ifdef SCO325
105# ifndef _SVID3
106# define _SVID3
107# endif
108# ifndef _NO_STATIC
109# define _NO_STATIC
110# endif
111# endif
112# include <sys/ioctl.h>
113# include <signal.h>
114# include <termio.h>
115# include <sys/stat.h>
116# include <sys/types.h>
117# if defined(__SCO__) || defined(ISC)
118# include <sys/param.h>
119# endif
120
121# ifdef ISC
122# define TIOCMSET (TIOC|26) /* set all modem bits */
123# define TIOCMBIS (TIOC|27) /* bis modem bits */
124# define TIOCMBIC (TIOC|28) /* bic modem bits */
125# define TIOCMGET (TIOC|29) /* get all modem bits */
126# endif
127
128# include <errno.h>
129
130# if defined(_NEED_SYSI86)
131# if !(defined (sun) && defined (SVR4))
132# include <sys/immu.h>
133# include <sys/region.h>
134# endif
135# include <sys/proc.h>
136# include <sys/tss.h>
137# include <sys/sysi86.h>
138# if defined(SVR4) && !defined(sun)
139# include <sys/seg.h>
140# endif /* SVR4 && !sun */
141/* V86SC_IOPL was moved to <sys/sysi86.h> on Solaris 7 and later */
142# if defined(sun) && defined (SVR4) /* Solaris? */
143# if defined(i386) || defined(__x86) /* on x86 or x64? */
144# if !defined(V86SC_IOPL) /* Solaris 7 or later? */
145# include <sys/v86.h> /* Nope */
146# endif
147# endif /* V86SC_IOPL */
148# else
149# include <sys/v86.h> /* Not solaris */
150# endif /* sun && i386 && SVR4 */
151# if defined(sun) && (defined (i386) || defined(__x86)) && defined (SVR4)
152# include <sys/psw.h>
153# endif
154# endif /* _NEED_SYSI86 */
155
156# if defined(HAS_SVR3_MMAPDRV)
157# include <sys/sysmacros.h>
158# if !defined(_NEED_SYSI86)
159# include <sys/immu.h>
160# include <sys/region.h>
161# endif
162# include <sys/mmap.h> /* MMAP driver header */
163# endif
164
165# if !defined(sun) || (!defined(sparc) && !defined(__SOL8__))
166# define HAS_USL_VTS
167# endif
168# if !defined(sun)
169# include <sys/emap.h>
170# endif
171# if defined(SCO325)
172# include <sys/vtkd.h>
173# include <sys/console.h>
174# include <sys/scankbd.h>
175# include <sys/vid.h>
176# define LED_CAP CLKED
177# define LED_NUM NLKED
178# define LED_SCR SLKED
179# elif defined(HAS_USL_VTS)
180# include <sys/at_ansi.h>
181# include <sys/kd.h>
182# include <sys/vt.h>
183# elif defined(sun)
184# include <sys/fbio.h>
185# include <sys/kbd.h>
186# include <sys/kbio.h>
187
188/* undefine symbols from <sys/kbd.h> we don't need that conflict with enum
189 definitions in parser/xf86tokens.h */
190# undef STRING
191# undef LEFTALT
192# undef RIGHTALT
193
194# define LED_CAP LED_CAPS_LOCK
195# define LED_NUM LED_NUM_LOCK
196# define LED_SCR LED_SCROLL_LOCK
197# define LED_COMP LED_COMPOSE
198# endif /* sun */
199
200# if !defined(VT_ACKACQ)
201# define VT_ACKACQ 2
202# endif /* !VT_ACKACQ */
203
204# if defined(__SCO__)
205# include <sys/sysmacros.h>
206# define POSIX_TTY
207# endif /* __SCO__ */
208
209# if defined(SVR4) || defined(SCO325)
210# include <sys/mman.h>
211# if !(defined(sun) && defined (SVR4))
212# define DEV_MEM "/dev/pmem"
213# endif
214# ifdef SCO325
215# undef DEV_MEM
216# define DEV_MEM "/dev/mem"
217# endif
218# define CLEARDTR_SUPPORT
219# define POSIX_TTY
220# endif /* SVR4 */
221
222# ifdef ISC
223# include <termios.h>
224# define POSIX_TTY
225# endif
226
227# if defined(sun) && defined (i386) && defined (SVR4) && !defined(__SOL8__)
228# define USE_VT_SYSREQ
229# define VT_SYSREQ_DEFAULT TRUE
230# endif
231
232# if defined(ATT) && !defined(i386)
233# define i386 /* not defined in ANSI C mode */
234# endif /* ATT && !i386 */
235
236# ifdef SYSV
237# if !defined(ISC) || defined(ISC202) || defined(ISC22)
238# define NEED_STRERROR
239# endif
240# endif
241
242#endif /* (SYSV || SVR4) && !DGUX */
243
244
245
246/**************************************************************************/
247/* DG/ux R4.20MU03 Intel AViion Machines */
248/**************************************************************************/
249#if defined(DGUX) && defined(SVR4)
250#include <sys/ioctl.h>
251#include <signal.h>
252#include <ctype.h>
253#include <termios.h> /* Use termios for BSD Flavor ttys */
254#include <sys/termios.h>
255#include <sys/stat.h>
256#include <sys/types.h>
257#include <sys/param.h>
258#include <errno.h>
259#include <sys/sysi86.h>
260#include <unistd.h>
261#include <sys/proc.h>
262#include <sys/map.h>
263#include <sys/sysmacros.h>
264#include <sys/mman.h> /* Memory handling */
265#include <sys/kd.h> /* definitios for KDENABIO KDDISABIO needed for IOPL s */
266#include <sys/kbd.h>
267#include <fcntl.h>
268#include <time.h>
269#include <sys/stream.h>
270#include <sys/ptms.h>
271
272#include <sys/socket.h>
273#include <sys/utsname.h>
274#include <sys/stropts.h>
275#include <sys/sockio.h>
276
277
278#define POSIX_TTY
279
280#undef HAS_USL_VTS
281#undef USE_VT_SYSREQ
282#undef VT_ACKACQ
283
284#define LED_CAP KBD_LED_CAPS_LOCK
285#define LED_NUM KBD_LED_NUM_LOCK
286#define LED_SCR KBD_LED_SCROLL_LOCK
287
288#define KDGKBTYPE KBD_GET_LANGUAGE
289
290
291/* General keyboard types */
292# define KB_84 2
293# define KB_101 1 /* Because ioctl(dgkeybdFd,KBD_GET_LANGUAGE,&type) gives 1=US keyboard */
294# define KB_OTHER 3
295
296#define KDSETLED KBD_SET_LED
297#define KDGETLED KBD_GET_STATE
298#undef KDMKTONE
299#define KDMKTONE KBD_TONE_HIGH
300
301
302#undef DEV_MEM
303#define DEV_MEM "/dev/mem"
304#define CLEARDTR_SUPPORT
305
306#undef VT_SYSREQ_DEFAULT
307#define VT_SYSREQ_DEFAULT FALSE /* Make sure that we dont define any VTs since DG/ux has none */
308
309#endif /* DGUX && SVR4 */
310
311/**************************************************************************/
312/* Linux or Glibc-based system */
313/**************************************************************************/
314#if defined(__linux__) || defined(__GLIBC__)
315# include <sys/ioctl.h>
316# include <signal.h>
317# include <stdlib.h>
318# include <sys/types.h>
319# include <assert.h>
320
321#ifdef __GNU__ /* GNU/Hurd */
322# define USE_OSMOUSE
323#endif
324
325# ifdef __linux__
326# include <termio.h>
327# else /* __GLIBC__ */
328# include <termios.h>
329# endif
330# ifdef __sparc__
331# include <sys/param.h>
332# endif
333
334# include <errno.h>
335
336# include <sys/stat.h>
337
338# include <sys/mman.h>
339# ifdef __linux__
340# define HAS_USL_VTS
341# include <sys/kd.h>
342# include <sys/vt.h>
343# define LDGMAP GIO_SCRNMAP
344# define LDSMAP PIO_SCRNMAP
345# define LDNMAP LDSMAP
346# define CLEARDTR_SUPPORT
347# define USE_VT_SYSREQ
348# endif
349
350# define POSIX_TTY
351
352#endif /* __linux__ || __GLIBC__ */
353
354/**************************************************************************/
355/* LynxOS AT */
356/**************************************************************************/
357#if defined(Lynx)
358
359# include <termio.h>
360# include <sys/ioctl.h>
361# include <param.h>
362# include <signal.h>
363# include <kd.h>
364# include <vt.h>
365# include <sys/stat.h>
366
367# include <errno.h>
368extern int errno;
369
370/* smem_create et.al. to access physical memory */
371# include <smem.h>
372
373/* keyboard types */
374# define KB_84 1
375# define KB_101 2
376# define KB_OTHER 3
377
378/* atc drivers ignores argument to VT_RELDISP ioctl */
379# define VT_ACKACQ 2
380
381# include <termios.h>
382# define POSIX_TTY
383# define CLEARDTR_SUPPORT
384
385/* LynxOS 2.5.1 has these */
386# ifdef LED_NUMLOCK
387# define LED_CAP LED_CAPSLOCK
388# define LED_NUM LED_NUMLOCK
389# define LED_SCR LED_SCROLLOCK
390# endif
391
392#endif /* Lynx */
393
394/**************************************************************************/
395/* 386BSD and derivatives, BSD/386 */
396/**************************************************************************/
397
398#if defined(__386BSD__) && (defined(__FreeBSD__) || defined(__NetBSD__))
399# undef __386BSD__
400#endif
401
402#ifdef CSRG_BASED
403# include <sys/ioctl.h>
404# include <signal.h>
405
406# include <termios.h>
407# define termio termios
408# define POSIX_TTY
409
410# include <errno.h>
411
412# include <sys/types.h>
413# include <sys/mman.h>
414# include <sys/stat.h>
415
416# if defined(__bsdi__)
417# include <sys/param.h>
418# if (_BSDI_VERSION < 199510)
419# include <i386/isa/vgaioctl.h>
420# endif
421# endif /* __bsdi__ */
422
423#endif /* CSRG_BASED */
424
425/**************************************************************************/
426/* Kernel of *BSD */
427/**************************************************************************/
428#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
429 defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__DragonFly__)
430
431# include <sys/param.h>
432# if defined(__FreeBSD_version) && !defined(__FreeBSD_kernel_version)
433# define __FreeBSD_kernel_version __FreeBSD_version
434# endif
435
436# if !defined(LINKKIT)
437 /* Don't need this stuff for the Link Kit */
438# if defined(__bsdi__)
439# include <i386/isa/pcconsioctl.h>
440# define CONSOLE_X_MODE_ON PCCONIOCRAW
441# define CONSOLE_X_MODE_OFF PCCONIOCCOOK
442# define CONSOLE_X_BELL PCCONIOCBEEP
443# else /* __bsdi__ */
444# if defined(__OpenBSD__)
445# ifdef PCCONS_SUPPORT
446# include <machine/pccons.h>
447# undef CONSOLE_X_MODE_ON
448# undef CONSOLE_X_MODE_OFF
449# undef CONSOLE_X_BELL
450# endif
451# endif
452# ifdef SYSCONS_SUPPORT
453# define COMPAT_SYSCONS
454# if defined(__NetBSD__) || defined(__OpenBSD__)
455# include <machine/console.h>
456# else
457# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
458# if defined(__DragonFly__) || (__FreeBSD_kernel_version >= 410000)
459# include <sys/consio.h>
460# include <sys/kbio.h>
461# else
462# include <machine/console.h>
463# endif /* FreeBSD 4.1 RELEASE or lator */
464# else
465# include <sys/console.h>
466# endif
467# endif
468# endif /* SYSCONS_SUPPORT */
469# if defined(PCVT_SUPPORT)
470# if !defined(SYSCONS_SUPPORT)
471 /* no syscons, so include pcvt specific header file */
472# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
473# include <machine/pcvt_ioctl.h>
474# else
475# if defined(__NetBSD__) || defined(__OpenBSD__)
476# if !defined(WSCONS_SUPPORT)
477# include <machine/pcvt_ioctl.h>
478# endif /* WSCONS_SUPPORT */
479# else
480# include <sys/pcvt_ioctl.h>
481# endif /* __NetBSD__ */
482# endif /* __FreeBSD_kernel__ || __OpenBSD__ */
483# else /* pcvt and syscons: hard-code the ID magic */
484# define VGAPCVTID _IOWR('V',113, struct pcvtid)
485 struct pcvtid {
486 char name[16];
487 int rmajor, rminor;
488 };
489# endif /* PCVT_SUPPORT && SYSCONS_SUPPORT */
490# endif /* PCVT_SUPPORT */
491# ifdef WSCONS_SUPPORT
492# include <dev/wscons/wsconsio.h>
493# include <dev/wscons/wsdisplay_usl_io.h>
494# endif /* WSCONS_SUPPORT */
495# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
496# if defined(__FreeBSD_kernel_version) && (__FreeBSD_kernel_version >= 500013)
497# include <sys/mouse.h>
498# else
499# undef MOUSE_GETINFO
500# include <machine/mouse.h>
501# endif
502# endif
503 /* Include these definitions in case ioctl_pc.h didn't get included */
504# ifndef CONSOLE_X_MODE_ON
505# define CONSOLE_X_MODE_ON _IO('t',121)
506# endif
507# ifndef CONSOLE_X_MODE_OFF
508# define CONSOLE_X_MODE_OFF _IO('t',122)
509# endif
510# ifndef CONSOLE_X_BELL
511# define CONSOLE_X_BELL _IOW('t',123,int[2])
512# endif
513# ifndef CONSOLE_X_TV_ON
514# define CONSOLE_X_TV_ON _IOW('t',155,int)
515# define XMODE_RGB 0
516# define XMODE_NTSC 1
517# define XMODE_PAL 2
518# define XMODE_SECAM 3
519# endif
520# ifndef CONSOLE_X_TV_OFF
521# define CONSOLE_X_TV_OFF _IO('t',156)
522# endif
523#ifndef CONSOLE_GET_LINEAR_INFO
524# define CONSOLE_GET_LINEAR_INFO _IOR('t',157,struct map_info)
525#endif
526#ifndef CONSOLE_GET_IO_INFO
527# define CONSOLE_GET_IO_INFO _IOR('t',158,struct map_info)
528#endif
529#ifndef CONSOLE_GET_MEM_INFO
530# define CONSOLE_GET_MEM_INFO _IOR('t',159,struct map_info)
531#endif
532# endif /* __bsdi__ */
533# endif /* !LINKKIT */
534
535#if defined(USE_I386_IOPL) || defined(USE_AMD64_IOPL)
536#include <machine/sysarch.h>
537#endif
538
539# define CLEARDTR_SUPPORT
540
541# if defined(SYSCONS_SUPPORT) || defined(PCVT_SUPPORT) || defined(WSCONS_SUPPORT)
542# define USE_VT_SYSREQ
543# endif
544
545#endif
546/* __FreeBSD_kernel__ || __NetBSD__ || __OpenBSD__ || __bsdi__ */
547
548/**************************************************************************/
549/* QNX4 */
550/**************************************************************************/
551/* This is the QNX code for Watcom 10.6 and QNX 4.x */
552#if defined(QNX4)
553#include <signal.h>
554#include <errno.h>
555#include <sys/stat.h>
556#include <termios.h>
557#include <ioctl.h>
558#include <sys/param.h>
559
560/* Warning: by default, the fd_set size is 32 in QNX! */
561#define FD_SETSIZE 256
562#include <sys/select.h>
563
564 /* keyboard types */
565# define KB_84 1
566# define KB_101 2
567# define KB_OTHER 3
568
569 /* LEDs */
570# define LED_CAP 0x04
571# define LED_NUM 0x02
572# define LED_SCR 0x01
573
574# define POSIX_TTY
575# define OSMOUSE_ONLY
576# define MOUSE_PROTOCOL_IN_KERNEL
577
578#define TIOCM_DTR 0x0001 /* data terminal ready */
579#define TIOCM_RTS 0x0002 /* request to send */
580#define TIOCM_CTS 0x1000 /* clear to send */
581#define TIOCM_DSR 0x2000 /* data set ready */
582#define TIOCM_RI 0x4000 /* ring */
583#define TIOCM_RNG TIOCM_RI
584#define TIOCM_CD 0x8000 /* carrier detect */
585#define TIOCM_CAR TIOCM_CD
586#define TIOCM_LE 0x0100 /* line enable */
587#define TIOCM_ST 0x0200 /* secondary transmit */
588#define TIOCM_SR 0x0400 /* secondary receive */
589
590#endif
591
592/**************************************************************************/
593/* QNX/Neutrino */
594/**************************************************************************/
595/* This is the Neutrino code for for NTO2.0 and GCC */
596#if defined(__QNXNTO__)
597#include <signal.h>
598#include <errno.h>
599#include <sys/stat.h>
600#include <termios.h>
601#include <ioctl.h>
602#include <sys/param.h>
603
604/* Warning: by default, the fd_set size is 32 in NTO! */
605#define FD_SETSIZE 256
606#include <sys/select.h>
607
608 /* keyboard types */
609# define KB_84 1
610# define KB_101 2
611# define KB_OTHER 3
612
613# define POSIX_TTY
614
615#endif
616
617/**************************************************************************/
618/* IRIX */
619/**************************************************************************/
620#if defined(sgi)
621
622#include <errno.h>
623#include <sys/types.h>
624#include <sys/stat.h>
625
626#endif
627
628/**************************************************************************/
629/* Generic */
630/**************************************************************************/
631
632#include <sys/wait.h> /* May need to adjust this for other OSs */
633
634/*
635 * Hack originally for ISC 2.2 POSIX headers, but may apply elsewhere,
636 * and it's safe, so just do it.
637 */
638#if !defined(O_NDELAY) && defined(O_NONBLOCK)
639# define O_NDELAY O_NONBLOCK
640#endif /* !O_NDELAY && O_NONBLOCK */
641
642#if !defined(MAXHOSTNAMELEN)
643# define MAXHOSTNAMELEN 32
644#endif /* !MAXHOSTNAMELEN */
645
646#if !defined(X_NOT_POSIX)
647# if defined(_POSIX_SOURCE)
648# include <limits.h>
649# else
650# define _POSIX_SOURCE
651# include <limits.h>
652# undef _POSIX_SOURCE
653# endif /* _POSIX_SOURCE */
654#endif /* !X_NOT_POSIX */
655#if !defined(PATH_MAX)
656# if defined(MAXPATHLEN)
657# define PATH_MAX MAXPATHLEN
658# else
659# define PATH_MAX 1024
660# endif /* MAXPATHLEN */
661#endif /* !PATH_MAX */
662
663#ifdef NEED_STRERROR
664# ifndef strerror
665extern char *sys_errlist[];
666extern int sys_nerr;
667# define strerror(n) \
668 ((n) >= 0 && (n) < sys_nerr) ? sys_errlist[n] : "unknown error"
669# endif /* !strerror */
670#endif /* NEED_STRERROR */
671
672#if defined(ISC) || defined(Lynx)
673#define rint(x) RInt(x)
674double RInt(
675 double x
676);
677#endif
678
679#ifndef DEV_MEM
680#define DEV_MEM "/dev/mem"
681#endif
682
683#ifndef VT_SYSREQ_DEFAULT
684#define VT_SYSREQ_DEFAULT FALSE
685#endif
686
687#ifdef OSMOUSE_ONLY
688# ifndef MOUSE_PROTOCOL_IN_KERNEL
689# define MOUSE_PROTOCOL_IN_KERNEL
690# endif
691#endif
692
693#define SYSCALL(call) while(((call) == -1) && (errno == EINTR))
694
695#define XF86_OS_PRIVS
696#include "xf86_OSproc.h"
697
698#ifndef NO_COMPILER_H
699#include "compiler.h"
700#endif
701
702#endif /* _XF86_OSLIB_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette