Lines Matching defs:templet
228 isc_file_template(const char *path, const char *templet, char *buf,
232 REQUIRE(templet != NULL);
239 s = strrchr(templet, '/');
241 templet = s + 1;
248 if ((prefixlen + strlen(templet) + 1) > buflen) {
254 strlcat(buf, templet, buflen);
256 if ((strlen(templet) + 1) > buflen) {
260 strlcpy(buf, templet, buflen);
270 isc_file_renameunique(const char *file, char *templet) {
275 REQUIRE(templet != NULL);
277 cp = templet;
281 if (cp == templet) {
286 while (cp >= templet && *cp == 'X') {
290 while (link(file, templet) == -1) {
317 isc_file_openunique(char *templet, FILE **fp) {
319 return isc_file_openuniquemode(templet, mode, fp);
323 isc_file_openuniqueprivate(char *templet, FILE **fp) {
325 return isc_file_openuniquemode(templet, mode, fp);
329 isc_file_openuniquemode(char *templet, int mode, FILE **fp) {
336 REQUIRE(templet != NULL);
339 cp = templet;
343 if (cp == templet) {
348 while (cp >= templet && *cp == 'X') {
353 while ((fd = open(templet, O_RDWR | O_CREAT | O_EXCL, mode)) == -1) {
374 if (remove(templet) < 0) {
377 "remove '%s': failed", templet);