Searched refs:link_file (Results 1 – 2 of 2) sorted by relevance
/freebsd/tests/sys/cddl/zfs/tests/ctime/ |
H A D | ctime_001_pos.c | 265 char link_file[BUFSIZ] = { 0 }; in do_link() local 266 char *ptr = link_file; in do_link() 276 snprintf(link_file, sizeof (link_file), "%s", pfile); in do_link() 277 ptr = strrchr(link_file, '/'); in do_link() 279 sizeof (link_file) - (ptr + 1 - link_file), "link_file"); in do_link() 281 if (link(pfile, link_file) == -1) { in do_link() 285 fprintf(stderr, "link(%s, %s)\n", pfile, link_file); in do_link() 289 unlink(link_file); in do_link()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | ctime.c | 158 char link_file[BUFSIZ + 16] = { 0 }; in do_link() local 168 (void) snprintf(link_file, sizeof (link_file), in do_link() 171 if (link(pfile, link_file) == -1) { in do_link() 173 pfile, link_file, errno); in do_link() 177 (void) unlink(link_file); in do_link()
|