/dragonfly/test/stress/stress2/testcases/rename/ |
H A D | rename.c | 103 char file1[128]; in test_rename() local 109 sprintf(file1,"p%05d.%05d", pid, i); in test_rename() 110 if ((tfd = open(file1, O_RDONLY|O_CREAT, 0660)) == -1) in test_rename() 116 sprintf(file1,"p%05d.%05d", 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() 123 sprintf(file1,"p%05d.%05d", 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() 132 sprintf(file1,"p%05d.%05d", pid, i); in test_rename() [all …]
|
/dragonfly/usr.bin/cmp/ |
H A D | cmp.c | 72 const char *file1, *file2; in main() local 108 if (strcmp(file1 = argv[0], "-") == 0) { in main() 111 file1 = "stdin"; in main() 112 } else if ((fd1 = open(file1, oflag, 0)) < 0 && errno != EMLINK) { in main() 114 err(ERR_EXIT, "%s", file1); in main() 140 c_link(file1, skip1, file2, skip2); in main() 148 errx(ERR_EXIT, "%s: Not a symbolic link", file1); in main() 156 err(ERR_EXIT, "%s", file1); 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 50 if ((len1 = readlink(file1, buf1, sizeof(buf1) - 1)) < 0) { in c_link() 52 err(ERR_EXIT, "%s", file1); 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 | 56 c_regular(int fd1, const char *file1, off_t skip1, off_t len1, in c_regular() argument 67 eofmsg(file1); 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() 126 err(ERR_EXIT, "remmap %s", file1); in c_regular() 146 eofmsg (len1 > len2 ? file2 : file1); in c_regular()
|
H A D | special.c | 45 c_special(int fd1, const char *file1, off_t skip1, in c_special() argument 54 err(ERR_EXIT, "%s", file1); in c_special() 81 diffmsg(file1, file2, byte, line); in c_special() 90 err(ERR_EXIT, "%s", file1); in c_special() 95 eofmsg(file1); 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; 76 if ((fd = open(file1, O_RDONLY, 0)) == -1) 77 err(1, "open(%s)(2)", file1); 129 file1 = argv[1]; 133 if ((fd = open(file1, O_CREAT | O_TRUNC | O_RDWR, 0660)) == -1) 134 err(1, "open(%s)", file1); 148 if (unlink(file1) == -1) 149 err(1, "unlink(%s). %s:%d\n", file1, __FILE__, __LINE__);
|
/dragonfly/bin/ln/ |
H A D | ln.c | 172 const char *file1, *file2; in samedirent() local 178 file1 = strrchr(path1, '/'); in samedirent() 179 if (file1 != NULL) in samedirent() 180 file1++; in samedirent() 182 file1 = path1; in samedirent() 188 if (strcmp(file1, file2) != 0) in samedirent() 190 if (file1 - path1 >= PATH_MAX || file2 - path2 >= PATH_MAX) in samedirent() 192 if (file1 == path1) in samedirent() 195 memcpy(pathbuf, path1, file1 - path1); in samedirent() 196 pathbuf[file1 - path1] = '\0'; in samedirent()
|
/dragonfly/contrib/cvs-1.12/src/ |
H A D | lock.c | 86 char *file1; member 317 if (lock->file1) in remove_lock_files() 319 char *tmp = lock->file1; in remove_lock_files() 320 lock->file1 = NULL; in remove_lock_files() 548 global_readlock.file1 = lock_name (xrepository, readlock); in Reader_Lock() 549 if ((fp = CVS_FOPEN (global_readlock.file1, "w+")) == NULL in Reader_Lock() 761 lock->file1 = lock_name (lock->repository, promotablelock); in set_promotable_lock() 767 error (0, errno, "failed to remove lock %s", lock->file1); in set_promotable_lock() 1170 ((struct lock *)p->data)->file1 = NULL; in lock_filesdoneproc() 1273 if (CVS_UNLINK (global_writelock.file1) < 0 in lock_dir_for_write() [all …]
|
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() 531 strcmp (file1, DEVNULL) != 0 && in diff_exec() 536 if (lstat (file1, &sb1) < 0) in diff_exec() 537 error (1, errno, "cannot get file information for %s", file1); in diff_exec() 542 file1 = DEVNULL; in diff_exec() 555 call_diff_add_arg (file1); in diff_exec()
|
H A D | filesubr.c | 567 xcmp (const char *file1, const char *file2) in xcmp() argument 574 if (lstat (file1, &sb1) < 0) in xcmp() 575 error (1, errno, "cannot lstat %s", file1); in xcmp() 589 buf1 = Xreadlink (file1, sb1.st_size); in xcmp() 609 file1, file2); in xcmp() 613 if ((fd1 = open (file1, O_RDONLY)) < 0) in xcmp() 614 error (1, errno, "cannot open file %s for comparing", file1); in xcmp() 641 error (1, errno, "cannot read file %s for comparing", file1); in xcmp()
|
H A D | patch.c | 385 char *file1; in patch_fileproc() local 662 file1 = Xasprintf ("%s:%s", finfo->fullname, vers_tag); in patch_fileproc() 664 file1 = xstrdup (DEVNULL); in patch_fileproc() 675 cvs_output (file1, 0); in patch_fileproc() 681 cvs_output (file1, 0); in patch_fileproc() 688 cvs_output (file1, 0); in patch_fileproc() 694 cvs_output (file1, 0); in patch_fileproc() 712 free (file1); in patch_fileproc()
|
H A D | update.c | 1517 char *file1; in patch_file() local 1580 file1 = Xasprintf ("%s/%s%s-1", CVSADM, CVSPREFIX, finfo->file); in patch_file() 1589 e = CVS_FOPEN (file1, "w"); in patch_file() 1591 error (1, errno, "cannot open %s", file1); in patch_file() 1593 data.filename = file1; in patch_file() 1616 error (1, errno, "cannot close %s", file1); in patch_file() 1677 retcode = diff_exec (file1, file2, NULL, NULL, dargc, dargv, in patch_file() 1783 if (unlink_file (file1) < 0 in patch_file() 1785 error (0, errno, "cannot remove %s", file1); in patch_file() 1791 free (file1); in patch_file()
|
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/gdb-7/gdb/ |
H A D | macrotab.c | 217 compare_locations (struct macro_source_file *file1, int line1, in compare_locations() argument 231 if (! file1) in compare_locations() 243 if (file1 != file2) in compare_locations() 249 int depth1 = inclusion_depth (file1); in compare_locations() 256 line1 = file1->included_at_line; in compare_locations() 257 file1 = file1->included_by; in compare_locations() 271 while (file1 != file2) in compare_locations() 273 line1 = file1->included_at_line; in compare_locations() 274 file1 = file1->included_by; in compare_locations() 287 gdb_assert (file1 && file2); in compare_locations()
|
/dragonfly/usr.sbin/newsyslog/ |
H A D | newsyslog.c | 1678 gen_classiclog_fname(file1, sizeof(file1), archive_dir, namepart, in delete_classiclog() 1816 snprintf(file1, sizeof(file1), "%s/%s.%s", in do_rotate() 1819 snprintf(file1, sizeof(file1), "%s.%s", in do_rotate() 1826 gen_classiclog_fname(file1, sizeof(file1), dirpart, namepart, in do_rotate() 1835 gen_classiclog_fname(file1, sizeof(file1), dirpart, namepart, in do_rotate() 1841 strlcpy(zfile1, file1, MAXPATHLEN); in do_rotate() 1879 file1); in do_rotate() 1885 savelog(ent->log, file1); in do_rotate() 1891 utimes(file1, NULL); in do_rotate() 1893 change_attrs(file1, ent); in do_rotate() [all …]
|
/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() 133 return filename_cmp (* (char const *const *) file1,
|
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; 1630 printf_output ("||||||| %s\n", file1); 1648 type == DIFF_ALL ? file0 : file1); 1712 file0, file1, file2) in output_diff3_merge() argument 1716 char const *file0, *file1, *file2; 1781 printf_output (format_2nd, file1);
|
/dragonfly/contrib/grep/lib/ |
H A D | openat-priv.h | 60 int at_func2 (int fd1, char const *file1, 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 183 char const *const *f1 = file1; 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 1579 fprintf (outputfile, "||||||| %s\n", file1); in output_diff3_edscript() 1595 type == DIFF_ALL ? file0 : file1); in output_diff3_edscript() 1653 char const *file0, char const *file1, char const *file2) in output_diff3_merge() argument 1718 fprintf (outputfile, format_2nd, file1); in output_diff3_merge()
|
/dragonfly/contrib/zstd/programs/ |
H A D | util.h | 163 int UTIL_isSameFile(const char* file1, const char* file2);
|
/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));
|
/dragonfly/crypto/openssh/ |
H A D | sftp.c | 2190 interactive_loop(struct sftp_conn *conn, char *file1, char *file2) in interactive_loop() argument 2239 if (file1 != NULL) { in interactive_loop() 2240 dir = xstrdup(file1); in interactive_loop() 2424 char *file1 = NULL, *sftp_server = NULL; in main() local 2571 switch (parse_uri("sftp", *argv, &user, &host, &tmp, &file1)) { in main() 2582 &file1) == 0) in main() 2638 err = interactive_loop(conn, file1, file2); in main()
|
/dragonfly/contrib/lvm2/dist/scripts/lvm2create_initrd/ |
H A D | lvm2create_initrd.pod | 7 …m.conf> ] [ B<-m|--modules> "I<module1 module2 ...>" ] [ B<-e|--extra> "I<file1 file2 ...>" ] [ B<… 88 =item B<-e|--extra> "I</path/to/file1 /path/to/file2 ...>"
|