Home | History | Annotate | Download | only in util

Lines Matching full:path

1273 NEOERR *hdf_write_file (HDF *hdf, const char *path)
1278 fp = fopen(path, "w");
1280 return nerr_raise_errno (NERR_IO, "Unable to open %s for writing", path);
1287 unlink(path);
1292 NEOERR *hdf_write_file_atomic (HDF *hdf, const char *path)
1299 snprintf(tpath, sizeof(tpath), "%s.%5.5f.%d", path, ne_timef(), count++);
1314 if (rename(tpath, path) == -1)
1318 tpath, path);
1559 const char *path, int *lineno, int include_handle)
1599 return nerr_pass_ctx(err, "In file %s:%d", path, *lineno);
1613 "[%s:%d] Trailing garbage on line following }: %s", path, *lineno,
1634 return nerr_pass_ctx(err, "In file %s:%d", path, *lineno);
1647 return nerr_pass_ctx(err, "In file %s:%d", path, *lineno);
1660 return nerr_pass_ctx(err, "In file %s:%d", path, *lineno);
1672 return nerr_pass_ctx(err, "In file %s:%d", path, *lineno);
1690 return nerr_pass_ctx(err, "In file %s:%d", path, *lineno);
1692 err = _hdf_read_string (lower, str, line, path, lineno, include_handle);
1695 return nerr_pass_ctx(err, "In file %s:%d", path, *lineno);
1713 "[%s:%d] No multi-assignment terminator given: %s", path, *lineno,
1722 path, *lineno, name);
1741 path, *lineno, name, mmax);
1749 return nerr_pass_ctx(err, "In file %s:%d", path, *lineno);
1755 err = nerr_raise(NERR_PARSE, "[%s:%d] Unable to parse line %s", path,
1787 /* The search path is part of the HDF by convention */
1788 NEOERR* hdf_search_path (HDF *hdf, const char *path, char *full)
1797 snprintf (full, _POSIX_PATH_MAX, "%s/%s", hdf_obj_value(paths), path);
1810 strncpy (full, path, _POSIX_PATH_MAX);
1818 return nerr_raise (NERR_NOT_FOUND, "Path %s not found", path);
1821 NEOERR* hdf_read_file (HDF *hdf, const char *path)
1833 if (path == NULL)
1838 err = top->fileload(top->fileload_ctx, hdf, path, &ibuf);
1842 if (path[0] != '/')
1844 err = hdf_search_path (hdf, path, fpath);
1846 path = fpath;
1849 err = ne_load_file (path, &ibuf);
1854 err = _hdf_read_string(hdf, &ptr, &line, path, &lineno, INCLUDE_FILE);