117ca54c3Smrg/* 2ea1d6981Smrg * 317ca54c3SmrgCopyright 1990, 1998 The Open Group 417ca54c3Smrg 517ca54c3SmrgPermission to use, copy, modify, distribute, and sell this software and its 617ca54c3Smrgdocumentation for any purpose is hereby granted without fee, provided that 717ca54c3Smrgthe above copyright notice appear in all copies and that both that 817ca54c3Smrgcopyright notice and this permission notice appear in supporting 917ca54c3Smrgdocumentation. 1017ca54c3Smrg 1117ca54c3SmrgThe above copyright notice and this permission notice shall be included in 1217ca54c3Smrgall copies or substantial portions of the Software. 1317ca54c3Smrg 1417ca54c3SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1517ca54c3SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1617ca54c3SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1717ca54c3SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 1817ca54c3SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 1917ca54c3SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2017ca54c3Smrg 2117ca54c3SmrgExcept as contained in this notice, the name of The Open Group shall not be 2217ca54c3Smrgused in advertising or otherwise to promote the sale, use or other dealings 2317ca54c3Smrgin this Software without prior written authorization from The Open Group. 2417ca54c3Smrg * 2517ca54c3Smrg */ 2617ca54c3Smrg 2717ca54c3Smrg#ifndef _XFUNCS_H_ 2817ca54c3Smrg# define _XFUNCS_H_ 2917ca54c3Smrg 3017ca54c3Smrg# include <X11/Xosdefs.h> 3117ca54c3Smrg 3217ca54c3Smrg/* the old Xfuncs.h, for pre-R6 */ 3317ca54c3Smrg# if !(defined(XFree86LOADER) && defined(IN_MODULE)) 3417ca54c3Smrg 3517ca54c3Smrg# ifdef X_USEBFUNCS 3617ca54c3Smrgvoid bcopy(); 3717ca54c3Smrgvoid bzero(); 3817ca54c3Smrgint bcmp(); 3917ca54c3Smrg# else 4017ca54c3Smrg# if defined(SYSV) && !defined(__SCO__) && !defined(__sun) && !defined(__UNIXWARE__) && !defined(_AIX) 4117ca54c3Smrg# include <memory.h> 4217ca54c3Smrgvoid bcopy(); 4317ca54c3Smrg# define bzero(b,len) memset(b, 0, len) 4417ca54c3Smrg# define bcmp(b1,b2,len) memcmp(b1, b2, len) 4517ca54c3Smrg# else 4617ca54c3Smrg# include <string.h> 4717ca54c3Smrg# if defined(__SCO__) || defined(__sun) || defined(__UNIXWARE__) || defined(__CYGWIN__) || defined(_AIX) || defined(__APPLE__) 4817ca54c3Smrg# include <strings.h> 4917ca54c3Smrg# endif 5017ca54c3Smrg# define _XFUNCS_H_INCLUDED_STRING_H 5117ca54c3Smrg# endif 5217ca54c3Smrg# endif /* X_USEBFUNCS */ 5317ca54c3Smrg 5417ca54c3Smrg/* the new Xfuncs.h */ 5517ca54c3Smrg 5617ca54c3Smrg/* the ANSI C way */ 5717ca54c3Smrg# ifndef _XFUNCS_H_INCLUDED_STRING_H 5817ca54c3Smrg# include <string.h> 5917ca54c3Smrg# endif 6017ca54c3Smrg# undef bzero 6117ca54c3Smrg# define bzero(b,len) memset(b,0,len) 6217ca54c3Smrg 6317ca54c3Smrg# if defined WIN32 && defined __MINGW32__ 6417ca54c3Smrg# define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len)) 6517ca54c3Smrg# endif 6617ca54c3Smrg 6717ca54c3Smrg# endif /* !(defined(XFree86LOADER) && defined(IN_MODULE)) */ 6817ca54c3Smrg 6917ca54c3Smrg#endif /* _XFUNCS_H_ */ 70