.\" 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 "TSINSTALLDIRGET" "3ts" "Jan 06, 2024" "9.2" "Apache Traffic Server" .SH NAME TSInstallDirGet \- return Traffic Server installation directories .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX #include .EE .UNINDENT .UNINDENT .INDENT 0.0 .TP .B const char *TSInstallDirGet(void) .UNINDENT .INDENT 0.0 .TP .B const char *TSConfigDirGet(void) .UNINDENT .INDENT 0.0 .TP .B const char *TSPluginDirGet(void) .UNINDENT .INDENT 0.0 .TP .B const char *TSRuntimeDirGet(void) .UNINDENT .SH DESCRIPTION .sp \fI\%TSInstallDirGet()\fP returns the path to the root of the Traffic Server installation. \fI\%TSConfigDirGet()\fP, \fI\%TSPluginDirGet()\fP and \fI\%TSRuntimeDirGet()\fP return the complete, absolute path to the configuration directory, the plugin installation directory and the runtime directory, respectively. .SH RETURN VALUES .sp These functions all return a NUL\-terminated string that must not be modified or freed. .SH EXAMPLES .sp To load a file that is located in the Traffic Server configuration directory: .INDENT 0.0 .INDENT 3.5 .sp .EX #include #include char * path; asprintf(&path, \(dq%s/example.conf\(dq, TSConfigDirGet()); .EE .UNINDENT .UNINDENT .SH SEE ALSO .sp \fBTSAPI(3ts)\fP .SH COPYRIGHT 2024, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .