Searched defs:tmp_file (Results 1 - 6 of 6) sorted by relevance
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | getzoneent.c | 271 FILE *index_file, *tmp_file; local 321 if ((tmp_file = fdopen(tmp_file_desc, "w")) == NULL) { 360 (void) fputs(buf, tmp_file); 367 (void) fputs(buf, tmp_file); 453 (void) fprintf(tmp_file, "%s:%s:%s%s%s:%s\n", zone_name, 461 if (fclose(tmp_file) != 0) { 462 tmp_file = NULL; 466 tmp_file = NULL; 479 if (tmp_file != NULL) 480 (void) fclose(tmp_file); [all...] |
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | _open.c | 344 int tmp_file; local 361 tmp_file = _syscall(SYS_openat, AT_FDCWD, tmp_name, O_RDONLY); 362 if (tmp_file == -1 || unlink(tmp_name) == -1) 365 return (tmp_file);
|
/illumos-gate/usr/src/cmd/hal/addons/cpufreq/ |
H A D | addon-cpufreq.c | 138 power_conf_hal_type pc_hal_type, char *tmp_file) 156 if (tmp_file == NULL) { 160 sprintf (cp_cmd_str, "/usr/bin/cp %s %s", POWER_CONF_FILE, tmp_file); 163 POWER_CONF_FILE, tmp_file, strerror (errno))); 167 pfile = fopen (tmp_file, "r+"); 170 tmp_file, strerror (errno))); 248 tmp_file, strerror (errno))); 137 edit_power_conf_file(pconf_edit_type pc_edit_type, power_conf_hal_type pc_hal_type, char *tmp_file) argument
|
/illumos-gate/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); 1540 char *tmp_file = NULL; local 1928 char *file_name = NULL, *tmp_file = NULL; local [all...] |
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgtrans.c | 929 tmp_file[L_tmpnam+1]; local 974 (void) tmpnam(tmp_file); /* temporary file name */ 975 if ((list_fd = open(tmp_file, O_RDWR | O_CREAT, 0644)) == -1) { 977 logerr(pkg_gt(MSG_NOTMPFIL), tmp_file); local 1001 logerr(pkg_gt(MSG_NOTMPFIL), tmp_file); local 1088 logerr(pkg_gt(MSG_NOTMPFIL), tmp_file); local 1101 logerr(pkg_gt(MSG_NOTMPFIL), tmp_file); local 1146 (void) unlink(tmp_file); 1152 (void) unlink(tmp_file);
|
H A D | pkgweb.c | 1832 static char tmp_file[PATH_MAX] = ""; local 1841 if (((len = snprintf(tmp_file, PATH_MAX, "%s/%sXXXXXX", tmpdir, 1848 if ((fd = mkstemp(tmp_file)) == -1) { 1849 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTMPFIL), tmp_file); 1854 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTMPFIL), tmp_file); 1859 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTMPFIL), tmp_file); 1864 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTMPFIL), tmp_file); 1870 gettext(ERR_KEYSTORE_FORM), tmp_file); 1876 gettext(ERR_KEYSTORE_FORM), tmp_file); 1885 ret = tmp_file; 2152 char tmp_file[PATH_MAX]; local [all...] |
Completed in 76 milliseconds