Home
last modified time | relevance | path

Searched refs:tmp_name (Results 1 – 25 of 38) sorted by relevance

12

/titanic_41/usr/src/cmd/ypcmd/
H A Dypxfr.c985 char tmp_name[MAXNAMLEN + 1]; local
1010 mk_tmpname(yptempname_prefix, tmp_name);
1012 if (!new_mapfiles(tmp_name)) {
1014 "Can't create temp map %s.\n", tmp_name);
1019 if ((hgstatus = ypxfrd_getdbm(tmp_name, master, source, map)) < 0)
1025 db = dbm_open(tmp_name, O_RDWR + O_CREAT + O_TRUNC, 0644);
1028 "Can't dbm init temp map %s.\n", tmp_name);
1029 del_mapfiles(tmp_name);
1035 if (!get_map(tmp_name, pushstat)) {
1036 del_mapfiles(tmp_name);
[all …]
/titanic_41/usr/src/lib/libbc/libc/sys/common/
H A D_open.c146 char tmp_name[64]; in open_mnt() local
153 sprintf(tmp_name, "%s%s%s", "/tmp/", tname, "XXXXXX"); in open_mnt()
154 mktemp(tmp_name); in open_mnt()
156 if ((fd_out = _fopen(tmp_name, "a+")) == NULL) { in open_mnt()
181 fd = _syscall(SYS_openat, AT_FDCWD, tmp_name, O_RDONLY); in open_mnt()
183 if (fd == -1 || unlink(tmp_name) == -1) in open_mnt()
343 char tmp_name[] = "/tmp/printcap.XXXXXX"; in open_printcap() local
348 mktemp(tmp_name); in open_printcap()
349 if ((fd = _fopen(tmp_name, "a+")) == NULL) in open_printcap()
361 tmp_file = _syscall(SYS_openat, AT_FDCWD, tmp_name, O_RDONLY); in open_printcap()
[all …]
/titanic_41/usr/src/uts/sun4u/chicago/os/
H A Dchicago.c209 char tmp_name[sizeof (OBP_CPU)]; in plat_lgrp_init() local
231 bzero(tmp_name, sizeof (tmp_name)); in plat_lgrp_init()
232 if (prom_bounded_getprop(curnode, OBP_DEVICETYPE, tmp_name, in plat_lgrp_init()
233 sizeof (tmp_name)) == -1 || strcmp(tmp_name, OBP_CPU) != 0) in plat_lgrp_init()
/titanic_41/usr/src/uts/sun4u/os/
H A Decc.c204 char tmp_name[MAXSYSNAME]; in error_init() local
234 (prom_getprop(node, "reset-reason", tmp_name) != -1)) { in error_init()
236 cmn_err(CE_CONT, "System booting after %s\n", tmp_name); in error_init()
237 } else if (strncmp(tmp_name, "FATAL", 5) == 0) { in error_init()
239 "System booting after fatal error %s\n", tmp_name); in error_init()
H A Dfillsysinfo.c244 char tmp_name[MAXSYSNAME]; in map_wellknown() local
288 bzero(tmp_name, MAXSYSNAME); in map_wellknown()
289 if (GETPROP(curnode, OBP_NAME, (caddr_t)tmp_name) != -1) in map_wellknown()
290 fill_address(curnode, tmp_name); in map_wellknown()
291 if (GETPROP(curnode, OBP_DEVICETYPE, tmp_name) != -1 && in map_wellknown()
292 strcmp(tmp_name, "cpu") == 0) { in map_wellknown()
295 if (strcmp(tmp_name, "tod") == 0) in map_wellknown()
297 if (sok && (strcmp(tmp_name, "memory-controller") == 0) && in map_wellknown()
/titanic_41/usr/src/uts/sun4u/schumacher/os/
H A Dschumacher.c239 char tmp_name[MAXSYSNAME]; in plat_lgrp_init() local
261 bzero(tmp_name, MAXSYSNAME); in plat_lgrp_init()
262 if (prom_getprop(curnode, OBP_NAME, (caddr_t)tmp_name) == -1 || in plat_lgrp_init()
263 prom_getprop(curnode, OBP_DEVICETYPE, tmp_name) == -1 || in plat_lgrp_init()
264 strcmp(tmp_name, "cpu") != 0) in plat_lgrp_init()
/titanic_41/usr/src/uts/sun4u/enchilada/os/
H A Denchilada.c256 char tmp_name[MAXSYSNAME]; in plat_lgrp_init() local
278 bzero(tmp_name, MAXSYSNAME); in plat_lgrp_init()
279 if (prom_getprop(curnode, OBP_NAME, (caddr_t)tmp_name) == -1 || in plat_lgrp_init()
280 prom_getprop(curnode, OBP_DEVICETYPE, tmp_name) == -1 || in plat_lgrp_init()
281 strcmp(tmp_name, "cpu") != 0) in plat_lgrp_init()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dset_ccache.c60 const char *tmp_name = NULL; local
63 kg_get_ccache_name (&err, &tmp_name);
68 gss_out_name = (char *)tmp_name;
/titanic_41/usr/src/cmd/syseventadm/
H A Dsyseventadm.c558 char tmp_name[MAXPATHLEN+1]; in remove_file() local
575 (void) strcpy(tmp_name, root_dir); in remove_file()
576 (void) strcat(tmp_name, SYSEVENT_CONFIG_DIR); in remove_file()
577 (void) strcat(tmp_name, "/tmp.XXXXXX"); in remove_file()
578 if (mktemp(tmp_name) == NULL) { in remove_file()
583 if (creat(tmp_name, 0644) == -1) { in remove_file()
585 whoami, tmp_name, strerror(errno)); in remove_file()
589 tmp_fp = fopen(tmp_name, "a"); in remove_file()
592 whoami, tmp_name, strerror(errno)); in remove_file()
593 (void) unlink(tmp_name); in remove_file()
[all …]
/titanic_41/usr/src/lib/libbsm/common/
H A Daudit_crontab.c48 static int audit_crontab_get_diffs(char *cf, char *tmp_name,
167 audit_crontab_get_diffs(char *cf, char *tmp_name, char **bufptr) in audit_crontab_get_diffs() argument
196 if (stat(tmp_name, &st_tmp) == -1) { in audit_crontab_get_diffs()
200 tmp_name, strerror(errno)); in audit_crontab_get_diffs()
/titanic_41/usr/src/uts/sun4u/boston/os/
H A Dboston.c450 char tmp_name[sizeof (OBP_CPU) + 1]; /* extra padding */ in plat_lgrp_init() local
472 bzero(tmp_name, sizeof (tmp_name)); in plat_lgrp_init()
473 if (prom_bounded_getprop(curnode, OBP_DEVICETYPE, tmp_name, in plat_lgrp_init()
474 sizeof (OBP_CPU)) == -1 || strcmp(tmp_name, OBP_CPU) != 0) in plat_lgrp_init()
/titanic_41/usr/src/uts/sun4u/seattle/os/
H A Dseattle.c452 char tmp_name[sizeof (OBP_CPU) + 1]; /* extra padding */ in plat_lgrp_init() local
474 bzero(tmp_name, sizeof (tmp_name)); in plat_lgrp_init()
475 if (prom_bounded_getprop(curnode, OBP_DEVICETYPE, tmp_name, in plat_lgrp_init()
476 sizeof (OBP_CPU)) == -1 || strcmp(tmp_name, OBP_CPU) != 0) in plat_lgrp_init()
/titanic_41/usr/src/cmd/sgs/mcs/common/
H A Dfile.c115 artmpfile.tmp_name = tempnam(TMPDIR, "mcs2"); in each_file()
116 if ((fdartmp = open(artmpfile.tmp_name, in each_file()
131 prog, artmpfile.tmp_name, cur_file); in each_file()
146 elftmpfile.tmp_name = tempnam(TMPDIR, "mcs1"); in each_file()
704 if ((fdtmp = open(elftmpfile.tmp_name, O_RDWR | O_TRUNC | O_CREAT, in build_file()
707 prog, elftmpfile.tmp_name); in build_file()
714 prog, elftmpfile.tmp_name); in build_file()
1276 if ((fdtmp3 = open(elftmpfile.tmp_name, O_RDONLY)) == -1) { in copy_elf_file_to_temp_ar_file()
1278 prog, elftmpfile.tmp_name); in copy_elf_file_to_temp_ar_file()
1282 (void) stat(elftmpfile.tmp_name, &stbuf); /* for size of file */ in copy_elf_file_to_temp_ar_file()
[all …]
H A Dmain.c264 if ((temp_file->tmp_name != NULL) && (temp_file->tmp_unlink)) in free_tempfile()
265 (void) unlink(temp_file->tmp_name); in free_tempfile()
/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_info.c542 char tmp_name[NETBIOS_NAME_SZ]; in smb_tonetbiosname() local
552 rc = ucstooem(tmp_name, wtmp_name, NETBIOS_NAME_SZ, in smb_tonetbiosname()
555 len = strlen(tmp_name); in smb_tonetbiosname()
560 (void) smb_strupr(tmp_name); in smb_tonetbiosname()
561 (void) memcpy(nb_name, tmp_name, len); in smb_tonetbiosname()
/titanic_41/usr/src/cmd/make/bin/
H A Ddoname.cc2171 Name tmp_name; in build_command_strings() local
2201 tmp_name = target; in build_command_strings()
2202 if(tmp_name != NULL) { in build_command_strings()
2203 if (tmp_name->has_vpath_alias_prop) { in build_command_strings()
2204 tmp_name = get_prop(tmp_name->prop, vpath_alias_prop)-> in build_command_strings()
2208 (void) SETVAR(c_at, tmp_name, false); in build_command_strings()
2210 tmp_name = line->body.line.star; in build_command_strings()
2211 if(tmp_name != NULL) { in build_command_strings()
2212 if (tmp_name->has_vpath_alias_prop) { in build_command_strings()
2213 tmp_name = get_prop(tmp_name->prop, vpath_alias_prop)-> in build_command_strings()
[all …]
/titanic_41/usr/src/cmd/newtask/
H A Dnewtask.c659 char *tmp_name; in match_user() local
670 if ((tmp_name = getlogin()) == NULL || in match_user()
671 (pw = getpwnam(tmp_name)) == NULL || (pw->pw_uid != uid) || in match_user()
703 tmp_name = NULL; in match_user()
722 tmp_name = pw->pw_name; in match_user()
727 if (tmp_name == NULL) { in match_user()
/titanic_41/usr/src/lib/libfru/libfrupicl/
H A Dfrupicl.c136 char *tmp_name = NULL; in fpt_get_name_from_hdl() local
142 &tmp_name)) != PICL_SUCCESS) { in fpt_get_name_from_hdl()
150 free(tmp_name); in fpt_get_name_from_hdl()
159 *name = strdup(tmp_name); in fpt_get_name_from_hdl()
162 size_t buf_size = strlen(tmp_name) + strlen(label) + in fpt_get_name_from_hdl()
166 free(tmp_name); in fpt_get_name_from_hdl()
170 snprintf(tmp, buf_size, "%s?%s=%s", tmp_name, in fpt_get_name_from_hdl()
175 free(tmp_name); in fpt_get_name_from_hdl()
/titanic_41/usr/src/lib/libfru/libfrupicltree/
H A Dfrupicltree.c148 char *tmp_name = NULL; in fpt_get_name_from_hdl() local
154 &tmp_name)) != PICL_SUCCESS) { in fpt_get_name_from_hdl()
162 free(tmp_name); in fpt_get_name_from_hdl()
171 *name = strdup(tmp_name); in fpt_get_name_from_hdl()
173 size_t buf_size = strlen(tmp_name) + strlen(label) + in fpt_get_name_from_hdl()
177 free(tmp_name); in fpt_get_name_from_hdl()
181 snprintf(tmp, buf_size, "%s?%s=%s", tmp_name, in fpt_get_name_from_hdl()
186 free(tmp_name); in fpt_get_name_from_hdl()
/titanic_41/usr/src/uts/sun4v/os/
H A Derror.c783 char tmp_name[MAXSYSNAME]; in error_init() local
825 (prom_getprop(node, "reset-reason", tmp_name) != -1)) { in error_init()
827 cmn_err(CE_CONT, "System booting after %s\n", tmp_name); in error_init()
828 } else if (strncmp(tmp_name, "FATAL", 5) == 0) { in error_init()
830 "System booting after fatal error %s\n", tmp_name); in error_init()
/titanic_41/usr/src/uts/common/fs/hsfs/
H A Dhsfs_rrip.c443 char *tmp_name, /* temp storage for original name */ in rrip_namecopy() argument
488 (void) strcpy(tmp_name, from); /* keep original */ in rrip_namecopy()
489 size = hs_uppercase_copy(tmp_name, from, (int)strlen(from)); in rrip_namecopy()
/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c1443 char tmp_name[MAXPATHLEN]; in soft_keystore_setpin() member
1693 (void) snprintf(obj->tmp_name, MAXPATHLEN, "%s/%s%s", in soft_keystore_setpin()
1697 obj->orig_name, obj->tmp_name) != 0) { in soft_keystore_setpin()
1715 (void) rename(tmp->tmp_name, tmp->orig_name); in soft_keystore_setpin()
2474 char orig_name[MAXPATHLEN], tmp_name[MAXPATHLEN], in soft_keystore_modify_obj() local
2520 (void) snprintf(tmp_name, MAXPATHLEN, "%s/%s%s", in soft_keystore_modify_obj()
2526 (void) snprintf(tmp_name, MAXPATHLEN, "%s/%s%s", in soft_keystore_modify_obj()
2531 tmp_fd = open_nointr(tmp_name, in soft_keystore_modify_obj()
2636 if (rename(tmp_name, orig_name) != 0) { in soft_keystore_modify_obj()
2637 (void) unlink(tmp_name); in soft_keystore_modify_obj()
[all …]
/titanic_41/usr/src/cmd/pg/
H A Dpg.c124 static char tmp_name[] = "/tmp/pgXXXXXX"; variable
1169 if ((fd = mkstemp(tmp_name)) < 0) {
1170 (void) perror(tmp_name);
1174 if ((tmp_fou = fopen(tmp_name, "w")) == NULL) {
1175 (void) perror(tmp_name);
1178 if ((tmp_fin = fopen(tmp_name, "r")) == NULL) {
1179 (void) perror(tmp_name);
1796 (void) unlink(tmp_name); in end_it()
/titanic_41/usr/src/lib/libipsecutil/common/
H A Dalgs.c194 char *tmp_name; in write_new_algfile() local
202 tmp_name = mktemp(tmp_name_template); in write_new_algfile()
204 fd = open(tmp_name, O_WRONLY|O_CREAT|O_EXCL, CFG_PERMS); in write_new_algfile()
328 if (rename(tmp_name, INET_IPSECALGSFILE) == -1) in write_new_algfile()
/titanic_41/usr/src/cmd/rmformat/
H A Drmf_misc.c349 char tmp_name[PATH_MAX]; in check_and_unmount_scsi() local
387 (void) snprintf(tmp_name, PATH_MAX, "/dev/%s", in check_and_unmount_scsi()
390 tmp_name[strlen("/dev/dsk/c0t0d0s")] = '\0'; in check_and_unmount_scsi()
400 if (strncmp(mntp->mnt_special, tmp_name, strlen(tmp_name))) { in check_and_unmount_scsi()
407 "%s%d", tmp_name, i); in check_and_unmount_scsi()
428 "%s%d:%d", tmp_name, i, j); in check_and_unmount_scsi()
447 "%s%d:%c", tmp_name, i, 'b' + j); in check_and_unmount_scsi()

12