Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include handle ssp
details: https://anonhg.NetBSD.org/src/rev/4f767a541209
branches: trunk
changeset: 762152:4f767a541209
user: christos <christos%NetBSD.org@localhost>
date: Wed Feb 16 19:29:35 2011 +0000
description:
handle ssp
diffstat:
include/rmt.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r cdc8ed646fa6 -r 4f767a541209 include/rmt.h
--- a/include/rmt.h Wed Feb 16 19:26:58 2011 +0000
+++ b/include/rmt.h Wed Feb 16 19:29:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rmt.h,v 1.6 2010/08/31 05:12:35 enami Exp $ */
+/* $NetBSD: rmt.h,v 1.7 2011/02/16 19:29:35 christos Exp $ */
/*
* rmt.h
@@ -19,6 +19,11 @@
#include <sys/cdefs.h>
+#if _FORTIFY_SOURCE > 0
+#define __ssp_weak_name(x) rmt ## x
+#include <ssp/unistd.h>
+#endif
+
__BEGIN_DECLS
int isrmt(int);
int rmtaccess(const char *, int);
@@ -49,7 +54,9 @@
#define lseek rmtlseek
#define lstat rmtlstat
#define open rmtopen
+#if __SSP_FORTIFY_LEVEL == 0
#define read rmtread
+#endif
#define stat rmtstat
#define write rmtwrite
#endif /* __RMTLIB_PRIVATE */
Home |
Main Index |
Thread Index |
Old Index