.\" Man page generated from reStructuredText. . .TH "TSINSTALLDIRGET" "3ts" "Mar 08, 2019" "7.1" "Apache Traffic Server" .SH NAME TSInstallDirGet \- return Traffic Server installation directories . .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 .. .SH SYNOPSIS .sp \fI#include \fP .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 .nf .ft C #include #include char * path; asprintf(&path, "%s/example.conf", TSConfigDirGet()); .ft P .fi .UNINDENT .UNINDENT .SH SEE SLSO .sp \fBTSAPI(3ts)\fP .SH COPYRIGHT 2019, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .