form_variables(3)

form_variables3

Form system global variables

Usage

#include <form.h>

FIELDTYPE * TYPE_ALNUM; FIELDTYPE * TYPE_ALPHA; FIELDTYPE * TYPE_ENUM; FIELDTYPE * TYPE_INTEGER; FIELDTYPE * TYPE_IPV4; FIELDTYPE * TYPE_NUMERIC; FIELDTYPE * TYPE_REGEXP;

Overview

These are building blocks for the form library, defining fields that can be created using the form_fieldtype(3X) functions. Each provides functions for field- and character-validation, according to the given datatype.

Type_alnum

This holds alphanumeric data.

Type_alpha

This holds alphabetic data.

Type_enum

This holds an enumerated type.

Type_integer

This holds a decimal integer.

TYPE_IPV4

This holds an IPv4 internet address, e.g., "127.0.0.1".

Type_numeric

This holds a decimal number, with optional sign and decimal point.

Type_regexp

This holds a regular expression.

Portability

The TYPE_IPV4 variable is an extension not provided by older implementations of the form library.

Releases

25 releases since FreeBSD 11.0-RELEASE; the text changed 3 times.

  1. 11.0–12.4
  2. 13.0–13.5
  3. 14.0–14.1
  4. 14.2–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's man source.