summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-24 17:05:01 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-24 17:05:01 +0100
commit6035c9b23fc5445a9e95910b7c032876a1f4301c (patch)
treeaf81265733a32b52625319b50094a1bda0123a56 /docs
parentc97627fdfca3a976ef7f3055339021967ca60f6d (diff)
downloadwolfbones-6035c9b23fc5445a9e95910b7c032876a1f4301c.tar.gz
wolfbones-6035c9b23fc5445a9e95910b7c032876a1f4301c.tar.bz2
fixed strlcpy and strlcat on NetBSD
Diffstat (limited to 'docs')
-rw-r--r--docs/port/README9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/port/README b/docs/port/README
index e6820db..aa96234 100644
--- a/docs/port/README
+++ b/docs/port/README
@@ -40,6 +40,15 @@ Currently there are the following definitions which must be set:
string functions
- HAVE_LOCALTIME_R: whether we have a reentrant localtime function
- HAVE_PTHREADS: whether the system has POSIX thread support
+- HAVE_STRLCPY, HAVE_STRLCAT, MUST_DEFINE_STRLCPY_PROTOTYPE and
+ MUST_DEFINE_STRLCAT_PROTOTYPE: strlcpy and strlcat are very important
+ in term of secure C programming, but _XOPEN_SOURCE doesn't define them.
+ As we also don't want to include whatever for example _NETBSD_SOURCE
+ defines we define some prototypes on platforms where the function
+ exists in the C library. On other platforms like Linux we provide a
+ stub
+- HAVE_ITOA: handy function, we define it as on Windows (as the char*
+ return value is more handy than void)
Defines in 'port/sys_internal.h'
--------------------------------