Home
last modified time | relevance | path

Searched refs:srcpath (Results 1 – 4 of 4) sorted by relevance

/freebsd/usr.bin/localedef/
H A Dlocaledef.c156 char srcpath[PATH_MAX]; in copy_category() local
159 (void) snprintf(srcpath, sizeof (srcpath), "%s/%s", in copy_category()
161 rv = access(srcpath, R_OK); in copy_category()
162 if ((rv != 0) && (strchr(srcpath, '/') == NULL)) { in copy_category()
164 (void) snprintf(srcpath, sizeof (srcpath), in copy_category()
166 rv = access(srcpath, R_OK); in copy_category()
184 if (link(srcpath, category_file()) != 0) { in copy_category()
/freebsd/contrib/pkgconf/libpkgconf/
H A Dpath.c315 pkgconf_path_t *srcpath = n->data, *path; in pkgconf_path_copy_list() local
321 path->path = strdup(srcpath->path); in pkgconf_path_copy_list()
329 path->handle_path = srcpath->handle_path; in pkgconf_path_copy_list()
330 path->handle_device = srcpath->handle_device; in pkgconf_path_copy_list()
355 pkgconf_path_t *srcpath = n->data, *path; in pkgconf_path_prepend_list() local
361 path->path = strdup(srcpath->path); in pkgconf_path_prepend_list()
369 path->handle_path = srcpath->handle_path; in pkgconf_path_prepend_list()
370 path->handle_device = srcpath->handle_device; in pkgconf_path_prepend_list()
/freebsd/contrib/libarchive/cpio/
H A Dcpio.c703 file_to_archive(struct cpio *cpio, const char *srcpath) in file_to_archive() argument
716 archive_entry_copy_sourcepath(entry, srcpath); in file_to_archive()
747 len = cpio->destdir_len + strlen(srcpath) + 8; in file_to_archive()
760 strcat(cpio->pass_destpath, remove_leading_slash(srcpath)); in file_to_archive()
763 archive_entry_set_pathname(entry, srcpath); in file_to_archive()
798 const char *srcpath = archive_entry_sourcepath(entry); in entry_to_archive() local
828 archive_entry_set_hardlink(t, srcpath); in entry_to_archive()
854 fd = open(srcpath, O_RDONLY | O_BINARY); in entry_to_archive()
857 "%s: could not open file", srcpath); in entry_to_archive()
870 srcpath, in entry_to_archive()
[all …]
/freebsd/contrib/pkgconf/tests/
H A Dtest-runner.c1009 pkgconf_buffer_t srcpath = PKGCONF_BUFFER_INITIALIZER; in run_setup() local
1010 pkgconf_buffer_append(&srcpath, pkgconf_buffer_str(&test_fixtures_dir)); in run_setup()
1011 pkgconf_buffer_push_byte(&srcpath, '/'); in run_setup()
1012 pkgconf_buffer_append(&srcpath, left); in run_setup()
1014 bool ok = copy_file(right, pkgconf_buffer_str(&srcpath)); in run_setup()
1015 pkgconf_buffer_finalize(&srcpath); in run_setup()