/dragonfly/games/battlestar/ |
H A D | getcom.c | 74 buf1++; in getword() 75 if (*buf1 != ',') { in getword() 76 if (!*buf1) { in getword() 81 !isspace((unsigned char)*buf1) && *buf1 != ',') in getword() 88 *buf2++ = *buf1++; in getword() 101 *buf2++ = *buf1++; in getword() 105 while (*buf1 && !isspace((unsigned char)*buf1)) in getword() 106 buf1++; in getword() 108 *buf2++ = *buf1++; in getword() 111 buf1++; in getword() [all …]
|
/dragonfly/usr.bin/locate/bigram/ |
H A D | locate.bigram.c | 58 static u_char buf1[MAXPATHLEN] = " "; variable 66 u_char *oldpath = buf1, *path = buf2; in main() 89 if (path == buf1) { in main() 91 oldpath = buf1; in main() 93 path = buf1; in main()
|
/dragonfly/contrib/xz/src/liblzma/common/ |
H A D | memcmplen.h | 43 lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2, in uint32_t() 64 const uint64_t x = read64ne(buf1 + len) - read64ne(buf2 + len); in uint32_t() 97 _mm_loadu_si128((const __m128i *)(buf1 + len)), in uint32_t() 114 uint32_t x = read32ne(buf1 + len) - read32ne(buf2 + len); in uint32_t() 136 uint32_t x = read32ne(buf1 + len) ^ read32ne(buf2 + len); in uint32_t() 157 while (len < limit && buf1[len] == buf2[len]) in uint32_t()
|
/dragonfly/bin/stty/ |
H A D | print.c | 53 char buf1[100], buf2[100]; in print() local 181 snprintf(buf1, sizeof(buf1), "%s = %s;", in print() 183 bput(buf1); in print() 192 snprintf(buf1 + cnt * 8, sizeof(buf1) - cnt * 8, in print() 198 printf("%s\n", buf1); in print() 203 printf("%s\n", buf1); in print()
|
/dragonfly/usr.bin/cmp/ |
H A D | link.c | 44 char buf1[PATH_MAX], *p1; in c_link() local 50 if ((len1 = readlink(file1, buf1, sizeof(buf1) - 1)) < 0) { in c_link() 66 buf1[len1] = '\0'; in c_link() 74 for (p1 = buf1 + skip1, p2 = buf2 + skip2; *p1 && *p2; p1++, p2++) { in c_link()
|
/dragonfly/lib/libc/citrus/ |
H A D | citrus_esdb.c | 196 char buf1[PATH_MAX], buf2[PATH_MAX], path[PATH_MAX]; in _citrus_esdb_open() local 200 realname = _lookup_alias(path, esname, buf1, sizeof(buf1), in _citrus_esdb_open() 325 char buf1[PATH_MAX]; in _citrus_esdb_get_list() local 327 snprintf(buf1, sizeof(buf1), "%.*s", in _citrus_esdb_get_list() 330 if ((p = strchr(buf1, '/')) != NULL) in _citrus_esdb_get_list() 331 memcpy(buf1, p + 1, strlen(p) - 1); in _citrus_esdb_get_list() 332 if ((p = strstr(buf1, ".esdb")) != NULL) in _citrus_esdb_get_list() 334 snprintf(buf, sizeof(buf), "%s/%.*s", buf1, in _citrus_esdb_get_list()
|
H A D | citrus_csmapper.c | 347 char buf1[PATH_MAX], buf2[PATH_MAX], key[PATH_MAX], pivot[PATH_MAX]; in _citrus_csmapper_open() local 357 realsrc = _lookup_alias(CS_ALIAS, src, buf1, sizeof(buf1), in _citrus_csmapper_open()
|
/dragonfly/usr.bin/locate/code/ |
H A D | locate.code.c | 98 static u_char buf1[MAXPATHLEN] = " "; variable 157 oldpath = buf1; in main() 234 if (path == buf1) { /* swap pointers */ in main() 236 oldpath = buf1; in main() 238 path = buf1; in main()
|
/dragonfly/contrib/lvm2/dist/include/ |
H A D | lvm-file.h | 52 #define is_same_inode(buf1, buf2) \ argument 53 ((buf1).st_ino == (buf2).st_ino && \ 54 (buf1).st_dev == (buf2).st_dev)
|
/dragonfly/contrib/lvm2/dist/lib/misc/ |
H A D | lvm-file.h | 52 #define is_same_inode(buf1, buf2) \ argument 53 ((buf1).st_ino == (buf2).st_ino && \ 54 (buf1).st_dev == (buf2).st_dev)
|
/dragonfly/contrib/lvm2/dist/lib/locking/ |
H A D | file_locking.c | 51 struct stat buf1, buf2; in _undo_flock() local 55 !stat(file, &buf1) && in _undo_flock() 57 is_same_inode(buf1, buf2)) in _undo_flock() 140 struct stat buf1, buf2; in _do_flock() local 170 if (!stat(file, &buf1) && !fstat(*fd, &buf2) && in _do_flock() 171 is_same_inode(buf1, buf2)) in _do_flock()
|
/dragonfly/contrib/cvs-1.12/src/ |
H A D | filesubr.c | 569 char *buf1, *buf2; in xcmp() local 589 buf1 = Xreadlink (file1, sb1.st_size); in xcmp() 591 result = (strcmp (buf1, buf2) == 0); in xcmp() 592 free (buf1); in xcmp() 634 buf1 = xmalloc (buf_size); in xcmp() 639 read1 = block_read (fd1, buf1, buf_size); in xcmp() 651 ret = memcmp(buf1, buf2, read1); in xcmp() 654 free (buf1); in xcmp()
|
/dragonfly/contrib/gdb-7/readline/ |
H A D | mbutil.c | 237 _rl_compare_chars (buf1, pos1, ps1, buf2, pos2, ps2) in _rl_compare_chars() argument 238 char *buf1; in _rl_compare_chars() 247 if ((w1 = _rl_get_char_len (&buf1[pos1], ps1)) <= 0 || 250 (buf1[pos1] != buf2[pos2])) 254 if (buf1[pos1+i] != buf2[pos2+i])
|
/dragonfly/contrib/gcc-4.7/gcc/c-family/ |
H A D | c-cppbuiltin.c | 1043 char dec_str[64], buf1[256]; in lazy_hex_fp_value() local 1055 sprintf (buf1, "%s%s", dec_str, lazy_hex_fp_values[idx].fp_suffix); in lazy_hex_fp_value() 1062 node->value.macro->exp.tokens[idx].val.str.len = strlen (buf1); in lazy_hex_fp_value() 1064 = (const unsigned char *) ggc_strdup (buf1); in lazy_hex_fp_value() 1077 char dec_str[64], buf1[256], buf2[256]; in builtin_define_with_hex_fp_value() local 1088 sprintf (buf1, "%s=%s", macro, buf2); in builtin_define_with_hex_fp_value() 1089 cpp_define (parse_in, buf1); in builtin_define_with_hex_fp_value() 1120 sprintf (buf1, "%s%s", dec_str, fp_suffix); in builtin_define_with_hex_fp_value() 1121 sprintf (buf2, fp_cast, buf1); in builtin_define_with_hex_fp_value() 1122 sprintf (buf1, "%s=%s", macro, buf2); in builtin_define_with_hex_fp_value() [all …]
|
/dragonfly/contrib/gdb-7/gdb/gnulib/import/ |
H A D | localcharset.c | 190 char buf1[50+1]; in get_charset_aliases() local 211 if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) in get_charset_aliases() 213 l1 = strlen (buf1); in get_charset_aliases() 233 strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); in get_charset_aliases()
|
/dragonfly/usr.sbin/pstat/ |
H A D | pstat.c | 958 char buf1[6]; in swapmode() local 960 humanize_number(buf1, sizeof(buf1), in swapmode() 970 printf("%s/%s swap space\n", buf1, buf2); in swapmode() 986 char buf1[32]; in Output() local 991 humanize_number(buf1, 6, in Output() 1008 snprintf(buf1, sizeof(buf1), "%*ld", in Output() 1017 printf("%-15s %*s ", name, hlen, buf1); in Output()
|
/dragonfly/sys/vfs/ext2fs/ |
H A D | ext2_htree.c | 680 char *buf1 = NULL; in ext2_htree_create_index() local 689 buf1 = malloc(blksize, M_TEMP, M_WAITOK | M_ZERO); in ext2_htree_create_index() 700 memcpy(buf1, ep, dirlen); in ext2_htree_create_index() 701 ep = (struct ext2fs_direct_2 *)buf1; in ext2_htree_create_index() 702 while ((char *)ep < buf1 + dirlen) in ext2_htree_create_index() 705 ep->e2d_reclen = htole16(buf1 + blksize - (char *)ep); in ext2_htree_create_index() 730 ext2_htree_split_dirblock(dp, buf1, buf2, blksize, hash_seed, in ext2_htree_create_index() 751 ext2_dirent_csum_set(dp, (struct ext2fs_direct_2 *)buf1); in ext2_htree_create_index() 752 error = ext2_htree_append_block(vp, buf1, cnp, blksize); in ext2_htree_create_index() 762 free(buf1, M_TEMP); in ext2_htree_create_index() [all …]
|
/dragonfly/contrib/binutils-2.34/gprof/ |
H A D | source.c | 200 struct stat buf1, buf2; in annotate_source() local 202 if (stat (filename, &buf1) == 0 in annotate_source() 204 && buf1.st_ino == buf2.st_ino) in annotate_source()
|
/dragonfly/contrib/binutils-2.27/gprof/ |
H A D | source.c | 200 struct stat buf1, buf2; in annotate_source() local 202 if (stat (filename, &buf1) == 0 in annotate_source() 204 && buf1.st_ino == buf2.st_ino) in annotate_source()
|
/dragonfly/lib/libdmsg/ |
H A D | crypto.c | 344 char buf1[sizeof(handtx)]; in dmsg_crypto_negotiate() local 539 (unsigned char*)buf1, in dmsg_crypto_negotiate() 544 } while (buf1[0] & 0xC0); in dmsg_crypto_negotiate() 547 (unsigned char*)buf1, in dmsg_crypto_negotiate() 580 (unsigned char*)buf1, in dmsg_crypto_negotiate() 585 (unsigned char*)buf1, in dmsg_crypto_negotiate()
|
/dragonfly/contrib/gcc-8.0/gcc/c-family/ |
H A D | c-cppbuiltin.c | 1593 char dec_str[64], buf1[256]; in lazy_hex_fp_value() local 1605 sprintf (buf1, "%s%s", dec_str, lazy_hex_fp_values[idx].fp_suffix); in lazy_hex_fp_value() 1612 node->value.macro->exp.tokens[idx].val.str.len = strlen (buf1); in lazy_hex_fp_value() 1614 = (const unsigned char *) ggc_strdup (buf1); in lazy_hex_fp_value() 1627 char dec_str[64], buf[256], buf1[128], buf2[64]; in builtin_define_with_hex_fp_value() local 1638 sprintf (buf1, "%s=%s", macro, buf2); in builtin_define_with_hex_fp_value() 1639 cpp_define (parse_in, buf1); in builtin_define_with_hex_fp_value() 1671 sprintf (buf1, fp_cast, buf2); in builtin_define_with_hex_fp_value() 1672 sprintf (buf, "%s=%s", macro, buf1); in builtin_define_with_hex_fp_value()
|
/dragonfly/test/stress/fsstress/ |
H A D | fsstress.c | 883 char buf1[MAXNAMELEN]; in link_path() local 895 if (strcmp(buf1, buf2) == 0) { in link_path() 896 if (chdir(buf1) == 0) { in link_path() 901 if (strcmp(buf1, "..") == 0) in link_path() 905 else if (strlen(buf1) == 0) in link_path() 916 if (chdir(buf1) == 0) { in link_path() 1113 char buf1[MAXNAMELEN]; in rename_path() local 1126 if (chdir(buf1) == 0) { in rename_path() 1131 if (strcmp(buf1, "..") == 0) in rename_path() 1135 else if (strlen(buf1) == 0) in rename_path() [all …]
|
/dragonfly/contrib/ncurses/progs/ |
H A D | infocmp.c | 450 char buf1[MAX_STRING]; in compare_predicate() local 514 dump_numeric(n1, buf1); in compare_predicate() 516 (void) printf("\t%s: %s, %s.\n", name, buf1, buf2); in compare_predicate() 531 dump_numeric(n1, buf1); in compare_predicate() 532 (void) printf("\t%s= %s.\n", name, buf1); in compare_predicate() 562 dump_string(s1, buf1); in compare_predicate() 564 if (strcmp(buf1, buf2)) in compare_predicate() 565 (void) printf("\t%s: %s, %s.\n", name, buf1, buf2); in compare_predicate()
|
/dragonfly/lib/libc/resolv/ |
H A D | res_send.c | 266 res_queriesmatch(const u_char *buf1, const u_char *eom1, in res_queriesmatch() argument 269 const u_char *cp = buf1 + HFIXEDSZ; in res_queriesmatch() 270 int qdcount = ntohs(((const HEADER*)buf1)->qdcount); in res_queriesmatch() 272 if (buf1 + HFIXEDSZ > eom1 || buf2 + HFIXEDSZ > eom2) in res_queriesmatch() 279 if ((((const HEADER *)buf1)->opcode == ns_o_update) && in res_queriesmatch() 289 n = dn_expand(buf1, eom1, cp, tname, sizeof tname); in res_queriesmatch()
|
/dragonfly/sys/vfs/hammer2/ |
H A D | hammer2_ondisk.c | 566 char buf1[64], buf2[64]; in hammer2_print_uuid_mismatch() local 568 snprintf_uuid(buf1, sizeof(buf1), uuid1); in hammer2_print_uuid_mismatch() 571 hprintf("%s uuid mismatch %s vs %s\n", id, buf1, buf2); in hammer2_print_uuid_mismatch()
|