Source-Changes-HG archive

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

[src/trunk]: src/include/ssp gcc-4.8.1 is has a builtin stpncpy, but is missi...



details:   https://anonhg.NetBSD.org/src/rev/7d13f1855957
branches:  trunk
changeset: 791160:7d13f1855957
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 07 02:00:54 2013 +0000

description:
gcc-4.8.1 is has a builtin stpncpy, but is missing the __builtin_ ssp
equivalent. go figure.

diffstat:

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

diffs (33 lines):

diff -r 8b5319ed191d -r 7d13f1855957 include/ssp/string.h
--- a/include/ssp/string.h      Thu Nov 07 01:49:46 2013 +0000
+++ b/include/ssp/string.h      Thu Nov 07 02:00:54 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: string.h,v 1.8 2013/11/07 00:02:58 tron Exp $  */
+/*     $NetBSD: string.h,v 1.9 2013/11/07 02:00:54 christos Exp $      */
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -38,7 +38,6 @@
 void *__memmove_chk(void *, void *, size_t, size_t);
 void *__memset_chk(void *, int, size_t, size_t);
 char *__stpcpy_chk(char *, const char *, size_t);
-char *__stpncpy_chk(char *, const char *, size_t, size_t);
 char *__strcat_chk(char *, const char *, size_t);
 char *__strcpy_chk(char *, const char *, size_t);
 char *__strncat_chk(char *, const char *, size_t, size_t);
@@ -82,6 +81,7 @@
 __ssp_bos_icheck3_restrict(memcpy, void *, const void *)
 __ssp_bos_icheck3(memmove, void *, const void *)
 __ssp_bos_icheck3(memset, void *, int)
+__ssp_bos_icheck2_restrict(stpcpy, 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,7 +92,6 @@
 #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