Module Name:    src
Committed By:   christos
Date:           Mon Sep 23 22:38:59 UTC 2024

Modified Files:
        src/lib/libc/thread-stub: thread-stub.c

Log Message:
Add weak aliases for methods used by the new jemalloc. Co-opt the mutex
catchall for now for it.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 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.32 src/lib/libc/thread-stub/thread-stub.c:1.33
--- src/lib/libc/thread-stub/thread-stub.c:1.32	Tue Apr 19 16:32:16 2022
+++ src/lib/libc/thread-stub/thread-stub.c	Mon Sep 23 18:38:59 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: thread-stub.c,v 1.32 2022/04/19 20:32:16 rillig Exp $	*/
+/*	$NetBSD: thread-stub.c,v 1.33 2024/09/23 22:38:59 christos 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.32 2022/04/19 20:32:16 rillig Exp $");
+__RCSID("$NetBSD: thread-stub.c,v 1.33 2024/09/23 22:38:59 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -91,6 +91,9 @@ pthread_detach(pthread_t thread)
 	return ESRCH;
 }
 
+__weak_alias(pthread_setname_np, __libc_mutex_catchall_stub)
+__weak_alias(pthread_setaffinity_np, __libc_mutex_catchall_stub)
+
 /* mutexes */
 
 int __libc_mutex_catchall_stub(mutex_t *);

Reply via email to