/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_mdcf.c | 54 char *tname = METACONFTMP; local 66 if ((tfp = fopen(tname, "w")) == NULL) 67 return (mdsyserror(ep, errno, tname)); 77 (void) mdsyserror(ep, errno, tname); 82 if (meta_print_all(sp, tname, NULL, tfp, options, NULL, ep) != 0) 87 (void) mdsyserror(ep, errno, tname); 97 if (rename(tname, name) != 0) { 99 if ((tfp = fopen(tname, "r")) == NULL) { 117 (void) unlink(tname); 142 (void) unlink(tname); [all...] |
H A D | meta_patch.c | 58 char **tname, /* returned temp file name */ 82 assert(tname != NULL); 85 *tname = NULL; 86 *tname = Malloc(strlen(vname) + strlen(".tmp") + 1); 87 (void) strcpy(*tname, vname); 88 (void) strcat(*tname, ".tmp"); 107 if ((tfp = fopen(*tname, "w")) == NULL) { 108 (void) mdsyserror(ep, errno, *tname); 112 (void) mdsyserror(ep, errno, *tname); 116 (void) mdsyserror(ep, errno, *tname); 47 meta_patch_vfstab( char *cmpname, mdname_t *fsnp, char *vname, char *old_bdevname, int doit, int verbose, char **tname, md_error_t *ep ) argument [all...] |
H A D | meta_systemfile.c | 62 char **tname, /* returned temp file name */ 75 assert(tname != NULL); 80 *tname = Malloc(strlen(sname) + strlen(".tmp") + 1); 81 (void) strcpy(*tname, sname); 82 (void) strcat(*tname, ".tmp"); 93 if ((*tfp = fopen(*tname, "w")) == NULL) { 100 (void) mdsyserror(ep, errno, *tname); 103 Free(*tname); 104 *tname = tempnam("/var/tmp", "svm_"); 105 if (*tname 56 meta_systemfile_copy( char *sname, int doroot, int domddb, int doit, int verbose, char **tname, FILE **tfp, md_error_t *ep ) argument 208 meta_systemfile_append_mdroot( mdname_t *rootnp, char *sname, char *tname, FILE *tfp, int ismeta, int doit, int verbose, md_error_t *ep ) argument 337 meta_systemfile_append_mddb( char *cname, char *sname, char *tname, FILE *tfp, int doit, int verbose, int check, md_error_t *ep ) argument [all...] |
/illumos-gate/usr/src/cmd/oamuser/group/ |
H A D | del_group.c | 55 char tname[] = "/etc/gtmp.XXXXXX"; local 67 if ((fd = mkstemp(tname)) == -1) 72 (void) unlink(tname); 83 (void) unlink(tname); 109 (void) unlink(tname); 115 if (rename(tname, GROUP) != 0) { 116 (void) unlink(tname); 121 (void) unlink(tname);
|
H A D | mod_group.c | 54 char tname[] = "/etc/gtmp.XXXXXX"; local 67 if ((fd = mkstemp(tname)) == -1) 72 (void) unlink(tname); 83 (void) unlink(tname); 109 (void) unlink(tname); 114 if (rename(tname, GROUP) != 0) { 115 (void) unlink(tname); 120 (void) unlink(tname);
|
/illumos-gate/usr/src/cmd/acct/lib/ |
H A D | devtolin.c | 48 char tname[LSZ]; /* linename */ member in struct:tlist 75 return(tp->tname); 102 CPYN(tp->tname, file_name+5); 112 CPYN(tp->tname, "?");
|
/illumos-gate/usr/src/cmd/avs/nsctl/ |
H A D | nscadm.c | 256 char tname[_NSC_MAXNAME + 1]; local 268 (void) strncpy(tname, rmap->name, _NSC_MAXNAME); 269 (void) strcpy(&tname[strlen(tname)], " "); 270 tname[_NSC_MAXNAME] = '\0'; 272 "%d:\tname %s\toffset 0x%x size 0x%x inuse 0x%x\n"), 273 i, tname, rmap->offset, rmap->size, rmap->inuse);
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_dictlog.cc | 52 db_dictlog_entry::db_dictlog_entry(int a, vers * v, char *tname, argument 57 table_name = tname; 119 char *tname; local 122 if ((tname = lentry->get_table_name())) { 123 delete tname;
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | admutil.c | 108 * args: tname - temp file name 114 open_temp(tname) 115 char *tname; 117 FILE *fp; /* fp associated with tname */ 130 if (access(tname, 0) != -1) { 134 fp = fopen(tname, "w"); 147 * tname - name of source file 152 replace(fname, tname) 154 char *tname; 160 if (rename(tname, bu 281 char *tname; /* name of tempfile */ local [all...] |
/illumos-gate/usr/src/test/libc-tests/tests/newlocale/ |
H A D | newlocale_test.c | 137 char *tname = "newlocale_negative"; local 140 t = test_start(tname); 166 char *tname = "newlocale_categories"; local 169 t = test_start(tname); 201 char *tname = "newlocale_composite"; local 204 t = test_start(tname);
|
/illumos-gate/usr/src/test/libc-tests/tests/nl_langinfo/ |
H A D | nl_langinfo_test.c | 181 char tname[128]; local 185 (void) snprintf(tname, sizeof (tname), "nl_langinfo (locale %s)", 187 t = test_start(tname); 213 char tname[128]; local 218 (void) snprintf(tname, sizeof (tname), "nl_langinfo_l (locale %s)", 220 t = test_start(tname);
|
/illumos-gate/usr/src/lib/lvm/libpreen/common/ |
H A D | mdpreen.c | 142 char *tname = NULL; local 199 parse_device(NULL, uname, &tname, &setname); 200 Free(tname);
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | sttydefs.c | 324 char *tname = "/etc/.ttydefs"; local 346 tfp = open_temp(tname); 358 (void)unlink(tname); 363 if (rename(tname, TTYDEFS) != 0 ) { 365 (void)unlink(tname); 374 * args: tname - temp file name 378 open_temp(tname) 379 char *tname; 381 FILE *fp; /* fp associated with tname */ 394 if (access(tname, [all...] |
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/ |
H A D | machdep.c | 163 char tname; local 167 tname = 'd'; 170 tname = 'i'; 181 cpu_id, tname, utp->index, utp->va_tag,
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/ |
H A D | pictures.c | 215 char *tname; /* pathname */ local 235 if ( (tname = tempnam(TEMPDIR, "dpost")) == NULL ) 237 if ( (fp = fopen(tname, "w+")) == NULL ) 238 error(FATAL, "can't open %s", tname); 239 unlink(tname); 240 free(tname); 262 char *tname; /* temp file pathname - for *fp_pic */ local 279 if ( (tname = tempnam(TEMPDIR, "dpost")) == NULL ) 281 if ( (fp_pic = fopen(tname, "w+")) == NULL ) 282 error(FATAL, "can't open in-line picture file %s", tname); [all...] |
/illumos-gate/usr/src/lib/lvm/libsvm/common/ |
H A D | update_mdconf.c | 220 * or kernel/drv/md.conf of the target system into a temporary file tname. 224 * *tname - file into which the modified bootlist will be written to. 237 char *tname, /* name of the temporary file */ 256 if ((tfp = fopen(tname, "a")) == NULL) 319 * *tname - name of the file that has md.conf + new mddb_boolist entries 330 char **tname /* temp file name */ 339 assert(tname != NULL); 342 *tname = tmpnam(NULL); 349 if ((retval = copyfile(mdconf, *tname)) == RET_ERROR) { 351 mdconf, *tname); 235 snarf_n_modify_bootlist( FILE *fp, char *tname, char *buf, int bufsz, ftype_t mddb_file ) argument [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_findzonecut.c | 273 char tname[NS_MAXDNAME]; local 285 if (ns_makecanon(dname, tname, sizeof tname) < 0) 287 dname = tname; 524 char tname[MAXDNAME]; local 548 tname, sizeof tname) < 0) { 554 nsrr->name = strdup(tname);
|
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | _open.c | 142 open_mnt(char *fname, char *tname, int flags, int mode) argument 153 sprintf(tmp_name, "%s%s%s", "/tmp/", tname, "XXXXXX");
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcon1.c | 60 char tname[NSZ]; /* user name */ member in struct:tbuf 373 if(tp->tname[0] != '\0') { /* Someone logged in without */ 376 CPYN(cb.ct_name, tp->tname); 390 CPYN(tp->tname, wb.ut_name); 396 if(tp->tname[0] != '\0') { /* Someone logged off */ 399 CPYN(cb.ct_name, tp->tname); 409 tp->tname[0] = '\0';
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | putdev.c | 860 char *tname; /* name of temp devtab file */ local 957 if (fd = opennewdevtab(&tname)) { 983 noerr = mknewdevtab(tname); 986 (void) rmnewdevtab(tname);
|
/illumos-gate/usr/src/test/libc-tests/tests/common/ |
H A D | test_common.c | 207 const char *tname, ...) 219 va_start(args, tname); 220 (void) vasprintf(&s, tname, args); 206 test_run(int nthr, void (*func)(test_t, void *), void *arg, const char *tname, ...) argument
|
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | util.c | 125 char *cname, *tname; local 130 tname = calloc(1, strlen(cname) + 2); 131 (void) strcpy(tname, cname); 133 tname[strlen(tname)] = '0' + np; 134 show_vdev_stats(tname, ctype, cnv, indent + 2); 135 free(tname);
|
/illumos-gate/usr/src/lib/libxcurses/src/tic/ |
H A D | ticparse.c | 308 char *p, *q, *first, *fn, *long_name, dir[2], tname[TERM_NAMES_LENGTH]; local 314 (void) strncpy(tname, string_table + term_names, TERM_NAMES_LENGTH); 315 DEBUG(7, "Terminal names are \"%s\".\n", tname); 316 for (p = tname + strlen(tname); tname < p; --p) { 322 if (tname == p) 323 long_name = tname; 324 for (p = tname; p < long_name; ++p) { 326 if (tname < 344 err_abort(m_strmsg(long_path), *tname, tname); local 346 warning(m_strmsg(more_than_one), tname); local 376 warning(m_strmsg(synonym), tname); local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | common.c | 320 static char tname[32]; local 325 (void) sprintf(tname, "Tag%d", tagtype); 326 return (tname); 337 static char tname[32]; local 342 (void) sprintf(tname, "Code%d", codetype); 343 return (tname);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | modhash.c | 490 const char *tname; local 496 tname = tbuf; 498 tname = htep->hte_type; 503 mdb_printf("%?s", tname);
|