|
||||
File indexing completed on 2025-01-18 10:14:32
0001 /* 0002 * 0003 Copyright 1990, 1998 The Open Group 0004 0005 Permission to use, copy, modify, distribute, and sell this software and its 0006 documentation for any purpose is hereby granted without fee, provided that 0007 the above copyright notice appear in all copies and that both that 0008 copyright notice and this permission notice appear in supporting 0009 documentation. 0010 0011 The above copyright notice and this permission notice shall be included in 0012 all copies or substantial portions of the Software. 0013 0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 0020 0021 Except as contained in this notice, the name of The Open Group shall not be 0022 used in advertising or otherwise to promote the sale, use or other dealings 0023 in this Software without prior written authorization from The Open Group. 0024 * 0025 */ 0026 0027 #ifndef _XFUNCS_H_ 0028 # define _XFUNCS_H_ 0029 0030 # include <X11/Xosdefs.h> 0031 0032 /* the old Xfuncs.h, for pre-R6 */ 0033 # if !(defined(XFree86LOADER) && defined(IN_MODULE)) 0034 0035 # ifdef X_USEBFUNCS 0036 void bcopy(); 0037 void bzero(); 0038 int bcmp(); 0039 # else 0040 # if defined(SYSV) && !defined(__SCO__) && !defined(__sun) && !defined(__UNIXWARE__) && !defined(_AIX) 0041 # include <memory.h> 0042 void bcopy(); 0043 # define bzero(b,len) memset(b, 0, len) 0044 # define bcmp(b1,b2,len) memcmp(b1, b2, len) 0045 # else 0046 # include <string.h> 0047 # if defined(__SCO__) || defined(__sun) || defined(__UNIXWARE__) || defined(__CYGWIN__) || defined(_AIX) || defined(__APPLE__) 0048 # include <strings.h> 0049 # endif 0050 # define _XFUNCS_H_INCLUDED_STRING_H 0051 # endif 0052 # endif /* X_USEBFUNCS */ 0053 0054 /* the new Xfuncs.h */ 0055 0056 /* the ANSI C way */ 0057 # ifndef _XFUNCS_H_INCLUDED_STRING_H 0058 # include <string.h> 0059 # endif 0060 # undef bzero 0061 # define bzero(b,len) memset(b,0,len) 0062 0063 # if defined WIN32 && defined __MINGW32__ 0064 # define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len)) 0065 # endif 0066 0067 # endif /* !(defined(XFree86LOADER) && defined(IN_MODULE)) */ 0068 0069 #endif /* _XFUNCS_H_ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |