Searched refs:tname (Results 1 - 25 of 85) sorted by relevance

1234

/freebsd-10-stable/release/picobsd/tinyware/msh/
H A Dsh5.c25 _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-10-stable/crypto/openssl/crypto/asn1/
H A Dasn1t.h111 # 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-10-stable/usr.sbin/ctm/ctm_rmail/
H A Dctm_rmail.c41 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-10-stable/contrib/ncurses/ncurses/tinfo/
H A Dlib_setup.c494 _nc_setupterm(NCURSES_CONST char *tname, int Filedes, int *errret, bool reuse) argument
500 T((T_CALLED("setupterm(%s,%d,%p)"), _nc_visbuf(tname), Filedes, errret));
502 if (tname == 0) {
503 tname = getenv("TERM");
504 if (tname == 0 || *tname == '\0') {
509 if (strlen(tname) > MAX_NAME_SIZE) {
515 T(("your terminal name is %s", tname));
544 && !strcmp(termp->_termname, tname)
545 && _nc_name_match(termp->type.term_names, tname, "|")) {
628 setupterm(NCURSES_CONST char *tname, int Filedes, int *errret) argument
[all...]
/freebsd-10-stable/usr.sbin/kgzip/
H A Dkgzip.c54 char *tname; /* Name of temporary file */ variable
73 if (asprintf(&tname, "%s/kgzXXXXXXXXXX",
129 if (tname)
130 unlink(tname);
152 if ((fd = mkstemp(tname)) == -1)
155 fn[i++] = tname;
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libzpool/common/
H A Dutil.c100 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-10-stable/usr.sbin/ctm/ctm_smail/
H A Dctm_smail.c212 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-10-stable/usr.sbin/ndiscvt/
H A Dndiscvt.c169 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-10-stable/cddl/contrib/dtracetoolkit/Bin/
H A Dtcpsnoop.d105 tname[(int)self->connp] = execname;
123 tname[(int)self->connp] = execname;
202 tname[(int)this->connp] = 0;
298 self->name = pid && (tname[(int)self->conn_p] == "inetd") ?
299 execname : tname[(int)self->conn_p];
300 self->pid = pid && (tname[(int)self->conn_p] == "inetd") ?
302 tname[(int)self->conn_p] = self->name;
327 self->name = pid && (tname[(int)self->conn_p] == "inetd") ?
328 execname : tname[(int)self->conn_p];
329 self->pid = pid && (tname[(in
[all...]
H A Dtcpsnoop_snv.d107 tname[(int)self->connp] = execname;
125 tname[(int)self->connp] = execname;
204 tname[(int)this->connp] = 0;
300 self->name = pid && (tname[(int)self->conn_p] == "inetd") ?
301 execname : tname[(int)self->conn_p];
302 self->pid = pid && (tname[(int)self->conn_p] == "inetd") ?
304 tname[(int)self->conn_p] = self->name;
329 self->name = pid && (tname[(int)self->conn_p] == "inetd") ?
330 execname : tname[(int)self->conn_p];
331 self->pid = pid && (tname[(in
[all...]
/freebsd-10-stable/cddl/contrib/dtracetoolkit/Net/
H A Dtcpsnoop.d105 tname[(int)self->connp] = execname;
123 tname[(int)self->connp] = execname;
202 tname[(int)this->connp] = 0;
298 self->name = pid && (tname[(int)self->conn_p] == "inetd") ?
299 execname : tname[(int)self->conn_p];
300 self->pid = pid && (tname[(int)self->conn_p] == "inetd") ?
302 tname[(int)self->conn_p] = self->name;
327 self->name = pid && (tname[(int)self->conn_p] == "inetd") ?
328 execname : tname[(int)self->conn_p];
329 self->pid = pid && (tname[(in
[all...]
H A Dtcpsnoop_snv.d107 tname[(int)self->connp] = execname;
125 tname[(int)self->connp] = execname;
204 tname[(int)this->connp] = 0;
300 self->name = pid && (tname[(int)self->conn_p] == "inetd") ?
301 execname : tname[(int)self->conn_p];
302 self->pid = pid && (tname[(int)self->conn_p] == "inetd") ?
304 tname[(int)self->conn_p] = self->name;
329 self->name = pid && (tname[(int)self->conn_p] == "inetd") ?
330 execname : tname[(int)self->conn_p];
331 self->pid = pid && (tname[(in
[all...]
/freebsd-10-stable/contrib/binutils/ld/
H A Dldwrite.c317 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-10-stable/usr.sbin/services_mkdb/
H A Dservices_mkdb.c55 static char tname[MAXPATHLEN]; variable
143 (void)snprintf(tname, sizeof(tname), "%s.tmp", dbname);
144 db = dbopen(tname, O_RDWR | O_CREAT | O_EXCL,
147 err(1, "Error opening temporary database `%s'", tname);
168 err(1, "Error closing temporary database `%s'", tname);
174 if (rename(tname, dbname) == -1 ||
180 err(1, "Cannot rename `%s' to `%s'", tname, dbname);
343 if (tname[0])
344 (void)unlink(tname);
[all...]
/freebsd-10-stable/crypto/heimdal/lib/asn1/
H A Dgen_length.c248 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 Dgen_template.c330 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 Dgen_encode.c388 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-10-stable/lib/libmp/tests/
H A Dlegacy_test.c40 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-10-stable/usr.sbin/btxld/
H A Dbtxld.c114 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-10-stable/contrib/nvi/common/
H A Dexf.c135 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;
421 if (frp->tname != NULL) {
422 (void)unlink(frp->tname);
[all...]
/freebsd-10-stable/contrib/bmake/
H A Dmeta.c246 const char *tname,
261 if ((cp = strrchr(tname, '/'))) {
262 if (cached_realpath(tname, buf)) {
269 tname = buf;
277 if (tname[0] == '/') {
278 strlcpy(buf, tname, sizeof(buf));
280 snprintf(buf, sizeof(buf), "%s/%s", cwd, tname);
284 tname = buf;
288 tp = bmake_strdup(tname);
290 snprintf(mname, mnamelen, "%s.meta", tname);
244 meta_name(char *mname, size_t mnamelen, const char *dname, const char *tname, const char *cwd) argument
466 const char *tname; local
1032 const char *tname; local
[all...]
/freebsd-10-stable/contrib/binutils/libiberty/
H A Dcplus-dem.c1264 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-10-stable/contrib/gcclibs/libiberty/
H A Dcplus-dem.c1264 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-10-stable/contrib/mtree/
H A Dspec.c115 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);
/freebsd-10-stable/lib/libc/resolv/
H A Dres_findzonecut.c278 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);

Completed in 219 milliseconds

1234