Searched refs:tmpfname (Results 1 - 4 of 4) sorted by relevance

/illumos-gate/usr/src/cmd/sed/
H A Dmain.c106 static char tmpfname[PATH_MAX]; /* Temporary file name (for in-place editing) */ variable
363 if (*tmpfname)
364 (void) unlink(tmpfname);
369 if (*tmpfname != '\0') {
373 (void) unlink(tmpfname);
377 if (rename(tmpfname, fname) != 0) {
380 (void) unlink(tmpfname);
383 *tmpfname = '\0';
414 len = snprintf(tmpfname, sizeof (tmpfname),
[all...]
/illumos-gate/usr/src/cmd/ldap/common/
H A Dldapsearch.c948 char *a, *dn, *ufn, tmpfname[ BUFSIZ ]; local
1018 if ( snprintf( tmpfname, sizeof(tmpfname),
1021 perror( gettext("snprintf tmpfname (attribute name too long?)") );
1025 sprintf( tmpfname, "%s/ldapsearch-%s-XXXXXX",
1030 if ( LDAPTOOL_MKTEMP( tmpfname ) == NULL ) {
1031 perror( tmpfname );
1032 } else if (( tmpfp = ldaptool_open_file( tmpfname, mode)) == NULL ) {
1033 perror( tmpfname );
1037 perror( tmpfname );
[all...]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dtpm_specific.c302 char *tmpfname; local
316 tmpfname = tempnam("/tmp", "tpmtok");
317 newfp = fopen(tmpfname, "w+");
319 free(tmpfname);
334 if (local_copy_file(fname, tmpfname) == 0)
335 (void) unlink(tmpfname);
337 free(tmpfname);
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c9431 char *tmpfname; local
9446 tmpfname = e_zalloc(E_EXIT, strlen(tmpdir) + strlen(suffix) + 1);
9448 (void) strcpy(tmpfname, tmpdir);
9449 (void) strcat(tmpfname, suffix);
9451 if ((tmpfd = mkstemp(tmpfname)) == -1) {
9455 if (unlink(tmpfname) == -1) {
9456 msg(EXTN, "cannot unlink tmpfile %s", tmpfname);
9460 msg(EXTN, "cannot fdopen tmpfile %s", tmpfname);
9468 msg(EXTN, "problem writing to tmpfile %s", tmpfname);
9514 msg(EXTN, "cannot fseek on tmpfile %s", tmpfname);
[all...]

Completed in 103 milliseconds