Lines Matching refs:path
46 gettemp(char *path, isc_boolean_t binary, int *doopen) {
55 trv = strrchr(path, 'X');
68 if (trv <= path)
72 if (stat(path, &sbuf))
86 open(path, flags, _S_IREAD | _S_IWRITE)) >= 0)
90 } else if (stat(path, &sbuf))
112 mkstemp(char *path, isc_boolean_t binary) {
115 return (gettemp(path, binary, &fd) ? fd : -1);
259 isc_file_mktemplate(const char *path, char *buf, size_t buflen) {
260 return (isc_file_template(path, TEMPLATE, buf, buflen));
264 isc_file_template(const char *path, const char *templet, char *buf,
268 REQUIRE(path != NULL);
276 s = strrchr(path, '\\');
279 if ((s - path + 1 + strlen(templet) + 1) > buflen)
282 strncpy(buf, path, s - path + 1);
283 buf[s - path + 1] = '\0';
423 * Look for c:\path\... style, c:/path/... or \\computer\shar\path...
478 * Strip the path from the name
510 isc_file_absolutepath(const char *filename, char *path, size_t pathlen) {
515 REQUIRE(path != NULL);
517 retval = GetFullPathName(filename, pathlen, path, &ptrname);
519 /* Something went wrong in getting the path */