/freebsd-11-stable/release/picobsd/tinyware/msh/ |
H A D | sh5.c | 25 _PROTOTYPE(void tempname, (char *tname )); 546 char tname[30]; local 552 tempname(tname); 553 *name = strsave(tname, areanum); 554 tf = creat(tname, 0600); 558 unlink(tname); 607 char tname[30]; local 610 tempname(tname); 611 if ((tf = creat(tname, 0600)) < 0) 622 unlink(tname); [all...] |
/freebsd-11-stable/crypto/openssl/crypto/asn1/ |
H A D | asn1t.h | 111 # define ASN1_ITEM_TEMPLATE(tname) \ 112 static const ASN1_TEMPLATE tname##_item_tt 114 # define ASN1_ITEM_TEMPLATE_END(tname) \ 116 ASN1_ITEM_start(tname) \ 119 &tname##_item_tt,\ 123 #tname \ 124 ASN1_ITEM_end(tname) 149 # define ASN1_SEQUENCE(tname) \ 150 static const ASN1_TEMPLATE tname##_seq_tt[] 154 # define ASN1_SEQUENCE_END_name(stname, tname) \ [all...] |
/freebsd-11-stable/usr.sbin/ctm/ctm_rmail/ |
H A D | ctm_rmail.c | 41 int combine(char *delta, int npieces, char *dname, char *pname, char *tname); 274 char tname[PATH_MAX]; local 311 strcpy(tname, piece_dir); 312 strcat(tname, "/p.XXXXXXXXXX"); 313 if ((fd = mkstemp(tname)) == -1 || 317 err("cannot open '%s' for writing", tname); 321 err("*mkstemp: '%s'", tname); 345 err("error writing %s", tname); 353 unlink(tname); 359 if (rename(tname, pnam 440 char tname[PATH_MAX]; local 500 combine(char *delta, int npieces, char *dname, char *pname, char *tname) argument [all...] |
/freebsd-11-stable/usr.sbin/kgzip/ |
H A D | kgzip.c | 56 char *tname; /* Name of temporary file */ variable 75 if (asprintf(&tname, "%s/kgzXXXXXXXXXX", 131 if (tname) 132 unlink(tname); 154 if ((fd = mkstemp(tname)) == -1) 157 fn[i++] = tname;
|
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzpool/common/ |
H A D | util.c | 100 char *cname, *tname; local 105 tname = calloc(1, strlen(cname) + 2); 106 (void) strcpy(tname, cname); 108 tname[strlen(tname)] = '0' + np; 109 show_vdev_stats(tname, ctype, cnv, indent + 2); 110 free(tname);
|
/freebsd-11-stable/contrib/ncurses/ncurses/tinfo/ |
H A D | lib_setup.c | 605 NCURSES_CONST char *tname, 623 (void *) tp, _nc_visbuf(tname), Filedes, (void *) errret)); 632 T((T_CALLED("setupterm(%s,%d,%p)"), _nc_visbuf(tname), Filedes, (void *) errret)); 635 if (tname == 0) { 636 tname = getenv("TERM"); 637 if (tname == 0 || *tname == '\0') { 639 tname = "unknown"; 646 if (strlen(tname) > MAX_NAME_SIZE) { 652 T(("your terminal name is %s", tname)); 604 TINFO_SETUP_TERM(TERMINAL ** tp, NCURSES_CONST char *tname, int Filedes, int *errret, int reuse) argument 844 _nc_setupterm(NCURSES_CONST char *tname, int Filedes, int *errret, int reuse) argument 865 setupterm(NCURSES_CONST char *tname, int Filedes, int *errret) argument [all...] |
/freebsd-11-stable/usr.sbin/ctm/ctm_smail/ |
H A D | ctm_smail.c | 212 char tname[PATH_MAX]; local 224 mk_tmp_name(tname, queue_dir, pce); 225 if ((qfp = fopen(tname, "w")) == NULL) 227 err("cannot open '%s' for writing", tname); 241 err("error writing '%s'", tname); 259 mk_tmp_name(tname, queue_dir, pce); 261 if (rename(tname, qname) < 0) 263 err("*rename: '%s' to '%s'", tname, qname); 264 unlink(tname); 279 char tname[PATH_MA local [all...] |
/freebsd-11-stable/usr.sbin/ndiscvt/ |
H A D | ndiscvt.c | 169 char tname[] = "/tmp/ndiscvt.XXXXXX"; local 173 mkstemp(tname); 175 binfp = fopen(tname, "a+"); 177 err(1, "opening %s failed", tname); 195 tname, outfile); 198 unlink(tname); 200 ptr = tname; 211 tname, sysfile, tname, tname, sysfil [all...] |
/freebsd-11-stable/contrib/blacklist/libexec/ |
H A D | blacklistd-helper | 63 tname="port$6" 64 /sbin/ipfw table $tname create type addr 2>/dev/null 65 /sbin/ipfw -q table $tname add "$addr/$mask" 69 table"("$tname")" to any dst-port $6 >/dev/null && \
|
/freebsd-11-stable/contrib/binutils/ld/ |
H A D | ldwrite.c | 317 char *tname; local 326 tname = xmalloc (len + 1); 327 memcpy (tname, name, len + 1); 329 while (len && ISDIGIT (tname[len-1])) 331 if (len > 1 && tname[len-1] == '.') 333 tname[len-1] = 0; 337 if (bfd_family_coff (abfd) && strlen (tname) > 5) 348 tname[5] = 0; 351 if ((sname = bfd_get_unique_section_name (abfd, tname, count)) == NULL 360 free (tname); [all...] |
/freebsd-11-stable/usr.sbin/services_mkdb/ |
H A D | services_mkdb.c | 57 static char tname[MAXPATHLEN]; variable 145 (void)snprintf(tname, sizeof(tname), "%s.tmp", dbname); 146 db = dbopen(tname, O_RDWR | O_CREAT | O_EXCL, 149 err(1, "Error opening temporary database `%s'", tname); 170 err(1, "Error closing temporary database `%s'", tname); 176 if (rename(tname, dbname) == -1 || 183 err(1, "Cannot rename `%s' to `%s'", tname, dbname); 352 if (tname[0]) 353 (void)unlink(tname); [all...] |
/freebsd-11-stable/crypto/heimdal/lib/asn1/ |
H A D | gen_length.c | 248 char *tname = NULL; local 249 if (asprintf(&tname, "%s_tag", tmpstr) < 0 || tname == NULL) 251 length_type (name, t->subtype, variable, tname); 254 free(tname);
|
H A D | gen_template.c | 330 tlist_cmp_name(const char *tname, const char *qname) argument 332 struct tlist *tl = tlist_find_by_name(tname); 614 char *tname = NULL, *elname = NULL; local 623 if (asprintf(&tname, "tag_%s_%p", name ? name : "", t) < 0 || tname == NULL) 625 output_name(tname); 627 if (asprintf(&elname, "%s_%s", basetype, tname) < 0 || elname == NULL) 640 free(tname); 647 const char *type = NULL, *tname, *dupname; local 652 tname 687 char *tname = NULL; local [all...] |
H A D | gen_encode.c | 388 char *tname = NULL; local 390 if (asprintf (&tname, "%s_tag", tmpstr) < 0 || tname == NULL) 392 c = encode_type (name, t->subtype, tname); 399 free (tname);
|
/freebsd-11-stable/lib/libmp/tests/ |
H A D | legacy_test.c | 40 testmcmp(const MINT *mp1, const MINT *mp2, const char *tname) argument 44 printf("ok %d - %s\n", ++tnr, tname); 46 printf("not ok - %d %s\n", ++tnr, tname);
|
/freebsd-11-stable/usr.sbin/btxld/ |
H A D | btxld.c | 114 static const char *tname; /* Temporary output file */ variable 191 if (tname) 192 remove(tname); 259 if (!(tname = strdup(name))) 281 err(2, "%s", tname); 287 err(2, "%s", tname); 288 if (rename(tname, oname)) 289 err(2, "%s: Can't rename to %s", tname, oname); 290 tname = NULL; 486 err(2, "%s", tname); [all...] |
/freebsd-11-stable/contrib/nvi/common/ |
H A D | exf.c | 135 char *oname, *tname; local 187 if ((tname = 192 if ((fd = mkstemp(tname)) == -1 || fstat(fd, &sb)) { 193 free(tname); 200 frp->tname = tname; 203 if ((frp->name = strdup(tname)) == NULL) { 208 oname = frp->tname; 425 if (frp->tname != NULL) { 426 (void)unlink(frp->tname); [all...] |
/freebsd-11-stable/contrib/bmake/ |
H A D | meta.c | 246 const char *tname, 263 if ((cp = strrchr(tname, '/'))) { 264 if (cached_realpath(tname, buf)) { 271 tname = buf; 279 if (tname[0] == '/') { 280 strlcpy(buf, tname, sizeof(buf)); 282 snprintf(buf, sizeof(buf), "%s/%s", cwd, tname); 286 tname = buf; 290 tp = bmake_strdup(tname); 293 snprintf(mname, mnamelen, "%s.meta", tname); 244 meta_name(char *mname, size_t mnamelen, const char *dname, const char *tname, const char *cwd) argument 473 const char *tname; local 1041 const char *tname; local [all...] |
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/ |
H A D | lauxlib.h | 53 LUALIB_API int (luaL_newmetatable) (lua_State *L, const char *tname); 54 LUALIB_API void (luaL_setmetatable) (lua_State *L, const char *tname); 55 LUALIB_API void *(luaL_testudata) (lua_State *L, int ud, const char *tname); 56 LUALIB_API void *(luaL_checkudata) (lua_State *L, int ud, const char *tname);
|
/freebsd-11-stable/contrib/gcclibs/libiberty/ |
H A D | cplus-dem.c | 1264 string tname; local 1391 success = do_type (work, mangled, &tname); 1392 string_delete (&tname); 1400 string_init(&tname); 1405 success = demangle_template (work, mangled, &tname, 1411 string_append (&tname, SCOPE_STRING (work)); 1413 string_prepends(declp, &tname); 1426 string_delete(&tname); 1568 const char **mangled, string *tname) 1576 string_append (tname, "templat 1567 demangle_template_template_parm(struct work_stuff *work, const char **mangled, string *tname) argument 1932 demangle_template(struct work_stuff *work, const char **mangled, string *tname, string *trawname, int is_type, int remember) argument [all...] |
/freebsd-11-stable/contrib/binutils/libiberty/ |
H A D | cplus-dem.c | 1264 string tname; local 1391 success = do_type (work, mangled, &tname); 1392 string_delete (&tname); 1400 string_init(&tname); 1405 success = demangle_template (work, mangled, &tname, 1411 string_append (&tname, SCOPE_STRING (work)); 1413 string_prepends(declp, &tname); 1426 string_delete(&tname); 1568 const char **mangled, string *tname) 1576 string_append (tname, "templat 1567 demangle_template_template_parm(struct work_stuff *work, const char **mangled, string *tname) argument 1932 demangle_template(struct work_stuff *work, const char **mangled, string *tname, string *trawname, int is_type, int remember) argument [all...] |
/freebsd-11-stable/contrib/lua/src/ |
H A D | lauxlib.c | 182 static int typeerror (lua_State *L, int arg, const char *tname) { argument 191 msg = lua_pushfstring(L, "%s expected, got %s", tname, typearg); 299 LUALIB_API int luaL_newmetatable (lua_State *L, const char *tname) { argument 300 if (luaL_getmetatable(L, tname) != LUA_TNIL) /* name already in use? */ 304 lua_pushstring(L, tname); 305 lua_setfield(L, -2, "__name"); /* metatable.__name = tname */ 307 lua_setfield(L, LUA_REGISTRYINDEX, tname); /* registry.name = metatable */ 312 LUALIB_API void luaL_setmetatable (lua_State *L, const char *tname) { argument 313 luaL_getmetatable(L, tname); 318 LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) { argument 333 luaL_checkudata(lua_State *L, int ud, const char *tname) argument [all...] |
/freebsd-11-stable/lib/libc/resolv/ |
H A D | res_findzonecut.c | 278 char tname[NS_MAXDNAME]; local 290 if (ns_makecanon(dname, tname, sizeof tname) < 0) 292 dname = tname; 529 char tname[MAXDNAME]; local 553 tname, sizeof tname) < 0) { 559 nsrr->name = strdup(tname);
|
/freebsd-11-stable/bin/ps/ |
H A D | extern.h | 84 char *tname(KINFO *, VARENT *);
|
/freebsd-11-stable/contrib/mtree/ |
H A D | spec.c | 115 char *buf, *tname, *ntname; local 120 tname = NULL; 173 if ((ntname = realloc(tname, plen)) == NULL) 175 tname = ntname; 178 if (strunvis(tname, p) == -1) 180 p = tname; 196 mtree_err("%s: %s", tname, 204 mtree_err("%s: empty leaf element", tname);
|