| /netbsd-src/usr.bin/crunch/crunchgen/ |
| H A D | crunchgen.c | 357 char tmppath[MAXPATHLEN]; in add_srcdirs() local 361 (void)estrlcpy(tmppath, argv[i], sizeof(tmppath)); in add_srcdirs() 364 (void)estrlcpy(tmppath, curdir, sizeof(tmppath)); in add_srcdirs() 366 (void)estrlcpy(tmppath, topdir, sizeof(tmppath)); in add_srcdirs() 367 (void)estrlcat(tmppath, "/", sizeof(tmppath)); in add_srcdirs() 368 (void)estrlcat(tmppath, argv[i], sizeof(tmppath)); in add_srcdirs() 370 if (is_dir(tmppath)) in add_srcdirs() 371 add_string(&srcdirs, tmppath); in add_srcdirs() 374 curfilename, linenum, tmppath); in add_srcdirs() 474 char tmppath[MAXPATHLEN]; in add_special() local [all …]
|
| /netbsd-src/lib/libc/nls/ |
| H A D | catopen.c | 79 char tmppath[PATH_MAX+1]; in catopen_l() local 113 t = tmppath; in catopen_l() 120 while (*u && t < tmppath + PATH_MAX) in catopen_l() 125 while (*u && t < tmppath + PATH_MAX) in catopen_l() 133 if (t < tmppath + PATH_MAX) in catopen_l() 137 if (t < tmppath + PATH_MAX) in catopen_l() 144 catd = load_msgcat(tmppath); in catopen_l() 150 t = tmppath; in catopen_l()
|
| /netbsd-src/external/bsd/file/dist/src/ |
| H A D | magic.c | 97 char *tmppath; in _w32_append_path() local 102 if (vasprintf(&tmppath, fmt, ap) < 0) { in _w32_append_path() 108 if (access(tmppath, R_OK) == -1) in _w32_append_path() 112 *hmagicpath = tmppath; in _w32_append_path() 116 if (asprintf(&newpath, "%s%c%s", *hmagicpath, PATHSEP, tmppath) < 0) in _w32_append_path() 120 free(tmppath); in _w32_append_path() 124 free(tmppath); in _w32_append_path()
|
| /netbsd-src/external/bsd/libproc/dist/ |
| H A D | proc_sym.c | 400 char tmppath[MAXPATHLEN]; in proc_name2map() local 415 basename_r(kve->kve_path, tmppath); in proc_name2map() 416 if (strcmp(tmppath, name) == 0) { in proc_name2map() 425 basename_r(rdl->rdl_path, tmppath); in proc_name2map() 426 if (strcmp(tmppath, name) == 0) { in proc_name2map()
|
| /netbsd-src/external/gpl3/binutils.old/dist/ld/ |
| H A D | ldelf.c | 726 char *tmppath; in ldelf_check_ld_elf_hints() local 728 tmppath = concat (ld_sysroot, _PATH_ELF_HINTS, (const char *) NULL); in ldelf_check_ld_elf_hints() 729 f = fopen (tmppath, FOPEN_RB); in ldelf_check_ld_elf_hints() 730 free (tmppath); in ldelf_check_ld_elf_hints() 934 char *tmppath; in ldelf_check_ld_so_conf() local 939 tmppath = concat (ld_sysroot, prefix, "/etc/ld.so.conf", in ldelf_check_ld_so_conf() 941 if (!ldelf_parse_ld_so_conf (&info, tmppath)) in ldelf_check_ld_so_conf() 943 free (tmppath); in ldelf_check_ld_so_conf() 944 tmppath = concat (ld_sysroot, "/etc/ld.so.conf", in ldelf_check_ld_so_conf() 946 ldelf_parse_ld_so_conf (&info, tmppath); in ldelf_check_ld_so_conf() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/ld/ |
| H A D | ldelf.c | 729 char *tmppath; in ldelf_check_ld_elf_hints() local 731 tmppath = concat (ld_sysroot, _PATH_ELF_HINTS, (const char *) NULL); in ldelf_check_ld_elf_hints() 732 f = fopen (tmppath, FOPEN_RB); in ldelf_check_ld_elf_hints() 733 free (tmppath); in ldelf_check_ld_elf_hints() 937 char *tmppath; in ldelf_check_ld_so_conf() local 942 tmppath = concat (ld_sysroot, prefix, "/etc/ld.so.conf", in ldelf_check_ld_so_conf() 944 if (!ldelf_parse_ld_so_conf (&info, tmppath)) in ldelf_check_ld_so_conf() 946 free (tmppath); in ldelf_check_ld_so_conf() 947 tmppath = concat (ld_sysroot, "/etc/ld.so.conf", in ldelf_check_ld_so_conf() 949 ldelf_parse_ld_so_conf (&info, tmppath); in ldelf_check_ld_so_conf() [all …]
|
| /netbsd-src/usr.sbin/edquota/ |
| H A D | edquota.c | 1242 int tmpfd, const char *tmppath) in editone() argument 1263 if (editit(tmppath) == 0) in editone() 1277 char tmppath[] = _PATH_TMPFILE; in edit() local 1280 tmpfd = mkstemp(tmppath); in edit() 1284 editone(fs, idtype, names[i], tmpfd, tmppath); in edit() 1288 unlink(tmppath); in edit()
|
| /netbsd-src/sys/dev/ |
| H A D | ccd.c | 315 char *tmppath; in ccdinit() local 329 tmppath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in ccdinit() 346 memset(tmppath, 0, MAXPATHLEN); /* sanity */ in ccdinit() 347 error = copyinstr(cpaths[ix], tmppath, in ccdinit() 360 memcpy(ci->ci_path, tmppath, ci->ci_pathlen); in ccdinit() 487 kmem_free(tmppath, MAXPATHLEN); in ccdinit() 496 kmem_free(tmppath, MAXPATHLEN); in ccdinit()
|
| H A D | cgd.c | 1441 char *tmppath; in cgdinit() local 1449 tmppath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in cgdinit() 1450 ret = copyinstr(cpath, tmppath, MAXPATHLEN, &sc->sc_tpathlen); in cgdinit() 1454 memcpy(sc->sc_tpath, tmppath, sc->sc_tpathlen); in cgdinit() 1481 kmem_free(tmppath, MAXPATHLEN); in cgdinit()
|
| /netbsd-src/external/cddl/osnet/dist/lib/libzfs/common/ |
| H A D | libzfs_pool.c | 2221 char *tmppath; local 2225 &tmppath) != 0) 2232 rsz = snprintf(physpath + pos, bytes_left, format, tmppath);
|