---
name: "pthread_setname_np"
section: "3"
platform: "macos"
package: "libpthread"
version: "539.100.4"
release: "macOS 26.5"
platforms: ["linux", "freebsd", "macos"]
url: "https://new.carta.tech/pthread_setname_np"
---

# pthread\_setname\_np(3)

set the thread name

## NAME

**pthread\_setname\_np** – set the thread name

## SYNOPSIS

**#include \<pthread.h\>**

*void*\

**pthread\_setname\_np**(*const char \*name*);

## DESCRIPTION

The **pthread\_setname\_np**() function sets the internal name for the calling thread to string value specified by *name* argument.

## AUTHORS

This manual page was written by Alexey Zelkin ⟨*phantom@FreeBSD.org*⟩.
