Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include/ssp add stpncpy()



details:   https://anonhg.NetBSD.org/src/rev/f3e993233d93
branches:  trunk
changeset: 328552:f3e993233d93
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 06 19:29:58 2014 +0000

description:
add stpncpy()

diffstat:

 include/ssp/string.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 01c8e61431f3 -r f3e993233d93 include/ssp/string.h
--- a/include/ssp/string.h      Sun Apr 06 19:29:37 2014 +0000
+++ b/include/ssp/string.h      Sun Apr 06 19:29:58 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: string.h,v 1.9 2013/11/07 02:00:54 christos Exp $      */
+/*     $NetBSD: string.h,v 1.10 2014/04/06 19:29:58 christos Exp $     */
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -82,6 +82,7 @@
 __ssp_bos_icheck3(memmove, void *, const void *)
 __ssp_bos_icheck3(memset, void *, int)
 __ssp_bos_icheck2_restrict(stpcpy, char *, const char *)
+__ssp_bos_icheck3_restrict(stpncpy, char *, const char *)
 __ssp_bos_icheck2_restrict(strcpy, char *, const char *)
 __ssp_bos_icheck2_restrict(strcat, char *, const char *)
 __ssp_bos_icheck3_restrict(strncpy, char *, const char *)
@@ -92,6 +93,7 @@
 #define memmove(dst, src, len) __ssp_bos_check3(memmove, dst, src, len)
 #define memset(dst, val, len) __ssp_bos_check3(memset, dst, val, len)
 #define stpcpy(dst, src) __ssp_bos_check2(stpcpy, dst, src)
+#define stpncpy(dst, src, len) __ssp_bos_check3(stpncpy, dst, src, len)
 #define strcpy(dst, src) __ssp_bos_check2(strcpy, dst, src)
 #define strcat(dst, src) __ssp_bos_check2(strcat, dst, src)
 #define strncpy(dst, src, len) __ssp_bos_check3(strncpy, dst, src, len)



Home | Main Index | Thread Index | Old Index