Lines Matching defs:path
77 char *path = NULL;
88 path = malloc(plen + 1);
89 if (path == NULL) {
94 (void) strncpy(path, LDMA_HDR2DATA(request), plen);
95 path[plen] = '\0';
97 LDMA_DBG("VALIDATE_PATH(%s)", path);
111 /* check if path exists */
112 if (stat(path, &st) != 0) {
115 path, errno);
124 /* path is inaccessible, the request is completed */
145 LDMA_DBG("VALIDATE_PATH(%s): file mode = 0x%lx", path, st.st_mode);
163 /* check if path can be opened read/write */
164 if ((fd = open(path, O_RDWR)) != -1) {
169 path, errno);
171 /* check if path can be opened read only */
172 if ((fd = open(path, O_RDONLY)) != -1) {
177 "with error %d", path, errno);
193 (path)? path : "<none>", status);
196 path, reply->msg_info, *path_type);
199 free(path);