head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.05.01.19.43.30; author vins; state Exp; branches; next ; commitid 4FASsrb0KTHCd9EG; desc @@ 1.1 log @net/libnfs: Import libnfs-6.0.2 Packaged in wip by PHO, with some modifications by vins. LIBNFS is a client library for accessing NFS shares over a network. LIBNFS offers three different APIs, for different use: 1, RAW: A fully async low level RPC library for NFS protocols 2, NFS ASYNC: A fully asynchronous library for high level vfs functions 3, NFS SYNC: A synchronous library for high level vfs functions @ text @$NetBSD$ Improve portability: Use of pthread_threadid_np(2) or gettid(2) is never a good idea, especially when pthread_equal(3) suffices. --- lib/libnfs-sync.c.orig 2025-11-14 13:37:44.606850244 +0000 +++ lib/libnfs-sync.c @@@@ -133,7 +133,7 @@@@ nfs_init_cb_data(struct nfs_context **nf struct nfs_thread_context *ntc; for(ntc = (*nfs)->nfsi->thread_ctx; ntc; ntc = ntc->next) { - if (nfs_mt_get_tid() == ntc->tid) { + if (nfs_mt_equal(nfs_mt_get_tid(), ntc->tid)) { break; } } @