Searched defs:tmpfile (Results 1 - 25 of 31) sorted by relevance

12

/illumos-gate/usr/src/lib/libast/common/stdio/
H A Dtmpfile.c27 tmpfile(void) function
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dtmpfile.c29 * tmpfile - return a pointer to an update file that can be
41 tmpfile() function
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Dinz_inval.c38 char *tmpfile; local
82 tmpfile = strdup(template);
83 assert(tmpfile != NULL);
84 fd = mkstemp(tmpfile);
109 (void) unlink(tmpfile);
110 free(tmpfile);
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dtmpfile.c33 * tmpfile - return a pointer to an update file that can be
115 tmpfile(void) function
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_write.c95 char *tmpfile; local
101 if ((tmpfile = malloc(size)) == NULL)
104 if (snprintf(tmpfile, size, "%sXXXXXX", file) >= size) {
105 syslog(LOG_ERR, "_file_put_printer:buffer overflow:tmpfile");
117 free(tmpfile);
127 free(tmpfile);
131 if ((fd = mkstemp(tmpfile)) < 0) {
133 free(tmpfile);
149 * In this case, just don't write any entries to the tmpfile
180 (void) rename(tmpfile, fil
[all...]
/illumos-gate/usr/src/head/
H A Dstdio.h54 #pragma redefine_extname tmpfile tmpfile64
67 #pragma redefine_extname tmpfile64 tmpfile
102 using std::tmpfile;
226 #define tmpfile tmpfile64 macro
246 #define tmpfile64 tmpfile
/illumos-gate/usr/src/cmd/genmsg/
H A Dmain.c106 char tmpfile[32]; local
299 (void) strlcpy(tmpfile, "/tmp/gensmg.XXXXXX",
300 sizeof (tmpfile));
302 if ((tmpfd = mkstemp(tmpfile)) == -1) {
304 "cannot create \"%s\""), tmpfile);
312 "cannot create \"%s\""), tmpfile);
317 (void) unlink(tmpfile);
326 (void) unlink(tmpfile);
343 (void) file_copy(tmpfile, newfile);
345 (void) unlink(tmpfile);
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_import.c385 char tmpfile[MAXPATHLEN]; local
389 *tmpfile = '\0';
392 (void) snprintf(tmpfile, sizeof (tmpfile), "%sXXXXXX", fname);
393 fd = mkstemp(tmpfile);
423 if (rename(tmpfile, fname) == -1) {
428 *tmpfile = '\0';
438 if (*tmpfile != '\0')
439 (void) unlink(tmpfile);
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/
H A Dmain.c1124 char tmpfile[PATH_MAX]; local
1152 (void) snprintf(tmpfile, sizeof (tmpfile), "%s/RMLISTXXXXXX",
1154 td = mkstemp(tmpfile);
1160 progerr(ERR_WTMPFILE, tmpfile);
1284 ckreturn(pkgexecl(tmpfile, CAS_STDOUT, CAS_USER,
1288 ckreturn(pkgexecl(tmpfile, CAS_STDOUT, CAS_USER,
1292 if (isfile(NULL, tmpfile) == 0) {
1293 if (unlink(tmpfile) == -1)
1294 progerr(ERR_RMPATH, tmpfile);
[all...]
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dpolicy.c1038 FILE *pfile, *tmpfile; local
1091 if ((tmpfile = fdopen(tmpfd, "w")) == NULL) {
1101 if (xmlDocFormatDump(tmpfile, doc, 1) == -1) {
1103 (void) fclose(tmpfile);
1115 if (fclose(tmpfile) != 0)
/illumos-gate/usr/src/cmd/fm/notify/smtp-notify/common/
H A Dsmtp-notify.c145 char pp_script[PATH_MAX], tmpfile[PATH_MAX], pp_cli[PATH_MAX]; local
150 (void) snprintf(tmpfile, sizeof (tmpfile), "%s%s",
161 eprefs->ep_template_path, tmpfile, ev_info->ei_diagcode,
166 if ((eprefs->ep_template = read_template(tmpfile)) != NULL)
169 (void) unlink(tmpfile);
/illumos-gate/usr/src/cmd/sgs/error/common/
H A Derrortouch.c53 static int mustoverwrite(FILE *preciousfile, FILE *tmpfile);
579 FILE *tmpfile; local
606 tmpfile = NULL;
613 if ((tmpfile = fopen(n_name, "r")) == NULL) {
620 oktorm = mustoverwrite(localfile, tmpfile);
623 if (tmpfile != NULL)
624 (void) fclose(tmpfile);
639 * return 1 if the tmpfile can be removed after writing it out
642 mustoverwrite(FILE *preciousfile, FILE *tmpfile) argument
646 while ((nread = fread(edbuf, 1, sizeof (edbuf), tmpfile)) !
[all...]
/illumos-gate/usr/src/tools/ctf/cvt/
H A Doutput.c240 char *tmpfile; local
277 tmpfile = curfile;
288 *curfilep = tmpfile;
/illumos-gate/usr/src/cmd/allocate/
H A Dallocate3.c1699 char *p, *tmpfile, *zoneroot; local
1725 tmpfile = strdup(*file);
1734 if (strncmp(tmpfile, "/dev/", strlen("/dev/")) != 0) {
1739 linkdir = strchr(tmpfile + 1, '/');
1745 zonepath, tmpfile);
1749 free(tmpfile);
1750 tmpfile = strdup(dstlinkdir);
1752 if (di_prof_add_dev(prof, tmpfile)) {
1753 dprintf("failed to add %s to profile\n", tmpfile);
1757 if (strlcat(zonepath, tmpfile, siz
[all...]
/illumos-gate/usr/src/lib/libast/amd64/include/ast/
H A Dast_stdio.h231 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
341 #define tmpfile _ast_tmpfile macro
463 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
/illumos-gate/usr/src/lib/libast/amd64/src/lib/libast/
H A Dast_stdio.h210 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
320 #define tmpfile _ast_tmpfile macro
442 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
/illumos-gate/usr/src/lib/libast/i386/include/ast/
H A Dast_stdio.h231 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
341 #define tmpfile _ast_tmpfile macro
463 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
/illumos-gate/usr/src/lib/libast/i386/src/lib/libast/
H A Dast_stdio.h210 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
320 #define tmpfile _ast_tmpfile macro
442 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
/illumos-gate/usr/src/lib/libast/sparc/include/ast/
H A Dast_stdio.h231 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
341 #define tmpfile _ast_tmpfile macro
463 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
/illumos-gate/usr/src/lib/libast/sparc/src/lib/libast/
H A Dast_stdio.h210 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
320 #define tmpfile _ast_tmpfile macro
442 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
/illumos-gate/usr/src/lib/libast/sparcv9/include/ast/
H A Dast_stdio.h231 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
341 #define tmpfile _ast_tmpfile macro
463 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
/illumos-gate/usr/src/lib/libast/sparcv9/src/lib/libast/
H A Dast_stdio.h210 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
320 #define tmpfile _ast_tmpfile macro
442 extern __MANGLE__ FILE* tmpfile __PROTO__((void));
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevfsmap.c1051 char *tmpfile; local
1086 if ((tmpfile = tempnam("/tmp", "diirc")) == NULL) {
1098 vfsent.vfs_special + sizeof (META_DEV) - 1, tmpfile);
1102 if (system(buf) == 0 && (fp = fopen(tmpfile, "r")) != NULL) {
1116 (void) unlink(tmpfile);
1117 free(tmpfile);
/illumos-gate/usr/src/cmd/lvm/metassist/xml/
H A Dxml_convert.c169 static int create_localized_message_file(char **tmpfile);
637 char *tmpfile = NULL; local
673 if ((error = create_localized_message_file(&tmpfile)) == 0) {
688 newsel = stralloccat(3, "document('", tmpfile, "')");
734 if (tmpfile != NULL) {
736 unlink(tmpfile);
738 free(tmpfile);
1256 * @param tmpfile
1263 char **tmpfile)
1271 *tmpfile
1262 create_localized_message_file( char **tmpfile) argument
[all...]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_ads.c1707 char tmpfile[] = SMBNS_KRB5_KEYTAB_TMP; local
1810 if (mktemp(tmpfile) == NULL) {
1817 tmpfile, kvno, machine_passwd, encptr, num) != 0) {
1837 if (rename(tmpfile, SMBNS_KRB5_KEYTAB) != 0) {
1838 (void) unlink(tmpfile);
1842 (void) unlink(tmpfile);

Completed in 89 milliseconds

12