summaryrefslogtreecommitdiff
path: root/bsd-strlcpy.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-11-19 15:32:34 +1100
committerDamien Miller <djm@mindrot.org>1999-11-19 15:32:34 +1100
commit04f801456ad64b8f08bb8643cf19e0b9ca477b36 (patch)
treea0fd23f758cb40cf808b8c18ced35d4045decee9 /bsd-strlcpy.h
parent8029775b77e8f8bc380518f9f734a9d979025bbb (diff)
- Renamed BSD helper function files to bsd-*
- Added tests for login and daemon and OpenBSD replacements for when they are absent.
Diffstat (limited to 'bsd-strlcpy.h')
-rw-r--r--bsd-strlcpy.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/bsd-strlcpy.h b/bsd-strlcpy.h
new file mode 100644
index 00000000..dafa44af
--- /dev/null
+++ b/bsd-strlcpy.h
@@ -0,0 +1,10 @@
+#ifndef _BSD_STRLCPY_H
+#define _BSD_STRLCPY_H
+
+#include "config.h"
+#ifndef HAVE_STRLCPY
+#include <sys/types.h>
+size_t strlcpy(char *dst, const char *src, size_t siz);
+#endif /* !HAVE_STRLCPY */
+
+#endif /* _BSD_STRLCPY_H */