Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@openvz.org>2013-08-28 19:06:43 +0400
committerPavel Emelyanov <xemul@parallels.com>2013-08-28 19:06:43 +0400
commitbc002e85373d5a574a45a627812e37dc48d44915 (patch)
tree2352971103a880f398a3ecbae68dfbfe782f1871 /Makefile.config
parentaaeff46e52650e9f3238ef6352f75a897ed7298f (diff)
Add strlcpy helper
Same as kernel provides, adopted from Linux sources. strlcpy is similar to strncpy but _always_ adds \0 at the end of string even if destination is shorter. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Diffstat (limited to 'Makefile.config')
-rw-r--r--Makefile.config3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.config b/Makefile.config
index 8f81bbcdd..f376da154 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -13,6 +13,9 @@ endif
ifeq ($(call try-cc,$(PRLIMIT_TEST),,),y)
$(Q) @echo '#define CONFIG_HAS_PRLIMIT' >> $@
endif
+ifeq ($(call try-cc,$(STRLCPY_TEST),,),y)
+ $(Q) @echo '#define CONFIG_HAS_STRLCPY' >> $@
+endif
$(Q) @echo '#endif /* __CR_CONFIG_H__ */' >> $@
config: $(CONFIG)