.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "TSFWRITE" "3ts" "Jan 06, 2024" "9.2" "Apache Traffic Server" .SH NAME TSfwrite \- TSfwrite API function .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX #include .EE .UNINDENT .UNINDENT .INDENT 0.0 .TP .B ssize_t TSfwrite(\fI\%TSFile\fP filep, const void *buf, size_t length) .UNINDENT .SH DESCRIPTION .sp Attempts to write \fIlength\fP bytes of data from the buffer \fIbuf\fP to the file \fIfilep\fP\&. .sp Make sure that \fIfilep\fP is open for writing. You might want to check the number of bytes written (\fI\%TSfwrite()\fP returns this value) against the value of \fIlength\fP\&. If it is less, there might be insufficient space on disk, for example. .sp The behavior is undefined if length is greater than SSIZE_MAX. .SH RETURN VALUE .sp Returns the number of bytes actually written, or \-1 if an error occurred. .SH COPYRIGHT 2024, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .