1 .. -*- coding: utf-8; mode: rst -*-
12 media-close - Close a media device
23 .. c:function:: int close( int fd )
30 File descriptor returned by :c:func:`open() <mc-open>`.
36 Closes the media device. Resources associated with the file descriptor
37 are freed. The device configuration remain unchanged.
43 :ref:`close() <media-func-close>` returns 0 on success. On error, -1 is returned, and
44 ``errno`` is set appropriately. Possible error codes are:
47 ``fd`` is not a valid open file descriptor.