| /freebsd-12.1/sys/kern/ |
| H A D | subr_stack.c | 98 char namebuf[64]; in stack_print() local 104 (void)stack_symbol(st->pcs[i], namebuf, sizeof(namebuf), in stack_print() 107 namebuf, offset); in stack_print() 114 char namebuf[64]; in stack_print_short() local 122 if (stack_symbol(st->pcs[i], namebuf, sizeof(namebuf), in stack_print_short() 124 printf("%s+%#lx", namebuf, offset); in stack_print_short() 174 char namebuf[64]; in stack_sbuf_print() local 180 (void)stack_symbol(st->pcs[i], namebuf, sizeof(namebuf), in stack_sbuf_print() 183 namebuf, offset); in stack_sbuf_print() 252 if (linker_search_symbol_name((caddr_t)pc, namebuf, buflen, in stack_symbol() [all …]
|
| H A D | subr_autoconf.c | 98 char namebuf[64]; in run_interrupt_driven_config_hooks_warning() local 106 (caddr_t)hook_entry->ich_func, namebuf, in run_interrupt_driven_config_hooks_warning() 107 sizeof(namebuf), &offset) == 0) in run_interrupt_driven_config_hooks_warning() 108 printf(" %s", namebuf); in run_interrupt_driven_config_hooks_warning() 258 char namebuf[64]; in DB_SHOW_COMMAND() local 263 (caddr_t)hook_entry->ich_func, namebuf, sizeof(namebuf), in DB_SHOW_COMMAND() 266 hook_entry->ich_func, namebuf, offset, in DB_SHOW_COMMAND()
|
| H A D | kern_loginclass.c | 182 char *namebuf; member 197 return (copyout(lc->lc_name, uap->namebuf, lcnamelen)); in sys_getloginclass() 205 const char *namebuf; member 221 error = copyinstr(uap->namebuf, lcname, sizeof(lcname), NULL); in sys_setloginclass()
|
| /freebsd-12.1/usr.bin/mail/ |
| H A D | util.c | 501 char namebuf[LINESIZE]; in name1() local 512 namebuf[0] = '\0'; in name1() 514 return (savestr(namebuf)); in name1() 520 for (cp2 = &namebuf[strlen(namebuf)]; in name1() 526 return (savestr(namebuf)); in name1() 528 return (savestr(namebuf)); in name1() 530 return (savestr(namebuf)); in name1() 541 cp2 = namebuf; in name1() 545 strlcpy(cp2, cp, sizeof(namebuf) - (cp2 - namebuf) - 1); in name1() 546 strcat(namebuf, "!"); in name1() [all …]
|
| /freebsd-12.1/contrib/gcclibs/libcpp/ |
| H A D | pch.c | 469 free (namebuf); in cpp_valid_state() 471 namebuf = XNEWVEC (unsigned char, namebufsz); in cpp_valid_state() 474 if ((size_t)read (fd, namebuf, m.definition_length) in cpp_valid_state() 478 h = cpp_lookup (r, namebuf, m.name_length); in cpp_valid_state() 486 name, m.name_length, namebuf); in cpp_valid_state() 493 || memcmp (namebuf, newdefn, m.definition_length) != 0) in cpp_valid_state() 500 namebuf + m.name_length); in cpp_valid_state() 504 free (namebuf); in cpp_valid_state() 505 namebuf = NULL; in cpp_valid_state() 571 if (namebuf != NULL) in cpp_valid_state() [all …]
|
| /freebsd-12.1/lib/libjail/ |
| H A D | jail_getid.c | 97 char namebuf[MAXHOSTNAMELEN]; in jail_getname() local 105 jiov[3].iov_base = namebuf; in jail_getname() 106 jiov[3].iov_len = sizeof(namebuf); in jail_getname() 119 name = strdup(namebuf); in jail_getname()
|
| /freebsd-12.1/lib/libnetgraph/ |
| H A D | sock.c | 64 char namebuf[NG_NODESIZ]; in NgMkSockNode() local 112 strlcpy(namebuf, name, sizeof(namebuf)); in NgMkSockNode() 137 snprintf(namebuf, sizeof(namebuf), "[%lx]", (u_long) ni->id); in NgMkSockNode() 154 snprintf(sg->sg_data, NG_NODESIZ + 1, "%s:", namebuf); in NgMkSockNode()
|
| /freebsd-12.1/contrib/netbsd-tests/kernel/kqueue/ |
| H A D | t_sig.c | 68 char namebuf[32]; in ATF_TC_BODY() local 92 (void)strlcpy(namebuf, "EVFILT_SIGNAL", sizeof(namebuf)); in ATF_TC_BODY() 93 km.name = namebuf; in ATF_TC_BODY()
|
| /freebsd-12.1/contrib/gcclibs/libiberty/ |
| H A D | pex-win32.c | 188 char *namebuf, *foundbuf; in mingw_rootify() local 207 namebuf = XNEWVEC (char, ++maxlen); in mingw_rootify() 210 if (!namebuf || !foundbuf) in mingw_rootify() 213 if (namebuf) in mingw_rootify() 214 free (namebuf); in mingw_rootify() 223 for (i = 0; RegEnumKey (hKey, i, namebuf, maxlen) == ERROR_SUCCESS; i++) in mingw_rootify() 225 int match = strcasecmp (namebuf, MINGW_NAME); in mingw_rootify() 228 if (match > 0 && strncasecmp (namebuf, MINGW_NAME, MINGW_NAME_LEN) > 0) in mingw_rootify() 230 if (strcasecmp (namebuf, foundbuf) > 0) in mingw_rootify() 231 strcpy (foundbuf, namebuf); in mingw_rootify() [all …]
|
| /freebsd-12.1/stand/libsa/ |
| H A D | nandfs.c | 635 char *namebuf; in nandfs_lookup_path() local 644 namebuf = malloc(2 * MAXPATHLEN + 2); in nandfs_lookup_path() 645 strncpy(namebuf, path, MAXPATHLEN); in nandfs_lookup_path() 646 namebuf[MAXPATHLEN] = '\0'; in nandfs_lookup_path() 648 lpath = namebuf; in nandfs_lookup_path() 734 bcopy((char *)orig, namebuf + nameidx, in nandfs_lookup_path() 737 namebuf[nameidx + link_len++] = '/'; in nandfs_lookup_path() 742 namebuf[nameidx + link_len] = '\0'; in nandfs_lookup_path() 746 namebuf + 0, namebuf + MAXPATHLEN + 1, nameidx); in nandfs_lookup_path() 748 lpath = namebuf + nameidx; in nandfs_lookup_path() [all …]
|
| /freebsd-12.1/sbin/fsck_ffs/ |
| H A D | pass3.c | 57 char namebuf[UFS_MAXNAMLEN+1]; in pass3() local 116 idesc.id_name = namebuf; in pass3() 119 if (linkup(orphan, inp->i_parent, namebuf)) { in pass3()
|
| H A D | fsutil.c | 844 getpathname(char *namebuf, ino_t curdir, ino_t ino) in getpathname() argument 852 (void)strcpy(namebuf, "/"); in getpathname() 856 (void)strcpy(namebuf, "?"); in getpathname() 863 cp = &namebuf[MAXPATHLEN - 1]; in getpathname() 879 idesc.id_name = namebuf; in getpathname() 882 len = strlen(namebuf); in getpathname() 884 memmove(cp, namebuf, (size_t)len); in getpathname() 886 if (cp < &namebuf[UFS_MAXNAMLEN]) in getpathname() 893 memmove(namebuf, cp, (size_t)(&namebuf[MAXPATHLEN] - cp)); in getpathname()
|
| /freebsd-12.1/contrib/ntp/ntpd/ |
| H A D | refclock_bancomm.c | 273 static char namebuf[20]; in get_devicename() local 275 snprintf(namebuf, sizeof(namebuf), template, n); in get_devicename() 276 namebuf[sizeof(namebuf)-1] = '\0'; /* paranoia rulez! */ in get_devicename() 277 return namebuf; in get_devicename()
|
| /freebsd-12.1/lib/libc/gen/ |
| H A D | getcap.c | 537 char *namebuf; in cdbget() local 539 namebuf = strdup(name); in cdbget() 540 if (namebuf == NULL) in cdbget() 542 key.data = namebuf; in cdbget() 543 key.size = strlen(namebuf); in cdbget() 549 free(namebuf); in cdbget() 552 free(namebuf); in cdbget() 565 free(namebuf); in cdbget()
|
| H A D | __xuname.c | 45 __xuname(int namesize, void *namebuf) in __xuname() argument 53 q = (char *)namebuf; in __xuname()
|
| /freebsd-12.1/usr.bin/bsdiff/bspatch/ |
| H A D | bspatch.c | 96 char *directory, *namebuf; in main() local 129 if ((namebuf = strdup(argv[2])) == NULL || in main() 130 (directory = dirname(namebuf)) == NULL || in main() 133 free(namebuf); in main()
|
| /freebsd-12.1/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_store.c | 629 char *prefix, *namebuf; in bhnd_nvram_store_export_child() local 640 namebuf = NULL; in bhnd_nvram_store_export_child() 743 namebuf = bhnd_nv_malloc(namebuf_size); in bhnd_nvram_store_export_child() 744 if (namebuf == NULL) { in bhnd_nvram_store_export_child() 767 len = snprintf(namebuf, namebuf_size, "%s%s", prefix, in bhnd_nvram_store_export_child() 772 name = namebuf; in bhnd_nvram_store_export_child() 789 if (namebuf != NULL) in bhnd_nvram_store_export_child() 790 bhnd_nv_free(namebuf); in bhnd_nvram_store_export_child()
|
| H A D | bhnd_nvram_store_subr.c | 335 char *namebuf; in bhnd_nvstore_path_register_update() local 339 namebuf = NULL; in bhnd_nvstore_path_register_update() 364 len = bhnd_nv_asprintf(&namebuf, "%lu:%s", alias->alias, in bhnd_nvstore_path_register_update() 368 len = bhnd_nv_asprintf(&namebuf, "%s/%s", in bhnd_nvstore_path_register_update() 375 full_name = namebuf; in bhnd_nvstore_path_register_update() 421 if (namebuf != NULL) in bhnd_nvstore_path_register_update() 422 bhnd_nv_free(namebuf); in bhnd_nvstore_path_register_update()
|
| /freebsd-12.1/usr.sbin/ndp/ |
| H A D | ndp.c | 1123 char namebuf[NI_MAXHOST]; in plist() local 1145 p->prefix.sin6_len, namebuf, sizeof(namebuf), in plist() 1147 strlcpy(namebuf, "?", sizeof(namebuf)); in plist() 1148 printf("%s/%d if=%s\n", namebuf, p->prefixlen, in plist() 1198 sin6->sin6_len, namebuf, sizeof(namebuf), in plist() 1200 strlcpy(namebuf, "?", sizeof(namebuf)); in plist() 1201 printf(" %s", namebuf); in plist()
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| H A D | spa_history.c | 586 char namebuf[ZFS_MAX_DATASET_NAME_LEN]; in spa_history_log_internal_ds() local 591 dsl_dataset_name(ds, namebuf); in spa_history_log_internal_ds() 592 fnvlist_add_string(nvl, ZPOOL_HIST_DSNAME, namebuf); in spa_history_log_internal_ds() 605 char namebuf[ZFS_MAX_DATASET_NAME_LEN]; in spa_history_log_internal_dd() local 610 dsl_dir_name(dd, namebuf); in spa_history_log_internal_dd() 611 fnvlist_add_string(nvl, ZPOOL_HIST_DSNAME, namebuf); in spa_history_log_internal_dd()
|
| /freebsd-12.1/usr.sbin/jail/ |
| H A D | state.c | 309 char namebuf[MAXHOSTNAMELEN]; in start_state() local 345 jiov[5].iov_base = &namebuf; in start_state() 346 jiov[5].iov_len = sizeof(namebuf); in start_state() 348 if (wild_jail_match(namebuf, target)) { in start_state() 350 j->name = estrdup(namebuf); in start_state()
|
| /freebsd-12.1/tools/regression/rpcsec_gss/ |
| H A D | rpctest.c | 317 gss_buffer_desc namebuf; in test_server() 324 namebuf.value = principal; in test_server() 325 namebuf.length = strlen(principal); in test_server() 326 maj_stat = gss_import_name(&min_stat, &namebuf, in test_server()
|
| /freebsd-12.1/contrib/ncurses/progs/ |
| H A D | tic.c | 296 static char *namebuf, *suffix; in put_translate() local 301 if ((namebuf = typeRealloc(char, have, namebuf)) == 0) in put_translate() 307 namebuf[used++] = '\0'; in put_translate() 309 (void) fputs(namebuf, stdout); in put_translate() 313 namebuf[used++] = (char) c; in put_translate() 318 namebuf[used++] = '\0'; in put_translate() 322 if ((up = strchr(namebuf, '#')) != 0 in put_translate() 323 || (up = strchr(namebuf, '=')) != 0 in put_translate() 324 || ((up = strchr(namebuf, '@')) != 0 && up[1] == '>')) { in put_translate() 329 if ((tp = nametrans(namebuf)) != 0) { in put_translate() [all …]
|
| /freebsd-12.1/contrib/binutils/bfd/ |
| H A D | sunos.c | 924 char *namebuf, *p; in sunos_add_dynamic_symbols() local 950 if (namebuf == NULL) in sunos_add_dynamic_symbols() 952 p = namebuf; in sunos_add_dynamic_symbols() 961 free (namebuf); in sunos_add_dynamic_symbols() 969 free (namebuf); in sunos_add_dynamic_symbols() 981 free (namebuf); in sunos_add_dynamic_symbols() 985 namebuf = n; in sunos_add_dynamic_symbols() 1013 free (namebuf); in sunos_add_dynamic_symbols() 1017 namebuf = n; in sunos_add_dynamic_symbols() 1027 free (namebuf); in sunos_add_dynamic_symbols() [all …]
|
| /freebsd-12.1/sys/dev/ena/ |
| H A D | ena_sysctl.c | 106 char namebuf[QUEUE_NAME_LEN]; in ena_sysctl_add_stats() local 136 snprintf(namebuf, QUEUE_NAME_LEN, "queue%d", i); in ena_sysctl_add_stats() 139 namebuf, CTLFLAG_RD, NULL, "Queue Name"); in ena_sysctl_add_stats()
|