#include <assert.h>
-#ifdef MSDOS
-# include <io.h>
-#endif
-
-#ifdef _MSC_VER
-# include <stdlib.h>
-# include <process.h>
-# define getpid _getpid
-#endif
-
#if HAVE_STDLIB_H
# include <stdlib.h>
#endif
# if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
# include <memory.h>
# endif /* not STDC_HEADERS and HAVE_MEMORY_H */
-# ifndef bcopy
-# define bcopy(src, dst, num) memcpy((dst), (src), (num))
-# endif
#else /* not STDC_HEADERS and not HAVE_STRING_H */
# include <strings.h>
/* memory.h and strings.h conflict on some systems. */
# include "xalloc.h"
+/* From xstrndup.c. */
+char *xstrndup PARAMS ((const char *s, size_t n));
+
/*---------------------.
| Missing prototypes. |
`---------------------*/
char *stpcpy PARAMS ((char *dest, const char *src));
#endif
+#if !HAVE_DECL_STRCHR
+char *strchr(const char *s, int c);
+#endif
+
#if !HAVE_DECL_STRNDUP
char *strndup PARAMS ((const char *s, size_t size));
#endif
+#if !HAVE_DECL_STRSPN
+size_t strspn(const char *s, const char *accept);
+#endif
+
#if !HAVE_DECL_STRNLEN
size_t strnlen PARAMS ((const char *s, size_t maxlen));
#endif
+#if !HAVE_DECL_MEMCHR
+void *memchr(const void *s, int c, size_t n);
+#endif
+
/*-----------------.
# include <dmalloc.h>
# endif /* WITH_DMALLOC */
-#endif /* BISON_SYSTEM_H */
+#endif /* ! BISON_SYSTEM_H */