ca-fclose.rst 652 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2. .. c:namespace:: DTV.ca
  3. .. _ca_fclose:
  4. =====================
  5. Digital TV CA close()
  6. =====================
  7. Name
  8. ----
  9. Digital TV CA close()
  10. Synopsis
  11. --------
  12. .. c:function:: int close(int fd)
  13. Arguments
  14. ---------
  15. ``fd``
  16. File descriptor returned by a previous call to :c:func:`open()`.
  17. Description
  18. -----------
  19. This system call closes a previously opened CA device.
  20. Return Value
  21. ------------
  22. On success 0 is returned.
  23. On error -1 is returned, and the ``errno`` variable is set
  24. appropriately.
  25. Generic error codes are described at the
  26. :ref:`Generic Error Codes <gen-errors>` chapter.