Lines Matching defs:path
48 gettemp(char *path, int *doopen) {
53 trv = strrchr(path, 'X');
66 if (trv <= path)
70 if (stat(path, &sbuf))
84 open(path, O_CREAT|O_EXCL|O_RDWR,
89 } else if (stat(path, &sbuf))
111 mkstemp(char *path) {
114 return (gettemp(path, &fd) ? fd : -1);
258 isc_file_mktemplate(const char *path, char *buf, size_t buflen) {
259 return (isc_file_template(path, TEMPLATE, buf, buflen));
263 isc_file_template(const char *path, const char *templet, char *buf,
267 REQUIRE(path != NULL);
275 s = strrchr(path, '\\');
278 if ((s - path + 1 + strlen(templet) + 1) > buflen)
281 strncpy(buf, path, s - path + 1);
282 buf[s - path + 1] = '\0';
422 * Look for c:\path\... style, c:/path/... or \\computer\shar\path...
477 * Strip the path from the name
509 isc_file_absolutepath(const char *filename, char *path, size_t pathlen) {
514 REQUIRE(path != NULL);
516 retval = GetFullPathName(filename, pathlen, path, &ptrname);
518 /* Something went wrong in getting the path */
582 isc_file_splitpath(isc_mem_t *mctx, char *path, char **dirname, char **basename)
587 slash = strrchr(path, '/');
589 backslash = strrchr(path, '\\');
594 if (slash == path) {
599 dir = isc_mem_allocate(mctx, slash - path);
601 strlcpy(dir, path, slash - path);
603 file = path;