SCCS-vsn: usr.sbin/sendmail/src/conf.c 8.175
SCCS-vsn: usr.sbin/sendmail/src/conf.h 8.167
-static char sccsid[] = "@(#)conf.c 8.174 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c 8.175 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
+#endif
+\f/*
+** STRSTR -- find first substring in string
+**
+** Parameters:
+** big -- the big (full) string.
+** little -- the little (sub) string.
+**
+** Returns:
+** A pointer to the first instance of little in big.
+** big if little is the null string.
+** NULL if little is not contained in big.
+*/
+
+#ifdef NEEDSTRSTR
+
+char *
+strstr(big, little)
+ char *big;
+ char *little;
+{
+ register char *p = big;
+ int l;
+
+ if (*little == '\0')
+ return big;
+ l = strlen(little);
+
+ while ((p = strchr(p, *little)) != NULL)
+ {
+ if (strncmp(p, little, l) == 0)
+ return p;
+ p++;
+ }
+ return NULL;
+}
+
#endif
\f/*
** SM_GETHOSTBY{NAME,ADDR} -- compatibility routines for gethostbyXXX
#endif
\f/*
** SM_GETHOSTBY{NAME,ADDR} -- compatibility routines for gethostbyXXX
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)conf.h 8.166 (Berkeley) %G%
+ * @(#)conf.h 8.167 (Berkeley) %G%
/* special tweaking for SunOS 4.0.3 */
# include <malloc.h>
# define SYS5SIGNALS 1 /* SysV signal semantics -- reset on each sig */
/* special tweaking for SunOS 4.0.3 */
# include <malloc.h>
# define SYS5SIGNALS 1 /* SysV signal semantics -- reset on each sig */
+# define NEEDSTRSTR 1 /* need emulation of strstr(3) routine */
# define WAITUNION 1 /* use "union wait" as wait argument type */
# undef WIFEXITED
# undef WEXITSTATUS
# define WAITUNION 1 /* use "union wait" as wait argument type */
# undef WIFEXITED
# undef WEXITSTATUS
# define HASUNSETENV 1 /* has unsetenv(2) call */
# define NEEDPUTENV 1 /* need putenv(3) call */
# define NEEDGETOPT 1 /* need a replacement for getopt(3) */
# define HASUNSETENV 1 /* has unsetenv(2) call */
# define NEEDPUTENV 1 /* need putenv(3) call */
# define NEEDGETOPT 1 /* need a replacement for getopt(3) */
+# define NEEDSTRSTR 1 /* need emulation of the strstr(3) call */
# define WAITUNION 1 /* use "union wait" as wait argument type */
# ifdef uniosb
# define LA_TYPE LA_INT
# define WAITUNION 1 /* use "union wait" as wait argument type */
# ifdef uniosb
# define LA_TYPE LA_INT