VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/7.1/X11/Xfuncs.h@ 6202

Last change on this file since 6202 was 6202, checked in by vboxsync, 17 years ago

re-export x11

  • Property svn:eol-style set to native
File size: 3.2 KB
Line 
1/*
2 * $XdotOrg: proto/X11/Xfuncs.h,v 1.4 2005/11/08 06:33:25 jkj Exp $
3 * $Xorg: Xfuncs.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $
4 *
5 *
6Copyright 1990, 1998 The Open Group
7
8Permission to use, copy, modify, distribute, and sell this software and its
9documentation for any purpose is hereby granted without fee, provided that
10the above copyright notice appear in all copies and that both that
11copyright notice and this permission notice appear in supporting
12documentation.
13
14The above copyright notice and this permission notice shall be included in
15all copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24Except as contained in this notice, the name of The Open Group shall not be
25used in advertising or otherwise to promote the sale, use or other dealings
26in this Software without prior written authorization from The Open Group.
27 *
28 */
29/* $XFree86: xc/include/Xfuncs.h,v 3.10 2002/05/31 18:45:38 dawes Exp $ */
30
31#ifndef _XFUNCS_H_
32#define _XFUNCS_H_
33
34#include <X11/Xosdefs.h>
35
36/* the old Xfuncs.h, for pre-R6 */
37#if !(defined(XFree86LOADER) && defined(IN_MODULE))
38
39#ifdef X_USEBFUNCS
40void bcopy();
41void bzero();
42int bcmp();
43#else
44#if defined(SYSV) && !defined(__SCO__) && !defined(sun) && !defined(__UNIXWARE__)
45#include <memory.h>
46void bcopy();
47#define bzero(b,len) memset(b, 0, len)
48#define bcmp(b1,b2,len) memcmp(b1, b2, len)
49#else
50#include <string.h>
51#if defined(__SCO__) || defined(sun) || defined(__UNIXWARE__)
52#include <strings.h>
53#endif
54#define _XFUNCS_H_INCLUDED_STRING_H
55#if defined(sun)
56#define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len))
57#define bzero(b,len) memset(b, 0, (size_t)(len))
58#define bcmp(b1,b2,len) memcmp(b1, b2, (size_t)(len))
59#endif
60#endif
61#endif /* X_USEBFUNCS */
62
63/* the new Xfuncs.h */
64
65#if !defined(X_NOT_STDC_ENV) && (!defined(sun) || defined(SVR4))
66/* the ANSI C way */
67#ifndef _XFUNCS_H_INCLUDED_STRING_H
68#include <string.h>
69#endif
70#undef bzero
71#define bzero(b,len) memset(b,0,len)
72#else /* else X_NOT_STDC_ENV or SunOS 4 */
73#if defined(SYSV) || defined(luna) || defined(sun) || defined(__sxg__)
74#include <memory.h>
75#define memmove(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len))
76#if defined(SYSV) && defined(_XBCOPYFUNC)
77#undef memmove
78#define memmove(dst,src,len) _XBCOPYFUNC((char *)(src),(char *)(dst),(int)(len))
79#define _XNEEDBCOPYFUNC
80#endif
81#else /* else vanilla BSD */
82#define memmove(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len))
83#define memcpy(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len))
84#define memcmp(b1,b2,len) bcmp((char *)(b1),(char *)(b2),(int)(len))
85#endif /* SYSV else */
86#endif /* ! X_NOT_STDC_ENV else */
87
88#if defined(X_NOT_STDC_ENV) || (defined(sun) && !defined(SVR4))
89#define atexit(f) on_exit(f, 0)
90#endif
91
92#endif /* !(defined(XFree86LOADER) && defined(IN_MODULE)) */
93
94#endif /* _XFUNCS_H_ */
Note: See TracBrowser for help on using the repository browser.

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