This module provides access to operating system functionality that is standardized by the C Standard and the POSIX standard (a thinly disguised <#3#><#3#> interface).
<#4#>Do not import this module directly.<#4#> Instead, import the module <#5#>os<#5#>, which provides a portable version of this interface. On <#7#><#7#>, the <#8#>os<#8#> module provides a superset of the <#9#>posix<#9#> interface. On non-<#10#><#10#> operating systems the <#11#>posix<#11#> module is not available, but a subset is always available through the <#12#>os<#12#> interface. Once <#13#>os<#13#> is imported, there is no performance penalty in using it instead of <#15#>posix<#15#>. <#16#>os<#16#>
The descriptions below are very terse; refer to the corresponding <#17#><#17#> manual entry for more information. Arguments called <#18#>path<#18#> refer to a pathname given as a string.
Errors are reported as exceptions; the usual exceptions are given for type errors, while errors reported by the system calls raise <#19#>posix.error<#19#>, described below.
Module <#20#>posix<#20#> defines the following data items:
It defines the following functions and constants: