Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpclient Request always_inline for rumpclient__dofo...
details: https://anonhg.NetBSD.org/src/rev/e0e1be24f54b
branches: trunk
changeset: 772072:e0e1be24f54b
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Dec 16 23:19:28 2011 +0000
description:
Request always_inline for rumpclient__dofork, it won't work correctly
for vfork otherwise. Also give it the returns twice attribute to ensure
that the stack tainting is done recursively.
diffstat:
lib/librumpclient/rumpclient.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 50c7650b3182 -r e0e1be24f54b lib/librumpclient/rumpclient.h
--- a/lib/librumpclient/rumpclient.h Fri Dec 16 20:45:07 2011 +0000
+++ b/lib/librumpclient/rumpclient.h Fri Dec 16 23:19:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpclient.h,v 1.10 2011/02/16 22:35:41 tron Exp $ */
+/* $NetBSD: rumpclient.h,v 1.11 2011/12/16 23:19:28 joerg Exp $ */
/*-
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -65,7 +65,7 @@
* vfork needs to be implemented as an inline to make everything
* run in the caller's stackframe.
*/
-static inline pid_t
+static __attribute__((__always_inline__)) __returns_twice inline pid_t
rumpclient__dofork(pid_t (*forkfn)(void))
{
struct rumpclient_fork *rf;
Home |
Main Index |
Thread Index |
Old Index