Searched refs:tmp_file (Results 1 – 7 of 7) sorted by relevance
/titanic_41/usr/src/lib/libzonecfg/common/ |
H A D | getzoneent.c | 271 FILE *index_file, *tmp_file; in putzoneent() local 321 if ((tmp_file = fdopen(tmp_file_desc, "w")) == NULL) { in putzoneent() 360 (void) fputs(buf, tmp_file); in putzoneent() 367 (void) fputs(buf, tmp_file); in putzoneent() 453 (void) fprintf(tmp_file, "%s:%s:%s%s%s:%s\n", zone_name, in putzoneent() 461 if (fclose(tmp_file) != 0) { in putzoneent() 462 tmp_file = NULL; in putzoneent() 466 tmp_file = NULL; in putzoneent() 479 if (tmp_file != NULL) in putzoneent() 480 (void) fclose(tmp_file); in putzoneent()
|
/titanic_41/usr/src/lib/libsecdb/ |
H A D | svc-rbac | 60 tmp_file=$tmp_rbac/file 88 /usr/bin/rm -f $tmp_file 107 /usr/bin/grep -v '^#' $frag >> $tmp_file 112 echo $tmp_file $f | $irbac
|
/titanic_41/usr/src/cmd/krb5/ldap_util/ |
H A D | kdb5_ldap_services.c | 1076 char *tmp_file = NULL; local 1104 tmp_file = (char *)malloc(strlen(file_name) + 4 + 1); 1105 if (tmp_file == NULL) { 1110 snprintf (tmp_file, strlen(file_name) + 4 + 1, "%s%s", file_name, ".tmp"); 1113 tmpfd = creat(tmp_file, S_IRUSR|S_IWUSR); 1131 unlink(tmp_file); 1140 link(tmp_file, file_name); 1144 unlink(tmp_file); 1150 if (tmp_file) 1151 free(tmp_file); [all …]
|
/titanic_41/usr/src/lib/libbc/libc/sys/common/ |
H A D | _open.c | 344 int tmp_file; in open_printcap() local 361 tmp_file = _syscall(SYS_openat, AT_FDCWD, tmp_name, O_RDONLY); in open_printcap() 362 if (tmp_file == -1 || unlink(tmp_name) == -1) in open_printcap() 365 return (tmp_file); in open_printcap()
|
/titanic_41/usr/src/cmd/hal/addons/cpufreq/ |
H A D | addon-cpufreq.c | 138 power_conf_hal_type pc_hal_type, char *tmp_file) in edit_power_conf_file() argument 156 if (tmp_file == NULL) { in edit_power_conf_file() 160 sprintf (cp_cmd_str, "/usr/bin/cp %s %s", POWER_CONF_FILE, tmp_file); in edit_power_conf_file() 163 POWER_CONF_FILE, tmp_file, strerror (errno))); in edit_power_conf_file() 167 pfile = fopen (tmp_file, "r+"); in edit_power_conf_file() 170 tmp_file, strerror (errno))); in edit_power_conf_file() 248 tmp_file, strerror (errno))); in edit_power_conf_file()
|
/titanic_41/usr/src/lib/libpkg/common/ |
H A D | pkgweb.c | 1832 static char tmp_file[PATH_MAX] = ""; in write_ca_file() local 1841 if (((len = snprintf(tmp_file, PATH_MAX, "%s/%sXXXXXX", tmpdir, in write_ca_file() 1848 if ((fd = mkstemp(tmp_file)) == -1) { in write_ca_file() 1849 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTMPFIL), tmp_file); in write_ca_file() 1854 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTMPFIL), tmp_file); in write_ca_file() 1859 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTMPFIL), tmp_file); in write_ca_file() 1864 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTMPFIL), tmp_file); in write_ca_file() 1870 gettext(ERR_KEYSTORE_FORM), tmp_file); in write_ca_file() 1876 gettext(ERR_KEYSTORE_FORM), tmp_file); in write_ca_file() 1885 ret = tmp_file; in write_ca_file() [all …]
|
H A D | pkgtrans.c | 929 tmp_file[L_tmpnam+1]; in wdsheader() local 974 (void) tmpnam(tmp_file); /* temporary file name */ in wdsheader() 975 if ((list_fd = open(tmp_file, O_RDWR | O_CREAT, 0644)) == -1) { in wdsheader() 977 logerr(pkg_gt(MSG_NOTMPFIL), tmp_file); in wdsheader() 1001 logerr(pkg_gt(MSG_NOTMPFIL), tmp_file); in wdsheader() 1088 logerr(pkg_gt(MSG_NOTMPFIL), tmp_file); in wdsheader() 1101 logerr(pkg_gt(MSG_NOTMPFIL), tmp_file); in wdsheader() 1146 (void) unlink(tmp_file); in wdsheader() 1152 (void) unlink(tmp_file); in wdsheader()
|