Module Name: src Committed By: kamil Date: Mon Oct 31 18:10:11 UTC 2016
Modified Files: src/lib/libc/thread-stub: thread-stub.c Log Message: Add CHECK_NOT_THREADED() in __libc_mutexattr_settype_stub() This makes this function consistent with __libc_mutex_catchall_stub() and others in the same group. Approved by <christos>. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/lib/libc/thread-stub/thread-stub.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/thread-stub/thread-stub.c diff -u src/lib/libc/thread-stub/thread-stub.c:1.27 src/lib/libc/thread-stub/thread-stub.c:1.28 --- src/lib/libc/thread-stub/thread-stub.c:1.27 Tue May 28 17:29:41 2013 +++ src/lib/libc/thread-stub/thread-stub.c Mon Oct 31 18:10:11 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: thread-stub.c,v 1.27 2013/05/28 17:29:41 christos Exp $ */ +/* $NetBSD: thread-stub.c,v 1.28 2016/10/31 18:10:11 kamil Exp $ */ /*- * Copyright (c) 2003, 2009 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: thread-stub.c,v 1.27 2013/05/28 17:29:41 christos Exp $"); +__RCSID("$NetBSD: thread-stub.c,v 1.28 2016/10/31 18:10:11 kamil Exp $"); #endif /* LIBC_SCCS and not lint */ /* @@ -146,6 +146,8 @@ __libc_mutexattr_settype_stub(mutexattr_ /* LINTED deliberate lack of effect */ (void)type; + CHECK_NOT_THREADED(); + return (0); }