Lines Matching refs:fileprefix
32 * - FILEPREFIX: Specifies the directory containing files to serve.
101 * - If not set via the FILEPREFIX environment variable, it defaults to
105 * - Updated at runtime based on the FILEPREFIX environment variable.
108 static char *fileprefix = NULL;
441 * - Constructs the file path using the `fileprefix` directory.
508 snprintf(path, BUF_SIZE, "%s/%s", fileprefix, reqname);
730 * - Reads the FILEPREFIX environment variable to set the file prefix for
750 * - The server serves files from the directory specified by FILEPREFIX.
764 fileprefix = getenv("FILEPREFIX");
765 if (fileprefix == NULL)
766 fileprefix = "./downloads";
768 fprintf(stderr, "Fileprefix is %s\n", fileprefix);