| /src/usr.bin/cmp/ |
| cmp.c | 70 const char *file1, *file2; local 100 if (strcmp(file1 = argv[0], "-") == 0) { 103 file1 = "stdin"; 105 else if ((fd1 = open(file1, O_RDONLY, 0)) < 0) { 107 warn("%s", file1); 141 err(ERR_EXIT, "%s", file1); 153 c_special(fd1, file1, skip1, fd2, file2, skip2); 155 c_regular(fd1, file1, skip1, sb1.st_size, 165 "Usage: %s [-c] [-l | -s] file1 file2 [skip1 [skip2]]\n",
|
| /src/external/bsd/libarchive/dist/libarchive/test/ |
| test_read_format_lha.c | 47 cat > ${base}/file1 << END 66 (cd ${base}/dir2; ln -s ../file1 symlink1) 68 (cd ${base}; chown ${owner}:${group} dir file1 file2) 73 (cd ${base}; chmod 0644 file1) 77 TZ=utc touch -afhm -t 197001020000.01 ${base}/file1 ${base}/file2 83 (cd ${base}; lha c0q ${lha0} dir file1 file2 dir2) 86 (cd ${base}; lha c1q ${lha1} dir file1 file2 dir2) 89 (cd ${base}; lha c2q ${lha2} dir file1 file2 dir2) 92 (cd ${base}; lha co6q ${lha3} dir file1 file2 dir2) 95 (cd ${base}; lha co7q ${lha4} dir file1 file2 dir2) 116 static const char file1[] = { variable [all...] |
| test_read_format_cab.c | 62 cat > ${base}/dir1/file1 << END 94 dir1/file1 108 dir1/file1 122 dir1/file1 142 del empty zero dir1\file1 dir2\file2 mkcab1 mkcab2 mkcab3 mkcab4 148 (cd ${base}; zip -q -c $f empty zero dir1/file1 dir2/file2 mkcab1 mkcab2 mkcab3 mkcab4 cab.bat) 153 static const char file1[] = { variable 159 #define file1_size (sizeof(file1)-1) 230 /* Verify regular file1. */ 233 assertEqualString("dir1/file1", archive_entry_pathname(ae)) [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/ |
| makejournal.c | 88 char *origin, *file1, *file2, *journal; local 94 printf("usage: %s origin file1 file2 journal\n", argv[0]); 99 file1 = argv[2]; 124 result = loadzone(&olddb, origin, file1); 126 fprintf(stderr, "Couldn't load %s: ", file1);
|
| /src/bin/ln/ |
| ln.c | 190 const char *file1, *file2; local 196 file1 = strrchr(path1, '/'); 197 if (file1 != NULL) 198 file1++; 200 file1 = path1; 206 if (strcmp(file1, file2) != 0) 208 if (file1 - path1 >= PATH_MAX || file2 - path2 >= PATH_MAX) 210 if (file1 == path1) 213 memcpy(pathbuf, path1, file1 - path1); 214 pathbuf[file1 - path1] = '\0' [all...] |
| /src/usr.bin/error/ |
| input.c | 402 char *file1 = NULL, *file2 = NULL; local 422 && persperdexplode(cur_wordv[cur_wordc-2], &line1, &file1)) { 425 nwordv1[0] = file1; 436 free(file1);
|
| /src/external/gpl2/xcvs/dist/src/ |
| patch.c | 394 char *file1; local 714 file1 = Xasprintf ("%s:%s", finfo->fullname, vers_tag); 716 file1 = xstrdup (DEVNULL); 727 cvs_output (file1, 0); 733 cvs_output (file1, 0); 740 cvs_output (file1, 0); 746 cvs_output (file1, 0); 764 free (file1);
|
| lock.c | 88 char *file1; member in struct:lock 361 if (lock->file1) 363 char *tmp = lock->file1; 364 lock->file1 = NULL; 595 global_readlock.file1 = lock_name (xrepository, readlock); 596 if ((fp = CVS_FOPEN (global_readlock.file1, "w+")) == NULL 808 lock->file1 = lock_name (lock->repository, promotablelock); 809 if ((fp = CVS_FOPEN (lock->file1, "w+")) == NULL || fclose (fp) == EOF) 813 if (CVS_UNLINK (lock->file1) < 0 && ! existence_error (errno)) 814 error (0, errno, "failed to remove lock %s", lock->file1); [all...] |
| update.c | 1554 char *file1; local 1617 file1 = Xasprintf ("%s/%s%s-1", CVSADM, CVSPREFIX, finfo->file); 1626 e = CVS_FOPEN (file1, "w"); 1628 error (1, errno, "cannot open %s", file1); 1630 data.filename = file1; 1653 error (1, errno, "cannot close %s", file1); 1714 retcode = diff_exec (file1, file2, NULL, NULL, dargc, dargv, 1820 if (unlink_file (file1) < 0 1822 error (0, errno, "cannot remove %s", file1); 1828 free (file1); [all...] |
| /src/usr.bin/sdiff/ |
| sdiff.c | 65 size_t file1ln, file2ln; /* line number of file1 and file2 */ 157 FILE *diffpipe, *file1, *file2; local 171 * file1, and file2 won't have arguments so doubling them will 258 * Create temporary files for diff and sdiff to share if file1 266 /* file1 and file2 are the same, so copy to same temp file. */ 270 /* Copy file1 and file2 into separate temp files. */ 316 if ((file1 = fopen(filename1, "r")) == NULL) 325 while (parsecmd(diffpipe, file1, file2) != EOF) 347 while ((s1 = xfgets(file1))) 351 s1 = xfgets(file1); [all...] |
| /src/usr.bin/newsyslog/ |
| newsyslog.c | 535 char file1[MAXPATHLEN], file2[MAXPATHLEN]; local 543 (void)snprintf(file1, sizeof(file1), "%s.%d", 545 (void)strlcat(file1, compress[j].suffix, 546 sizeof(file1)); 547 PRINFO(("rm -f %s\n", file1)); 549 (void)unlink(file1); 561 snprintf(file1, sizeof(file1), "%s.%d", log->logfile, i); 562 if (lstat(file1, &st) != 0 [all...] |
| /src/usr.bin/diff3/ |
| diff3.c | 195 "[-L label3] file1 file2 file3\n"); 836 char *file1, *file2, *file3; local 922 file1 = argv[0]; 928 labels[0] != NULL ? labels[0] : file1); 940 fp[0] = fopen(file1, "r"); 942 err(2, "Can't open %s", file1); 957 diffargv[diffargc] = file1;
|
| /src/crypto/external/bsd/openssh/dist/ |
| sftp.c | 2224 interactive_loop(struct sftp_conn *conn, const char *file1, const char *file2) 2270 if (file1 != NULL) { 2271 dir = xstrdup(file1); 2440 char *host = NULL, *user, *cp, **cpp, *file1 = NULL, *file2 = NULL; local 2614 switch (parse_uri("sftp", *argv, &user, &host, &tmp, &file1)) { 2625 &file1) == 0) 2681 err = interactive_loop(conn, file1, file2);
|