Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread make the code more re-usable
details: https://anonhg.NetBSD.org/src/rev/c90c49cae434
branches: trunk
changeset: 761413:c90c49cae434
user: christos <christos%NetBSD.org@localhost>
date: Wed Jan 26 18:48:57 2011 +0000
description:
make the code more re-usable
diffstat:
lib/libpthread/pthread_cancelstub.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r 500c4f2596eb -r c90c49cae434 lib/libpthread/pthread_cancelstub.c
--- a/lib/libpthread/pthread_cancelstub.c Wed Jan 26 18:48:51 2011 +0000
+++ b/lib/libpthread/pthread_cancelstub.c Wed Jan 26 18:48:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_cancelstub.c,v 1.30 2011/01/26 18:11:35 christos Exp $ */
+/* $NetBSD: pthread_cancelstub.c,v 1.31 2011/01/26 18:48:57 christos Exp $ */
/*-
* Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_cancelstub.c,v 1.30 2011/01/26 18:11:35 christos Exp $");
+__RCSID("$NetBSD: pthread_cancelstub.c,v 1.31 2011/01/26 18:48:57 christos Exp $");
#ifndef lint
@@ -474,15 +474,15 @@
#define STUB(fun) __ssp_weak_name(fun)
ssize_t _sys_readlink(const char * __restrict, char * __restrict, size_t);
ssize_t
-_cancelstub_readlink(const char * __restrict path, char * __restrict buf,
+STUB(readlink)(const char * __restrict path, char * __restrict buf,
size_t bufsiz)
{
return _sys_readlink(path, buf, bufsiz);
}
-char * _sys_getcwd(char *, size_t);
+char *_sys_getcwd(char *, size_t);
char *
-_cancelstub_getcwd(char *buf, size_t size)
+STUB(getcwd)(char *buf, size_t size)
{
return _sys_getcwd(buf, size);
}
Home |
Main Index |
Thread Index |
Old Index