af_note(3)

af_note3

Read and modify note attribute

Usage

#include <atfs.h>

in af_snote (Af_key *aso, char *buf)

char *af_rnote (Af_key *aso)

Overview

af_snote sets the given text (in buf) as change note of the specified ASO. Text must be null terminated. af_snote requires a lock (see af_lock(3)) set on the specified ASO.

Af_rnote returns a pointer to the note attribute of the specified ASO. The note text is returned in memory allocated by malloc(3). Use free(3) to make the space available for further allocation.

Diagnostics

Upon error, -1 or a nil pointer (depending on the return type) is returned and af_errno is set to the corresponding error number.

Releases

Unchanged in 13 releases since Debian 2.1 (Slink).

  1. 2.1–12

From atfs-dev 1.4pl6-15+b1 in Debian 12 (Bookworm). Parsed by carta from the page's man source.