head 1.20; access; symbols; locks; strict; comment @ * @; 1.20 date 95.12.06.23.48.12; author jromine; state Exp; branches; next 1.19; 1.19 date 93.02.26.21.54.00; author jromine; state Exp; branches; next 1.18; 1.18 date 92.11.12.19.34.05; author jromine; state Exp; branches; next 1.17; 1.17 date 92.11.11.23.04.16; author jromine; state Exp; branches; next 1.16; 1.16 date 92.11.06.03.30.38; author jromine; state Exp; branches; next 1.15; 1.15 date 92.11.04.02.36.15; author jromine; state Exp; branches; next 1.14; 1.14 date 92.11.02.18.54.12; author jromine; state Exp; branches; next 1.13; 1.13 date 92.10.30.05.52.07; author jromine; state Exp; branches; next 1.12; 1.12 date 92.05.19.20.53.49; author jromine; state Exp; branches; next 1.11; 1.11 date 92.05.12.21.47.25; author jromine; state Exp; branches; next 1.10; 1.10 date 92.02.07.19.16.40; author jromine; state Exp; branches; next 1.9; 1.9 date 92.01.31.21.37.07; author jromine; state Exp; branches; next 1.8; 1.8 date 92.01.23.23.16.46; author jromine; state Exp; branches; next 1.7; 1.7 date 90.04.05.16.18.34; author sources; state Exp; branches; next 1.6; 1.6 date 90.04.05.15.05.46; author sources; state Exp; branches; next 1.5; 1.5 date 90.04.02.13.24.20; author sources; state Exp; branches; next 1.4; 1.4 date 90.03.27.19.14.00; author sources; state Exp; branches; next 1.3; 1.3 date 90.03.19.09.30.19; author sources; state Exp; branches; next 1.2; 1.2 date 90.02.01.13.22.13; author sources; state Exp; branches; next 1.1; 1.1 date 90.02.01.13.21.13; author sources; state Exp; branches; next ; desc @@ 1.20 log @fix: don't re-define bcopy @ text @/* strings.h - define standard string functions */ /* @@(#)$Id: strings.h,v 1.19 1993/02/26 21:54:00 jromine Exp jromine $ */ #ifndef _STRINGS /* once-only... */ #define _STRINGS #ifdef AUX #include #endif #ifdef _AIX #include #include #define bcmp(b1,b2,length) memcmp(b1, b2, length) #define bcopy(b1,b2,length) (void) memcpy (b2, b1, length) #define bcpy(b1,b2,length) memcmp (b1, b2, length) #define bzero(b,length) (void) memset (b, 0, length) #else /* _AIX */ #ifdef SYS5 #define index strchr #define rindex strrchr #endif /* SYS5 */ #if defined(BSD42) || defined(SVR4) #if !defined(SVR4) && !defined(__386BSD__) && !defined(BSD44) #include #else #include #include #endif #else /* not BSD42 || SVR4 */ char *index (); char *mktemp (); char *rindex (); #ifndef SPRINTFTYPE #ifndef ncr /* NCR compiler complains about re-declaration */ char *sprintf (); /* I guess this is the new standard */ #endif #else SPRINTFTYPE sprintf (); #endif char *strcat (); int strcmp (); char *strcpy (); int strlen (); char *strncat (); int strncmp (); char *strncpy (); #endif #if !defined(SVR4) && !defined(__386BSD__) && !defined(BSD44) char *getenv (); char *calloc (), *malloc (), *realloc (); #endif /* SVR4 */ #ifdef SYS5 #include #define bcmp(b1,b2,length) memcmp(b1, b2, length) #define bcopy(b1,b2,length) (void) memcpy (b2, b1, length) #define bcpy(b1,b2,length) memcmp (b1, b2, length) #define bzero(b,length) (void) memset (b, 0, length) #endif /* SYS5 */ #endif /* _AIX */ #endif /* not _STRINGS */ #if !defined(bcopy) && (defined(__HIGHC__) || __GNUC__ == 2) #define bcopy(s,d,l) memcpy(d,s,l) #endif @ 1.19 log @386BSD/BSD44 @ text @d2 1 a2 1 /* @@(#)$Id: strings.h,v 1.18 1992/11/12 19:34:05 jromine Exp jromine $ */ a58 4 #if defined(__HIGHC__) || __GNUC__ == 2 #define bcopy(s,d,l) memcpy(d,s,l) #endif d68 4 @ 1.18 log @drop u_short defn from AUX` @ text @d2 1 a2 1 /* @@(#)$Id: strings.h,v 1.17 1992/11/11 23:04:16 jromine Exp jromine $ */ d28 1 a28 1 #ifndef SVR4 d54 1 a54 1 #ifndef SVR4 @ 1.17 log @SVR4 change for Solaris 2.x @ text @d2 1 a2 1 /* @@(#)$Id: strings.h,v 1.16 1992/11/06 03:30:38 jromine Exp jromine $ */ a8 2 #define u_long ulong #define u_short ushort @ 1.16 log @AUX @ text @d2 1 a2 1 /* @@(#)$Id: strings.h,v 1.15 1992/11/04 02:36:15 jromine Exp jromine $ */ d30 1 d33 4 @ 1.15 log @remove _putenv defines @ text @d2 1 a2 1 /* @@(#)$Id: strings.h,v 1.14 1992/11/02 18:54:12 jromine Exp jromine $ */ d6 6 @ 1.14 log @don't define [r]index on _AIX since SYS5 defines them @ text @d2 1 a2 1 /* @@(#)$Id: strings.h,v 1.13 1992/10/30 05:52:07 jromine Exp jromine $ */ a8 1 #define putenv _putenv a9 1 #undef putenv @ 1.13 log @#ifdef around putenv decl in ., @ text @d2 1 a2 1 /* @@(#)$Id: strings.h,v 1.12 1992/05/19 20:53:49 jromine Exp jromine $ */ a11 3 #define index strchr #define rindex strrchr @ 1.12 log @AIX @ text @d2 1 a2 1 /* @@(#)$Id: strings.h,v 1.11 1992/05/12 21:47:25 jromine Exp jromine $ */ d9 1 d11 1 @ 1.11 log @fix ifdefs @ text @d2 1 a2 1 /* @@(#)$Id: strings.h,v 1.10 1992/02/07 19:16:40 jromine Exp jromine $ */ d9 1 a9 1 #include @ 1.10 log @SVR4 @ text @d2 1 a2 1 /* @@(#)$Id: strings.h,v 1.9 1992/01/31 21:37:07 jromine Exp jromine $ */ d24 1 a24 1 #endif SYS5 d63 1 a63 1 #endif SYS5 d65 1 a65 1 #endif not _STRINGS @ 1.9 log @kerberos @ text @d2 1 a2 1 /* @@(#)$Id: strings.h,v 1.8 1992/01/23 23:16:46 jromine Exp jromine $ */ d26 1 a26 1 #ifdef BSD42 d48 1 d51 1 @ 1.8 log @ifdef ncr @ text @d2 1 a2 1 /* @@(#)$Id: strings.h,v 1.7 1990/04/05 16:18:34 sources Exp jromine $ */ d7 14 d26 3 d46 1 d51 4 d62 1 a62 1 @ 1.7 log @fix @ text @d2 1 a2 1 /* @@(#)$Id:$ */ d16 1 d18 1 @ 1.6 log @add ID @ text @a3 2 /* @@(MHWARNING) */ d15 5 a19 1 @@(SPRINTFTYPE)sprintf (); /* finally, a config option */ @ 1.5 log @make "sprintf" type a config option @ text @d2 1 @ 1.4 log @some hpux fixes @ text @d3 2 d16 1 a16 9 /* this is getting gross. */ #if (!defined(hpux) && defined(SYS5)) || defined(SUN41) char *sprintf (); #else SYS5 #ifdef __GNUC__ #else int sprintf (); #endif #endif SYS5 @ 1.3 log @yuk! @ text @d15 1 a15 1 #if defined(SYS5) || defined(SUN41) @ 1.2 log @some more SYS5 #ifdefs @ text @d14 2 a15 1 #ifdef SYS5 @ 1.1 log @Initial revision @ text @d14 1 a14 1 #ifndef SYS5 d17 2 d20 1 d35 1 @