Lines Matching defs:path
91 local gzFile gz_open(path, fd, mode)
92 const void *path;
107 if (path == NULL)
190 /* save the path name for error messages */
193 len = wcstombs(NULL, path, 0);
199 len = strlen((const char *)path);
200 state->path = (char *)malloc(len + 1);
201 if (state->path == NULL) {
208 wcstombs(state->path, path, len + 1);
210 *(state->path) = 0;
214 snprintf(state->path, len + 1, "%s", (const char *)path);
216 strcpy(state->path, path);
243 fd == -2 ? _wopen(path, oflag, 0666) :
245 open((const char *)path, oflag, 0666));
247 free(state->path);
268 gzFile ZEXPORT gzopen(path, mode)
269 const char *path;
272 return gz_open(path, -1, mode);
276 gzFile ZEXPORT gzopen64(path, mode)
277 const char *path;
280 return gz_open(path, -1, mode);
288 char *path; /* identifier for error messages */
291 if (fd == -1 || (path = (char *)malloc(7 + 3 * sizeof(int))) == NULL)
294 snprintf(path, 7 + 3 * sizeof(int), "<fd:%d>", fd); /* for debugging */
296 sprintf(path, "<fd:%d>", fd); /* for debugging */
298 gz = gz_open(path, fd, mode);
299 free(path);
305 gzFile ZEXPORT gzopen_w(path, mode)
306 const wchar_t *path;
309 return gz_open(path, -2, mode);
600 /* construct error message with path */
601 if ((state->msg = (char *)malloc(strlen(state->path) + strlen(msg) + 3)) ==
607 snprintf(state->msg, strlen(state->path) + strlen(msg) + 3,
608 "%s%s%s", state->path, ": ", msg);
610 strcpy(state->msg, state->path);