Lines Matching defs:templet
264 isc_file_template(const char *path, const char *templet, char *buf,
269 REQUIRE(templet != NULL);
272 s = strrchr(templet, '\\');
274 templet = s + 1;
279 if ((s - path + 1 + strlen(templet) + 1) > buflen)
284 strcat(buf, templet);
286 if ((strlen(templet) + 1) > buflen)
289 strcpy(buf, templet);
296 isc_file_renameunique(const char *file, char *templet) {
302 REQUIRE(templet != NULL);
304 fd = mkstemp(templet, ISC_TRUE);
311 res = isc_file_safemovefile(file, templet);
314 (void)unlink(templet);
321 openuniquemode(char *templet, int mode, isc_boolean_t binary, FILE **fp) {
326 REQUIRE(templet != NULL);
332 fd = mkstemp(templet, binary);
345 (void)remove(templet);
355 isc_file_openunique(char *templet, FILE **fp) {
357 return (openuniquemode(templet, mode, ISC_FALSE, fp));
361 isc_file_bopenunique(char *templet, FILE **fp) {
363 return (openuniquemode(templet, mode, ISC_TRUE, fp));