Searched refs:tmpfname (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/cmd/sed/ |
H A D | main.c | 107 static char tmpfname[PATH_MAX]; /* Temporary file name (for in-place editing) */ variable 366 if (*tmpfname) in mf_fgets() 367 (void) unlink(tmpfname); in mf_fgets() 372 if (*tmpfname != '\0') { in mf_fgets() 376 (void) unlink(tmpfname); in mf_fgets() 380 if (rename(tmpfname, fname) != 0) { in mf_fgets() 383 (void) unlink(tmpfname); in mf_fgets() 386 *tmpfname = '\0'; in mf_fgets() 417 len = snprintf(tmpfname, sizeof (tmpfname), in mf_fgets() 420 if (len >= sizeof (tmpfname)) in mf_fgets() [all …]
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | ldapsearch.c | 948 char *a, *dn, *ufn, tmpfname[ BUFSIZ ]; local 1018 if ( snprintf( tmpfname, sizeof(tmpfname), 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 ); 1042 if ( ldaptool_path2fileurl( tmpfname, &url ) != 1051 write_ldif_value( a, tmpfname, strlen( tmpfname ), [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | tpm_specific.c | 306 char *tmpfname; in remove_uuid() local 320 tmpfname = tempnam("/tmp", "tpmtok"); in remove_uuid() 321 newfp = fopen(tmpfname, "w+"); in remove_uuid() 323 free(tmpfname); in remove_uuid() 338 if (local_copy_file(fname, tmpfname) == 0) in remove_uuid() 339 (void) unlink(tmpfname); in remove_uuid() 341 free(tmpfname); in remove_uuid()
|
/illumos-gate/usr/src/cmd/cpio/ |
H A D | cpio.c | 9449 char *tmpfname; in sl_preview_synonyms() local 9464 tmpfname = e_zalloc(E_EXIT, strlen(tmpdir) + strlen(suffix) + 1); in sl_preview_synonyms() 9466 (void) strcpy(tmpfname, tmpdir); in sl_preview_synonyms() 9467 (void) strcat(tmpfname, suffix); in sl_preview_synonyms() 9469 if ((tmpfd = mkstemp(tmpfname)) == -1) { in sl_preview_synonyms() 9473 if (unlink(tmpfname) == -1) { in sl_preview_synonyms() 9474 msg(EXTN, "cannot unlink tmpfile %s", tmpfname); in sl_preview_synonyms() 9478 msg(EXTN, "cannot fdopen tmpfile %s", tmpfname); in sl_preview_synonyms() 9486 msg(EXTN, "problem writing to tmpfile %s", tmpfname); in sl_preview_synonyms() 9532 msg(EXTN, "cannot fseek on tmpfile %s", tmpfname); in sl_preview_synonyms() [all …]
|