/dragonfly/usr.bin/cmp/ |
H A D | cmp.c | 72 const char *file1, *file2; in main() local 118 if (strcmp(file2 = argv[1], "-") == 0) { in main() 124 file2 = "stdin"; in main() 125 } else if ((fd2 = open(file2, oflag, 0)) < 0 && errno != EMLINK) { in main() 127 err(ERR_EXIT, "%s", file2); in main() 140 c_link(file1, skip1, file2, skip2); in main() 143 errx(ERR_EXIT, "%s: Not a symbolic link", file2); in main() 165 err(ERR_EXIT, "%s", file2); in main() 175 c_special(fd1, file1, skip1, fd2, file2, skip2); in main() 180 file1, file2); in main() [all …]
|
H A D | link.c | 42 c_link(const char *file1, off_t skip1, const char *file2, off_t skip2) in c_link() argument 57 if ((len2 = readlink(file2, buf2, sizeof(buf2) - 1)) < 0) { in c_link() 59 err(ERR_EXIT, "%s", file2); in c_link() 85 diffmsg(file1, file2, byte, 1); in c_link() 92 eofmsg (*p1 ? file2 : file1); in c_link()
|
H A D | regular.c | 57 int fd2, const char *file2, off_t skip2, off_t len2) in c_regular() argument 70 eofmsg(file2); in c_regular() 84 c_special(fd1, file1, skip1, fd2, file2, skip2); in c_regular() 90 c_special(fd1, file1, skip1, fd2, file2, skip2); in c_regular() 117 diffmsg(file1, file2, byte, line); in c_regular() 134 err(ERR_EXIT, "remmap %s", file2); in c_regular() 146 eofmsg (len1 > len2 ? file2 : file1); in c_regular()
|
H A D | special.c | 46 int fd2, const char *file2, off_t skip2) in c_special() argument 56 err(ERR_EXIT, "%s", file2); in c_special() 81 diffmsg(file1, file2, byte, line); in c_special() 92 err(ERR_EXIT, "%s", file2); in c_special() 98 eofmsg(file2); in c_special()
|
H A D | misc.c | 54 diffmsg(const char *file1, const char *file2, off_t byte, off_t line) in diffmsg() argument 58 file1, file2, (intmax_t)byte, (intmax_t)line); in diffmsg()
|
/dragonfly/test/stress/stress2/misc/ |
H A D | kevent5.sh | 64 static char *file1, *file2; 98 if ((fd = open(file2, O_RDONLY, 0)) == -1) 99 err(1, "open(%s)(2)", file2); 130 file2 = argv[2]; 136 if ((fd = open(file2, O_CREAT | O_TRUNC | O_RDWR, 0660)) == -1) 137 err(1, "open(%s)", file2); 151 if (unlink(file2) == -1) 152 err(1, "unlink(%s). %s:%d\n", file2, __FILE__, __LINE__);
|
/dragonfly/bin/ln/ |
H A D | ln.c | 172 const char *file1, *file2; in samedirent() local 183 file2 = strrchr(path2, '/'); in samedirent() 184 if (file2 != NULL) in samedirent() 185 file2++; in samedirent() 187 file2 = path2; in samedirent() 188 if (strcmp(file1, file2) != 0) in samedirent() 190 if (file1 - path1 >= PATH_MAX || file2 - path2 >= PATH_MAX) in samedirent() 200 if (file2 == path2) in samedirent() 203 memcpy(pathbuf, path2, file2 - path2); in samedirent() 204 pathbuf[file2 - path2] = '\0'; in samedirent()
|
/dragonfly/test/stress/stress2/testcases/rename/ |
H A D | rename.c | 104 char file2[128]; in test_rename() local 117 sprintf(file2,"p%05d.%05d.togo", pid, i); in test_rename() 118 if (rename(file1, file2) == -1) in test_rename() 119 err(1, "rename(%s, %s). %s:%d", file1, file2, in test_rename() 124 sprintf(file2,"p%05d.%05d.togo", pid, i); in test_rename() 125 if (rename(file2, file1) == -1) in test_rename() 126 err(1, "rename(%s, %s). %s:%d", file2, file1, in test_rename()
|
/dragonfly/test/stress/stress2/testcases/openat/ |
H A D | openat.c | 115 char file2[128]; in test_renameat() local 125 sprintf(file2,"p%05d.%05d.togo", pid, i); in test_renameat() 126 if (renameat(fd, file, fd, file2) == -1) in test_renameat() 127 err(1, "renameat(%s)", file2); in test_renameat() 129 sprintf(file2,"tmp/p%05d.%05d.togo", pid, i); in test_renameat() 130 if (unlink(file2) == -1) in test_renameat() 131 err(1, "unlink(%s), %s:%d", file2, __FILE__, __LINE__); in test_renameat()
|
/dragonfly/contrib/gdb-7/gdb/ |
H A D | macrotab.c | 218 struct macro_source_file *file2, int line2) in compare_locations() argument 233 if (! file2) in compare_locations() 238 else if (! file2) in compare_locations() 243 if (file1 != file2) in compare_locations() 250 int depth2 = inclusion_depth (file2); in compare_locations() 263 line2 = file2->included_at_line; in compare_locations() 264 file2 = file2->included_by; in compare_locations() 271 while (file1 != file2) in compare_locations() 280 line2 = file2->included_at_line; in compare_locations() 281 file2 = file2->included_by; in compare_locations() [all …]
|
/dragonfly/contrib/cvs-1.12/src/ |
H A D | rcscmds.c | 508 diff_exec (const char *file1, const char *file2, const char *label1, in diff_exec() argument 513 file1, file2, label1, label2, out); in diff_exec() 532 strcmp (file2, DEVNULL) != 0) in diff_exec() 538 if (lstat (file2, &sb2) < 0) in diff_exec() 539 error (1, errno, "cannot get file information for %s", file2); in diff_exec() 544 file2 = DEVNULL; in diff_exec() 556 call_diff_add_arg (file2); in diff_exec()
|
H A D | filesubr.c | 567 xcmp (const char *file1, const char *file2) in xcmp() argument 576 if (lstat (file2, &sb2) < 0) in xcmp() 577 error (1, errno, "cannot lstat %s", file2); in xcmp() 590 buf2 = Xreadlink (file2, sb2.st_size); in xcmp() 609 file1, file2); in xcmp() 615 if ((fd2 = open (file2, O_RDONLY)) < 0) in xcmp() 616 error (1, errno, "cannot open file %s for comparing", file2); in xcmp() 647 error (1, errno, "cannot read file %s for comparing", file2); in xcmp()
|
H A D | lock.c | 88 char *file2; member 326 if (lock->file2) in remove_lock_files() 328 char *tmp = lock->file2; in remove_lock_files() 329 lock->file2 = NULL; in remove_lock_files() 786 lock->file2 = lock_name (lock->repository, readlock); in set_promotable_lock() 787 if ((fp = CVS_FOPEN (lock->file2, "w+")) == NULL || fclose (fp) == EOF) in set_promotable_lock() 791 if ( CVS_UNLINK (lock->file2) < 0 && ! existence_error (errno)) in set_promotable_lock() 792 error (0, errno, "failed to remove lock %s", lock->file2); in set_promotable_lock() 798 lock->file2 = NULL; in set_promotable_lock() 1172 ((struct lock *)p->data)->file2 = NULL; in lock_filesdoneproc()
|
H A D | patch.c | 386 char *file2; in patch_fileproc() local 666 file2 = Xasprintf ("%s:%s", finfo->fullname, in patch_fileproc() 677 cvs_output (file2, 0); in patch_fileproc() 690 cvs_output (file2, 0); in patch_fileproc() 713 free (file2); in patch_fileproc()
|
H A D | update.c | 1518 char *file2; in patch_file() local 1623 e = CVS_FOPEN (file2, "w"); in patch_file() 1625 error (1, errno, "cannot open %s", file2); in patch_file() 1627 data.filename = file2; in patch_file() 1639 error (1, errno, "cannot close %s", file2); in patch_file() 1677 retcode = diff_exec (file1, file2, NULL, NULL, dargc, dargv, in patch_file() 1692 if (stat (file2, &file2_info) < 0) in patch_file() 1693 error (1, errno, "could not stat %s", file2); in patch_file() 1786 if (unlink_file (file2) < 0 in patch_file() 1788 error (0, errno, "cannot remove %s", file2); in patch_file() [all …]
|
H A D | cvs.h | 441 int diff_exec (const char *file1, const char *file2, 549 int xcmp (const char *file1, const char *file2);
|
/dragonfly/contrib/cvs-1.12/diff/ |
H A D | dir.c | 130 compare_names (file1, file2) in compare_names() argument 131 void const *file1, *file2; in compare_names() 134 * (char const *const *) file2);
|
H A D | diff3.c | 1588 output_diff3_edscript (diff, mapping, rev_mapping, file0, file1, file2) in output_diff3_edscript() argument 1591 char const *file0, *file1, *file2; 1637 printf_output (">>>>>>> %s\n", file2); 1712 file0, file1, file2) in output_diff3_merge() argument 1716 char const *file0, *file1, *file2; 1800 printf_output (">>>>>>> %s\n", file2);
|
/dragonfly/contrib/grep/lib/ |
H A D | openat-priv.h | 61 int fd2, char const *file2, 62 int (*func) (char const *file1, char const *file2));
|
/dragonfly/contrib/diffutils/src/ |
H A D | dir.c | 181 compare_names_for_qsort (void const *file1, void const *file2) in compare_names_for_qsort() argument 184 char const *const *f2 = file2; in compare_names_for_qsort()
|
H A D | diff3.c | 1536 char const *file0, char const *file1, char const *file2) in output_diff3_edscript() argument 1586 fprintf (outputfile, ">>>>>>> %s\n", file2); in output_diff3_edscript() 1653 char const *file0, char const *file1, char const *file2) in output_diff3_merge() argument 1737 fprintf (outputfile, ">>>>>>> %s\n", file2); in output_diff3_merge()
|
/dragonfly/contrib/zstd/programs/ |
H A D | util.h | 163 int UTIL_isSameFile(const char* file1, const char* file2);
|
/dragonfly/crypto/openssh/ |
H A D | sftp.c | 2190 interactive_loop(struct sftp_conn *conn, char *file1, char *file2) in interactive_loop() argument 2243 if (remote_is_dir(conn, dir) && file2 == NULL) { in interactive_loop() 2259 file2 == NULL ? "" : " ", in interactive_loop() 2260 file2 == NULL ? "" : file2); in interactive_loop() 2422 char *host = NULL, *user, *cp, **cpp, *file2 = NULL; in main() local 2593 file2 = *(argv + 1); in main() 2638 err = interactive_loop(conn, file1, file2); in main()
|
/dragonfly/contrib/gcc-8.0/libcpp/ |
H A D | files.c | 360 char * file2 = lrealpath (file); in maybe_shorter_path() local 361 if (file2 && strlen (file2) < strlen (file)) in maybe_shorter_path() 363 return file2; in maybe_shorter_path() 367 free (file2); in maybe_shorter_path()
|
/dragonfly/gnu/usr.bin/grep/libgreputils/ |
H A D | stdio.h | 1529 (int fd1, char const *file1, int fd2, char const *file2) 1532 (int fd1, char const *file1, int fd2, char const *file2)); 1536 (int fd1, char const *file1, int fd2, char const *file2) 1540 (int fd1, char const *file1, int fd2, char const *file2));
|