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

123

/illumos-gate/usr/src/cmd/oamuser/group/
H A Ddel_group.c55 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 Dmod_group.c54 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/saf/
H A Dadmutil.c108 * 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...]
H A Dpmadm.c557 char *tname; /* temp file name */ local
586 tname = make_tempname(fname);
587 tfp = open_temp(tname);
590 (void) unlink(tname);
596 (void) unlink(tname);
602 (void) unlink(tname);
607 replace(fname, tname);
647 char *tname; /* temp file name */ local
678 tname = make_tempname(fname);
679 tfp = open_temp(tname);
[all...]
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/
H A Dpictures.c215 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/libxcurses/src/tic/
H A Dticparse.c308 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/lib/smbclnt/libfksmbfs/common/
H A Dfake_rename.c87 char *tname = NULL; local
95 if ((error = fake_lookup_dir(topath, &tdvp, &tname)) != 0)
114 error = VOP_RENAME(fdvp, fname, tdvp, tname, CRED(), NULL, 0);
/illumos-gate/usr/src/cmd/acct/lib/
H A Ddevtolin.c47 char tname[LSZ]; /* linename */ member in struct:tlist
75 return (tp->tname);
107 CPYN(tp->tname, file_name+5);
119 CPYN(tp->tname, "?");
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dgen_struct_layout.c100 static int get_field_info(char *tname, char *fname, char *dotname,
720 do_start(char *sname, char *tname) argument
723 do_start_sizeof(tname, NULL);
740 do_start_sizeof(char *tname, char *rtname) argument
747 rtname = tname;
752 errx(1, "Couldn't resolve type %s", tname);
755 errx(1, "Couldn't get size for type %s", tname);
757 errx(1, "Invalid type size 0 for %s", tname);
760 (void) snprintf(comment, sizeof (comment), "sizeof (%s)", tname);
765 do_scalar_field(char *tname, cha argument
786 do_array_field(char *tname, char *fname, int _sign, char *dotfield) argument
817 do_array_type(char *tname, char *fname, int _sign) argument
844 char *tname; /* top type name, i.e. the struct */ member in struct:gfinfo
862 get_field_info(char *tname, char *fname, char *dotname, int *offp, int *tidp) argument
[all...]
/illumos-gate/usr/src/test/libc-tests/tests/nl_langinfo/
H A Dnl_langinfo_test.c181 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/libnisdb/
H A Ddb_dictlog.cc52 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/lib/libzpool/common/
H A Dutil.c118 char *cname, *tname; local
123 tname = calloc(1, strlen(cname) + 2);
124 (void) strcpy(tname, cname);
126 tname[strlen(tname)] = '0' + np;
127 show_vdev_stats(tname, ctype, cnv, indent + 2);
128 free(tname);
/illumos-gate/usr/src/cmd/ttymon/
H A Dsttydefs.c324 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/tools/btxld/
H A Dbtxld.c107 static const char *tname; /* Temporary output file */ variable
183 if (tname != NULL) {
184 add_version(tname, oname, version);
190 if (rename(tname, oname))
191 err(2, "%s: Can't rename to %s", tname, oname);
192 free((void *)(intptr_t)tname);
193 tname = NULL;
204 if (tname) {
205 (void) remove(tname);
206 free((void *)(intptr_t)tname);
[all...]
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dmachdep.c162 char tname; local
166 tname = 'd';
169 tname = 'i';
180 cpu_id, tname, utp->index, utp->va_tag,
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dcommon.c320 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/test/libc-tests/tests/newlocale/
H A Dnewlocale_test.c137 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/cmd/acct/
H A Dacctcon1.c60 char tname[NSZ]; /* user name */ member in struct:tbuf
374 if(tp->tname[0] != '\0') { /* Someone logged in without */
377 CPYN(cb.ct_name, tp->tname);
391 CPYN(tp->tname, wb.ut_name);
397 if(tp->tname[0] != '\0') { /* Someone logged off */
400 CPYN(cb.ct_name, tp->tname);
410 tp->tname[0] = '\0';
H A Dacctcon.c60 char tname[NSZ]; /* user name */ member in struct:tbuf
349 if (tp->tname[0] != '\0') {
351 CPYN(cb.ct_name, tp->tname);
364 CPYN(tp->tname, wb.ut_name);
368 if (tp->tname[0] != '\0') { /* Someone logged off */
371 CPYN(cb.ct_name, tp->tname);
382 tp->tname[0] = '\0';
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/
H A Dpicld_pluginutil_impl.h91 char *tname; member in struct:__anon1120
152 #define tablecmd_tname u.table.tname
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlauxlib.h53 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);
H A Dlauxlib.c166 static int typeerror (lua_State *L, int narg, const char *tname) { argument
168 tname, luaL_typename(L, narg));
233 LUALIB_API int luaL_newmetatable (lua_State *L, const char *tname) { argument
234 luaL_getmetatable(L, tname); /* try to get metatable */
240 lua_setfield(L, LUA_REGISTRYINDEX, tname); /* registry.name = metatable */
245 LUALIB_API void luaL_setmetatable (lua_State *L, const char *tname) { argument
246 luaL_getmetatable(L, tname);
251 LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) { argument
255 luaL_getmetatable(L, tname); /* get correct metatable */
266 LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) { argument
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_findzonecut.c269 char tname[NS_MAXDNAME]; local
281 if (ns_makecanon(dname, tname, sizeof tname) < 0)
283 dname = tname;
520 char tname[MAXDNAME]; local
544 tname, sizeof tname) < 0) {
550 nsrr->name = strdup(tname);
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dio.c316 char *tname; /* name used with >; */ member in struct:fdsave
914 char *tname, *sp, *ep; local
929 tname = sp = (char*)stakalloc((len=strlen(name)) + 5);
944 rename(tname,name);
947 unlink(tname);
950 return(tname);
970 char *tname=0, *after="", *trace = shp->st.trap[SH_DEBUGTRAP]; local
1146 tname = io_usename(fname,&perm,0);
1176 if((fd=sh_open(tname?tname
[all...]
/illumos-gate/usr/src/cmd/mailx/
H A Doptim.c198 char tname[300]; local
204 nstrcpy(tname, sizeof (tname), name);
205 np = strrchr(tname, '!');
209 hp = strrchr(tname, '!');
211 hp = tname;

Completed in 279 milliseconds

123