File indexing completed on 2025-01-18 10:15:31
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 #ifndef _XFUNCS_H_
0031 #define _XFUNCS_H_
0032
0033 #include <X11/Xosdefs.h>
0034
0035
0036
0037 #ifdef X_USEBFUNCS
0038 void bcopy();
0039 void bzero();
0040 int bcmp();
0041 #else
0042 #if (__STDC__ && !defined(X_NOT_STDC_ENV) && !defined(sun) && !defined(macII) && !defined(apollo)) || defined(SVR4) || defined(hpux) || defined(_IBMR2) || defined(_SEQUENT_)
0043 #include <string.h>
0044 #define _XFUNCS_H_INCLUDED_STRING_H
0045 #define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len))
0046 #define bzero(b,len) memset(b, 0, (size_t)(len))
0047 #define bcmp(b1,b2,len) memcmp(b1, b2, (size_t)(len))
0048 #else
0049 #ifdef sgi
0050 #include <bstring.h>
0051 #else
0052 #ifdef SYSV
0053 #include <memory.h>
0054 void bcopy();
0055 #define bzero(b,len) memset(b, 0, len)
0056 #define bcmp(b1,b2,len) memcmp(b1, b2, len)
0057 #else
0058 void bcopy();
0059 void bzero();
0060 int bcmp();
0061 #endif
0062 #endif
0063 #endif
0064 #endif
0065
0066
0067
0068 #if !defined(X_NOT_STDC_ENV) && (!defined(sun) || defined(SVR4))
0069
0070 #ifndef _XFUNCS_H_INCLUDED_STRING_H
0071 #include <string.h>
0072 #endif
0073 #undef bzero
0074 #define bzero(b,len) memset(b,0,len)
0075 #else
0076 #if defined(SYSV) || defined(luna) || defined(sun) || defined(__sxg__)
0077 #include <memory.h>
0078 #define memmove(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len))
0079 #if defined(SYSV) && defined(_XBCOPYFUNC)
0080 #undef memmove
0081 #define memmove(dst,src,len) _XBCOPYFUNC((char *)(src),(char *)(dst),(int)(len))
0082 #define _XNEEDBCOPYFUNC
0083 #endif
0084 #else
0085 #define memmove(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len))
0086 #define memcpy(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len))
0087 #define memcmp(b1,b2,len) bcmp((char *)(b1),(char *)(b2),(int)(len))
0088 #endif
0089 #endif
0090
0091 #endif