Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include/ssp add some prototypes for checked string functions
details: https://anonhg.NetBSD.org/src/rev/0a060849fc00
branches: trunk
changeset: 749102:0a060849fc00
user: drochner <drochner%NetBSD.org@localhost>
date: Tue Nov 17 20:47:59 2009 +0000
description:
add some prototypes for checked string functions
diffstat:
include/ssp/string.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 04f42acf0916 -r 0a060849fc00 include/ssp/string.h
--- a/include/ssp/string.h Tue Nov 17 20:46:20 2009 +0000
+++ b/include/ssp/string.h Tue Nov 17 20:47:59 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: string.h,v 1.3 2008/04/28 20:22:54 martin Exp $ */
+/* $NetBSD: string.h,v 1.4 2009/11/17 20:47:59 drochner Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -74,6 +74,13 @@
__ssp_bos_icheck2_restrict(strcat, char *, const char *)
__ssp_bos_icheck3_restrict(strncpy, char *, const char *)
__ssp_bos_icheck3_restrict(strncat, char *, const char *)
+void *__memcpy_chk(void *, const void *, size_t, size_t);
+void *__memmove_chk(void *, void *, size_t, size_t);
+void *__memset_chk(void *, int, 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);
+char *__strncpy_chk(char *, const char *, size_t, size_t);
__END_DECLS
#define memcpy(dst, src, len) __ssp_bos_check3(memcpy, dst, src, len)
Home |
Main Index |
Thread Index |
Old Index