1059b1c5bSMauro Carvalho Chehab.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 2*f9b2e8aaSMauro Carvalho Chehab.. c:namespace:: DTV.ca 354f38fcaSMauro Carvalho Chehab 454f38fcaSMauro Carvalho Chehab.. _ca_fclose: 554f38fcaSMauro Carvalho Chehab 654f38fcaSMauro Carvalho Chehab===================== 754f38fcaSMauro Carvalho ChehabDigital TV CA close() 854f38fcaSMauro Carvalho Chehab===================== 954f38fcaSMauro Carvalho Chehab 1054f38fcaSMauro Carvalho ChehabName 1154f38fcaSMauro Carvalho Chehab---- 1254f38fcaSMauro Carvalho Chehab 1354f38fcaSMauro Carvalho ChehabDigital TV CA close() 1454f38fcaSMauro Carvalho Chehab 1554f38fcaSMauro Carvalho ChehabSynopsis 1654f38fcaSMauro Carvalho Chehab-------- 1754f38fcaSMauro Carvalho Chehab 1854f38fcaSMauro Carvalho Chehab.. c:function:: int close(int fd) 1954f38fcaSMauro Carvalho Chehab 2054f38fcaSMauro Carvalho ChehabArguments 2154f38fcaSMauro Carvalho Chehab--------- 2254f38fcaSMauro Carvalho Chehab 2354f38fcaSMauro Carvalho Chehab``fd`` 24*f9b2e8aaSMauro Carvalho Chehab File descriptor returned by a previous call to :c:func:`open()`. 2554f38fcaSMauro Carvalho Chehab 2654f38fcaSMauro Carvalho ChehabDescription 2754f38fcaSMauro Carvalho Chehab----------- 2854f38fcaSMauro Carvalho Chehab 2954f38fcaSMauro Carvalho ChehabThis system call closes a previously opened CA device. 3054f38fcaSMauro Carvalho Chehab 3154f38fcaSMauro Carvalho ChehabReturn Value 3254f38fcaSMauro Carvalho Chehab------------ 3354f38fcaSMauro Carvalho Chehab 3454f38fcaSMauro Carvalho ChehabOn success 0 is returned. 3554f38fcaSMauro Carvalho Chehab 3654f38fcaSMauro Carvalho ChehabOn error -1 is returned, and the ``errno`` variable is set 3754f38fcaSMauro Carvalho Chehabappropriately. 3854f38fcaSMauro Carvalho Chehab 3954f38fcaSMauro Carvalho ChehabGeneric error codes are described at the 4054f38fcaSMauro Carvalho Chehab:ref:`Generic Error Codes <gen-errors>` chapter. 41