1 .. SPDX-License-Identifier: GFDL-1.1-no-invari 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 2 .. c:namespace:: CEC 2 .. c:namespace:: CEC 3 3 4 .. _cec-func-close: 4 .. _cec-func-close: 5 5 6 *********** 6 *********** 7 cec close() 7 cec close() 8 *********** 8 *********** 9 9 10 Name 10 Name 11 ==== 11 ==== 12 12 13 cec-close - Close a cec device 13 cec-close - Close a cec device 14 14 15 Synopsis 15 Synopsis 16 ======== 16 ======== 17 17 18 .. code-block:: c 18 .. code-block:: c 19 19 20 #include <unistd.h> 20 #include <unistd.h> 21 21 22 .. c:function:: int close( int fd ) 22 .. c:function:: int close( int fd ) 23 23 24 Arguments 24 Arguments 25 ========= 25 ========= 26 26 27 ``fd`` 27 ``fd`` 28 File descriptor returned by :c:func:`open( 28 File descriptor returned by :c:func:`open()`. 29 29 30 Description 30 Description 31 =========== 31 =========== 32 32 33 Closes the cec device. Resources associated wi 33 Closes the cec device. Resources associated with the file descriptor are 34 freed. The device configuration remain unchang 34 freed. The device configuration remain unchanged. 35 35 36 Return Value 36 Return Value 37 ============ 37 ============ 38 38 39 :c:func:`close()` returns 0 on success. On err 39 :c:func:`close()` returns 0 on success. On error, -1 is returned, and 40 ``errno`` is set appropriately. Possible error 40 ``errno`` is set appropriately. Possible error codes are: 41 41 42 ``EBADF`` 42 ``EBADF`` 43 ``fd`` is not a valid open file descriptor 43 ``fd`` is not a valid open file descriptor.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.