error_temp(3)

error_temp3

Identify soft syscall error codes

Usage

#include <error.h>

int error_temp(e);

int e;

Overview

error_temp returns 1 if syscall error code e is a soft error, 0 if it is a hard error. Normally e is errno.

A hard error is persistent: file not found, read-only file system, symbolic link loop, etc.

A soft error is usually transient: out of memory, out of disk space, I/O error, disk quota exceeded, connection refused, host unreachable, etc.

Releases

Unchanged in 4 releases since Debian 7 (Wheezy).

  1. 7–10

From qmail 1.06-6.2~deb10u1 in Debian 10 (Buster). Parsed by carta from the page's man source.