[go: up one dir, main page]

Module posix

Module posix 

Source
Expand description

Iterate over lines, including the line ending character(s).

This module provides the posix_version function, that returns Some(usize) if the _POSIX2_VERSION environment variable is defined and has value that can be parsed. Otherwise returns None, so the calling utility would assume default behavior.

NOTE: GNU (as of v9.4) recognizes three distinct values for POSIX version

Utilities that rely on this module: sort (TBD) tail (TBD) touch (TBD) uniq

Constants§

MODERN
‘200809’ for POSIX 1003.1-2008, which is the minimum version for Modern mode
OBSOLETE
‘199209’ for POSIX 1003.2-1992, which would define Obsolete mode
TRADITIONAL
‘200112’ for POSIX 1003.1-2001, which is the minimum version for Traditional mode

Functions§

posix_version
Returns the value of the _POSIX2_VERSION environment variable if it is defined