-/* $OpenBSD: c_ksh.c,v 1.44 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: c_ksh.c,v 1.45 2015/10/19 14:42:16 mmcc Exp $ */
/*
* built-in Korn commands: c_*
#include <sys/stat.h>
#include <ctype.h>
+#include <string.h>
#include "sh.h"
-/* $OpenBSD: c_sh.c,v 1.51 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: c_sh.c,v 1.52 2015/10/19 14:42:16 mmcc Exp $ */
/*
* built-in Bourne commands
#include <sys/stat.h>
#include <sys/time.h>
+#include <string.h>
+
#include "sh.h"
static void p_time(struct shf *, int, struct timeval *, int, char *, char *);
-/* $OpenBSD: c_test.c,v 1.21 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: c_test.c,v 1.22 2015/10/19 14:42:16 mmcc Exp $ */
/*
* test(1); version 7-like -- author Erik Baalbergen
#include <sys/stat.h>
+#include <string.h>
+
#include "sh.h"
#include "c_test.h"
-/* $OpenBSD: c_ulimit.c,v 1.21 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: c_ulimit.c,v 1.22 2015/10/19 14:42:16 mmcc Exp $ */
/*
ulimit -- handle "ulimit" builtin
#include <sys/resource.h>
+#include <string.h>
+
#include "sh.h"
#define SOFT 0x1
-/* $OpenBSD: edit.c,v 1.47 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: edit.c,v 1.48 2015/10/19 14:42:16 mmcc Exp $ */
/*
* Command line editing - common code
#include <ctype.h>
#include <libgen.h>
+#include <string.h>
#include "sh.h"
#include "edit.h"
-/* $OpenBSD: emacs.c,v 1.59 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: emacs.c,v 1.60 2015/10/19 14:42:16 mmcc Exp $ */
/*
* Emacs-like command line editing and history
#include <ctype.h>
#include <locale.h>
+#include <string.h>
#include "sh.h"
#include "edit.h"
-/* $OpenBSD: eval.c,v 1.44 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: eval.c,v 1.45 2015/10/19 14:42:16 mmcc Exp $ */
/*
* Expansion - quoting, separation, substitution, globbing
#include <dirent.h>
#include <pwd.h>
+#include <string.h>
#include "sh.h"
-/* $OpenBSD: exec.c,v 1.60 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: exec.c,v 1.61 2015/10/19 14:42:16 mmcc Exp $ */
/*
* execute command tree
#include <ctype.h>
#include <paths.h>
+#include <string.h>
#include "sh.h"
#include "c_test.h"
-/* $OpenBSD: expr.c,v 1.30 2015/10/19 14:03:21 mmcc Exp $ */
+/* $OpenBSD: expr.c,v 1.31 2015/10/19 14:42:16 mmcc Exp $ */
/*
* Korn expression evaluation
#include <ctype.h>
#include <limits.h>
+#include <string.h>
#include "sh.h"
-/* $OpenBSD: history.c,v 1.48 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: history.c,v 1.49 2015/10/19 14:42:16 mmcc Exp $ */
/*
* command history
#include <sys/stat.h>
+#include <string.h>
+
#include "sh.h"
#ifdef HISTORY
-/* $OpenBSD: io.c,v 1.31 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: io.c,v 1.32 2015/10/19 14:42:16 mmcc Exp $ */
/*
* shell buffered IO and formatted output
#include <sys/stat.h>
#include <ctype.h>
+#include <string.h>
#include "sh.h"
-/* $OpenBSD: jobs.c,v 1.49 2015/10/19 14:03:21 mmcc Exp $ */
+/* $OpenBSD: jobs.c,v 1.50 2015/10/19 14:42:16 mmcc Exp $ */
/*
* Process and job control
#include <sys/wait.h>
#include <limits.h>
+#include <string.h>
#include "sh.h"
#include "tty.h"
-/* $OpenBSD: lex.c,v 1.60 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: lex.c,v 1.61 2015/10/19 14:42:16 mmcc Exp $ */
/*
* lexical analysis and source input
#include <ctype.h>
#include <libgen.h>
+#include <string.h>
#include "sh.h"
-/* $OpenBSD: mail.c,v 1.21 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: mail.c,v 1.22 2015/10/19 14:42:16 mmcc Exp $ */
/*
* Mailbox checking code by Robert J. Gibson, adapted for PD ksh by
#include <sys/stat.h>
+#include <string.h>
#include <time.h>
#include "config.h"
-/* $OpenBSD: main.c,v 1.68 2015/10/19 14:01:37 mmcc Exp $ */
+/* $OpenBSD: main.c,v 1.69 2015/10/19 14:42:16 mmcc Exp $ */
/*
* startup, main loop, environments and error handling
#include <paths.h>
#include <pwd.h>
+#include <string.h>
#include "sh.h"
-/* $OpenBSD: misc.c,v 1.48 2015/10/19 14:03:21 mmcc Exp $ */
+/* $OpenBSD: misc.c,v 1.49 2015/10/19 14:42:16 mmcc Exp $ */
/*
* Miscellaneous functions
#include <ctype.h>
#include <limits.h>
+#include <string.h>
#include "sh.h"
#include "charclass.h"
-/* $OpenBSD: mknod.c,v 1.3 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: mknod.c,v 1.4 2015/10/19 14:42:16 mmcc Exp $ */
/* $NetBSD: mknod.c,v 1.8 1995/08/11 00:08:18 jtc Exp $ */
/*
#include <sys/stat.h>
#include <errno.h>
+#include <string.h>
#include "sh.h"
-/* $OpenBSD: path.c,v 1.16 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: path.c,v 1.17 2015/10/19 14:42:16 mmcc Exp $ */
#include <sys/stat.h>
+#include <string.h>
+
#include "sh.h"
/*
-/* $OpenBSD: sh.h,v 1.42 2015/10/19 14:03:21 mmcc Exp $ */
+/* $OpenBSD: sh.h,v 1.43 2015/10/19 14:42:16 mmcc Exp $ */
/*
* Public Domain Bourne/Korn shell
#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
-#include <string.h>
#include <stdarg.h>
#include <errno.h>
-/* $OpenBSD: shf.c,v 1.24 2015/10/19 14:03:21 mmcc Exp $ */
+/* $OpenBSD: shf.c,v 1.25 2015/10/19 14:42:16 mmcc Exp $ */
/*
* Shell file I/O routines
#include <sys/stat.h>
#include <limits.h>
+#include <string.h>
#include "sh.h"
-/* $OpenBSD: syn.c,v 1.35 2015/10/15 22:53:50 mmcc Exp $ */
+/* $OpenBSD: syn.c,v 1.36 2015/10/19 14:42:16 mmcc Exp $ */
/*
* shell parser (C version)
*/
+#include <string.h>
+
#include "sh.h"
#include "c_test.h"
-/* $OpenBSD: table.c,v 1.20 2015/10/19 14:03:21 mmcc Exp $ */
+/* $OpenBSD: table.c,v 1.21 2015/10/19 14:42:16 mmcc Exp $ */
/*
* dynamic hashed associative table for commands and variables
*/
#include <limits.h>
+#include <string.h>
#include "sh.h"
-/* $OpenBSD: trap.c,v 1.26 2015/10/09 19:36:27 tedu Exp $ */
+/* $OpenBSD: trap.c,v 1.27 2015/10/19 14:42:16 mmcc Exp $ */
/*
* signal handling
*/
+#include <string.h>
+
#include "sh.h"
Trap sigtraps[NSIG + 1];
-/* $OpenBSD: tree.c,v 1.25 2015/10/09 19:36:27 tedu Exp $ */
+/* $OpenBSD: tree.c,v 1.26 2015/10/19 14:42:16 mmcc Exp $ */
/*
* command tree climbing
*/
+#include <string.h>
+
#include "sh.h"
#define INDENT 4
-/* $OpenBSD: tty.c,v 1.13 2015/10/15 20:01:53 mmcc Exp $ */
+/* $OpenBSD: tty.c,v 1.14 2015/10/19 14:42:16 mmcc Exp $ */
+
+#include <string.h>
#include "sh.h"
#include "tty.h"
-/* $OpenBSD: var.c,v 1.52 2015/10/19 14:03:21 mmcc Exp $ */
+/* $OpenBSD: var.c,v 1.53 2015/10/19 14:42:16 mmcc Exp $ */
#include <sys/stat.h>
#include <ctype.h>
#include <limits.h>
+#include <string.h>
#include <time.h>
#include "sh.h"
-/* $OpenBSD: vi.c,v 1.35 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: vi.c,v 1.36 2015/10/19 14:42:16 mmcc Exp $ */
/*
* vi command editing
#include <sys/stat.h> /* completion */
#include <ctype.h>
+#include <string.h>
#include "sh.h"
#include "edit.h"