summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2009-02-07 17:27:05 -0600
committerMike Christie <michaelc@cs.wisc.edu>2009-02-07 17:27:05 -0600
commitc4fab650136590fb6d6b4c612aa429d1d398caad (patch)
tree6b5dcd6406b79bf63ef2f01217bf66714509eb8e /include
parent4a99e1a61d2767dcf87367480b029ff0f3bc32e7 (diff)
downloadopen-iscsi-c4fab650136590fb6d6b4c612aa429d1d398caad.tar.gz
iscsi tools: convert from strncat to strlcat
We messed up strncat in so many different ways that strlat could fix. This patch converts the userspace uses of strncat to strlcat.
Diffstat (limited to 'include')
-rw-r--r--include/sysdeps.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/sysdeps.h b/include/sysdeps.h
new file mode 100644
index 0000000..2f18e3b
--- /dev/null
+++ b/include/sysdeps.h
@@ -0,0 +1,27 @@
+/*
+ * wrapping of libc features and kernel interfaces
+ *
+ * Copyright (C) 2005-2006 Kay Sievers <kay.sievers@vrfy.org>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef _SYSDEPS_H_
+#define _SYSDEPS_H_
+
+extern size_t strlcpy(char *dst, const char *src, size_t size);
+extern size_t strlcat(char *dst, const char *src, size_t size);
+
+#endif