Path: blob/master/thirdparty/linuxbsd_headers/X11/Xfuncs.h
9903 views
/*1*2Copyright 1990, 1998 The Open Group34Permission to use, copy, modify, distribute, and sell this software and its5documentation for any purpose is hereby granted without fee, provided that6the above copyright notice appear in all copies and that both that7copyright notice and this permission notice appear in supporting8documentation.910The above copyright notice and this permission notice shall be included in11all copies or substantial portions of the Software.1213THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE16OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN17AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN18CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.1920Except as contained in this notice, the name of The Open Group shall not be21used in advertising or otherwise to promote the sale, use or other dealings22in this Software without prior written authorization from The Open Group.23*24*/2526#ifndef _XFUNCS_H_27# define _XFUNCS_H_2829# include <X11/Xosdefs.h>3031/* the old Xfuncs.h, for pre-R6 */32# if !(defined(XFree86LOADER) && defined(IN_MODULE))3334# ifdef X_USEBFUNCS35void bcopy();36void bzero();37int bcmp();38# else39# if defined(SYSV) && !defined(__SCO__) && !defined(__sun) && !defined(__UNIXWARE__) && !defined(_AIX)40# include <memory.h>41void bcopy();42# define bzero(b,len) memset(b, 0, len)43# define bcmp(b1,b2,len) memcmp(b1, b2, len)44# else45# include <string.h>46# if defined(__SCO__) || defined(__sun) || defined(__UNIXWARE__) || defined(__CYGWIN__) || defined(_AIX) || defined(__APPLE__)47# include <strings.h>48# endif49# define _XFUNCS_H_INCLUDED_STRING_H50# endif51# endif /* X_USEBFUNCS */5253/* the new Xfuncs.h */5455/* the ANSI C way */56# ifndef _XFUNCS_H_INCLUDED_STRING_H57# include <string.h>58# endif59# undef bzero60# define bzero(b,len) memset(b,0,len)6162# if defined WIN32 && defined __MINGW32__63# define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len))64# endif6566# endif /* !(defined(XFree86LOADER) && defined(IN_MODULE)) */6768#endif /* _XFUNCS_H_ */697071