ixp_namespace(3)

ixp_namespace3

Usage

#include <ixp.h>
char *ixp_namespace(void);

Overview

Returns the path of the canonical 9p namespace directory. Either the value of $NAMESPACE, if it's set, or, roughly, /tmp/ns.${USER}.${DISPLAY:%.0=%}. In the latter case, the directory is created if it doesn't exist, and it is ensured to be owned by the current user, with no group or other permissions.

Return value

A statically allocated string which must not be freed or altered by the caller. The same value is returned upon successive calls.

Releases

Unchanged in 4 releases since Debian 8 (Jessie).

  1. 8–11

Bugs

This function is not thread safe until after its first call.

From libixp-dev 0.6~20121202+hg148-5 in Debian 11 (Bullseye). Parsed by carta from the page's man source.