table of contents
other versions
- stretch 7.0.0-6+deb9u2
- testing 8.0.2+ds-1
- stretch-backports 7.1.6+ds-1~bpo9+2
- unstable 8.0.3+ds-2
TSINSTALLDIRGET(3ts) | Apache Traffic Server | TSINSTALLDIRGET(3ts) |
NAME¶
TSInstallDirGet - return Traffic Server installation directoriesSYNOPSIS¶
#include <ts/ts.h>- const char * TSInstallDirGet(void)
- const char * TSConfigDirGet(void)
- const char * TSPluginDirGet(void)
- const char * TSRuntimeDirGet(void)
DESCRIPTION¶
TSInstallDirGet() returns the path to the root of the Traffic Server installation. TSConfigDirGet(), TSPluginDirGet() and TSRuntimeDirGet() return the complete, absolute path to the configuration directory, the plugin installation directory and the runtime directory, respectively.RETURN VALUES¶
These functions all return a NUL-terminated string that must not be modified or freed.EXAMPLES¶
To load a file that is located in the Traffic Server configuration directory:#include <ts/ts.h> #include <stdio.h> char * path; asprintf(&path, "%s/example.conf", TSConfigDirGet());
SEE SLSO¶
TSAPI(3ts)COPYRIGHT¶
2019, dev@trafficserver.apache.orgMarch 8, 2019 | 7.1 |