On the first day of each month, the sheriff shall give notice, in writing, to the district or county attorney, where there be one, as to all prisoners in his custody, naming them, and of the authority under which he detains them.
Tex. Code Crim. Proc. § 2.19