brintos

brintos / linux-shallow public Read only

0
0
Text · 734 B · 8ac2443 Raw
44 lines · plain
1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later2.. c:namespace:: MC3 4.. _media-func-close:5 6*************7media close()8*************9 10Name11====12 13media-close - Close a media device14 15Synopsis16========17 18.. code-block:: c19 20    #include <unistd.h>21 22.. c:function:: int close( int fd )23 24Arguments25=========26 27``fd``28    File descriptor returned by :c:func:`open()`.29 30Description31===========32 33Closes the media device. Resources associated with the file descriptor34are freed. The device configuration remain unchanged.35 36Return Value37============38 39:c:func:`close()` returns 0 on success. On error, -1 is returned, and40``errno`` is set appropriately. Possible error codes are:41 42EBADF43    ``fd`` is not a valid open file descriptor.44