TSfread - TSfread API function
Contents
Copyright
2025, dev@trafficserver.apache.org
9.2 May 22, 2025 TSFREAD(3ts)
Description
Attempts to read length bytes of data from the file pointed to by filep into the buffer buf. The behavior
is undefined if length is greater than SSIZE_MAX.
Name
TSfread - TSfread API function
Return Value
Returns the number of bytes read on success, or -1 on failure.
Synopsis
#include <ts/ts.h>
ssize_tTSfread(TSFilefilep,void*buf,size_tlength)