# 2.1 `mac` -- Implementations for the `os` module

Availability: Macintosh.

This module implements the Mac OS 9 operating system dependent functionality provided by the standard module `os` . It is best accessed through the `os` module. This module is only available in MacPython-OS9, on MacPython-OSX `posix` is used.

The following functions are available in this module: `chdir()`, `close()`, `dup()`, `fdopen()`, `getcwd()`, `lseek()`, `listdir()`, `mkdir()`, `open()`, `read()`, `rename()`, `rmdir()`, `stat()`, `sync()`, `unlink()`, `write()`, as well as the exception `error`. Note that the times returned by `stat()` are floating-point values, like all time values in MacPython-OS9.