/dports/misc/posixtestsuite/posixtestsuite/conformance/interfaces/mmap/ |
H A D | 13-1.c | 42 char tmpfname[256]; in main() local 62 snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_mmap_13_1_%d", in main() 64 unlink(tmpfname); in main() 81 unlink(tmpfname); in main() 86 if (stat(tmpfname, &stat_buff) == -1) in main() 90 unlink(tmpfname); in main() 106 unlink(tmpfname); in main() 114 unlink(tmpfname); in main() 139 unlink(tmpfname); in main() 151 unlink(tmpfname); in main() [all …]
|
H A D | 14-1.c | 37 char tmpfname[256]; in main() local 57 snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_mmap_14_1_%d", in main() 59 unlink(tmpfname); in main() 60 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, in main() 76 unlink(tmpfname); in main() 89 unlink(tmpfname); in main() 95 if (stat(tmpfname, &stat_buff) == -1) in main() 99 unlink(tmpfname); in main() 119 if (stat(tmpfname, &stat_buff) == -1) in main() 123 unlink(tmpfname); in main() [all …]
|
H A D | 12-1.c | 41 char tmpfname[256]; in main() local 55 snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_mmap_12_1_%d", in main() 57 unlink(tmpfname); in main() 58 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, in main() 70 unlink(tmpfname); in main() 94 fd2 = open(tmpfname, O_RDWR, S_IRUSR | S_IWUSR); in main() 107 fd2 = open(tmpfname, O_RDWR, S_IRUSR | S_IWUSR); in main()
|
H A D | 6-5.c | 38 char tmpfname[256]; in main() local 51 snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_mmap_6_5_%d", in main() 53 unlink(tmpfname); in main() 54 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, in main() 70 fd = open(tmpfname, O_RDONLY, in main() 78 unlink(tmpfname); in main()
|
/dports/devel/pear-PHP_Compat/PHP_Compat-1.5.0/tests/function/ |
H A D | file_put_contents.phpt | 11 $tmpfname = tempnam('/tmp', 'phpcompat'); 16 echo file_put_contents($tmpfname, $string), "\n"; 17 echo implode('', file($tmpfname)), "\n"; 22 echo file_put_contents($tmpfname, $string), "\n"; 23 echo implode('', file($tmpfname)), "\n"; 28 $tmpfname = tempnam('/tmp', 'php'); 30 echo file_put_contents($tmpfname, $string), "\n"; 32 echo implode('', file($tmpfname)), "\n"; 33 echo file_put_contents($tmpfname, $string2), "\n"; 34 echo implode('', file($tmpfname)); [all …]
|
/dports/graphics/openjpeg15/openjpeg-version.1.5.2/applications/jpip/libopenjpip/ |
H A D | target_manager.c | 76 int open_jp2file( char filepath[], char tmpfname[]); 83 char tmpfname[MAX_LENOFTID]; in gene_target() local 91 if((fd = open_jp2file( targetpath, tmpfname)) == -1){ in gene_target() 106 if( tmpfname[0]) in gene_target() 107 target->tmpfname = strdup( tmpfname); in gene_target() 109 target->tmpfname = NULL; in gene_target() 147 if( (*target)->tmpfname){ in delete_target() 149 remove( (*target)->tmpfname); in delete_target() 252 int open_jp2file( char filepath[], char tmpfname[]) in open_jp2file() argument 263 tmpfname[0] = 0; in open_jp2file() [all …]
|
/dports/graphics/openjpeg/openjpeg-2.4.0/src/lib/openjpip/ |
H A D | target_manager.c | 77 int open_jp2file(const char filepath[], char tmpfname[]); 84 char tmpfname[MAX_LENOFTID]; in gene_target() local 108 if (tmpfname[0]) { in gene_target() 109 target->tmpfname = strdup(tmpfname); in gene_target() 111 target->tmpfname = NULL; in gene_target() 151 if ((*target)->tmpfname) { in delete_target() 153 remove((*target)->tmpfname); in delete_target() 263 int open_jp2file(const char filepath[], char tmpfname[]) in open_jp2file() argument 274 tmpfname[0] = 0; in open_jp2file() 318 (void)tmpfname; in open_remotefile() [all …]
|
/dports/sysutils/libudisks/udisks-udisks-2.9.2/modules/zram/ |
H A D | udiskszramutil.c | 40 gchar* tmpfname; in set_conf_property() local 51 tmpfname = g_strdup_printf ("%sXXXXXX", filename); in set_conf_property() 52 fd = g_mkstemp (tmpfname); in set_conf_property() 57 g_free (tmpfname); in set_conf_property() 61 if (chmod (tmpfname, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) != 0) in set_conf_property() 65 g_free (tmpfname); in set_conf_property() 75 g_free (tmpfname); in set_conf_property() 95 if (rename (tmpfname, filename)) in set_conf_property() 98 g_free (tmpfname); in set_conf_property() 102 g_free (tmpfname); in set_conf_property()
|
/dports/www/joomla3/joomla3-3.9.24/libraries/vendor/joomla/archive/src/ |
H A D | Archive.php | 95 $tmpfname = $this->options['tmp_path'] . '/' . uniqid('gzip'); 99 $this->getAdapter('gzip')->extract($archivename, $tmpfname); 103 @unlink($tmpfname); 110 $result = $this->getAdapter('tar')->extract($tmpfname, $extractdir); 115 $result = File::copy($tmpfname, $extractdir . '/' . $filename, null, 0); 118 @unlink($tmpfname); 126 $tmpfname = $this->options['tmp_path'] . '/' . uniqid('bzip2'); 130 $this->getAdapter('bzip2')->extract($archivename, $tmpfname); 134 @unlink($tmpfname); 141 $result = $this->getAdapter('tar')->extract($tmpfname, $extractdir); [all …]
|
/dports/www/mod_php81/php-8.1.1/ext/ftp/tests/ |
H A D | ftp_get_basic.phpt | 18 $tmpfname = tempnam(__DIR__, "ftp_test"); 19 var_dump(ftp_get($ftp, $tmpfname ,'a story.txt', FTP_ASCII)); 20 echo file_get_contents($tmpfname); 21 unlink($tmpfname); 24 $tmpfname = tempnam(__DIR__, "ftp_test"); 25 var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY)); 26 echo json_encode(file_get_contents($tmpfname)), "\n"; 27 unlink($tmpfname); 30 ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
/dports/lang/php81/php-8.1.1/ext/ftp/tests/ |
H A D | ftp_get_basic.phpt | 18 $tmpfname = tempnam(__DIR__, "ftp_test"); 19 var_dump(ftp_get($ftp, $tmpfname ,'a story.txt', FTP_ASCII)); 20 echo file_get_contents($tmpfname); 21 unlink($tmpfname); 24 $tmpfname = tempnam(__DIR__, "ftp_test"); 25 var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY)); 26 echo json_encode(file_get_contents($tmpfname)), "\n"; 27 unlink($tmpfname); 30 ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
/dports/ftp/php81-ftp/php-8.1.1/ext/ftp/tests/ |
H A D | ftp_get_basic.phpt | 18 $tmpfname = tempnam(__DIR__, "ftp_test"); 19 var_dump(ftp_get($ftp, $tmpfname ,'a story.txt', FTP_ASCII)); 20 echo file_get_contents($tmpfname); 21 unlink($tmpfname); 24 $tmpfname = tempnam(__DIR__, "ftp_test"); 25 var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY)); 26 echo json_encode(file_get_contents($tmpfname)), "\n"; 27 unlink($tmpfname); 30 ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
/dports/ftp/php80-ftp/php-8.0.15/ext/ftp/tests/ |
H A D | ftp_get_basic.phpt | 19 $tmpfname = tempnam(__DIR__, "ftp_test"); 20 var_dump(ftp_get($ftp, $tmpfname ,'a story.txt', FTP_ASCII)); 21 echo file_get_contents($tmpfname); 22 unlink($tmpfname); 25 $tmpfname = tempnam(__DIR__, "ftp_test"); 26 var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY)); 27 var_dump(urlencode(file_get_contents($tmpfname))); 28 unlink($tmpfname); 31 ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
/dports/lang/php80/php-8.0.15/ext/ftp/tests/ |
H A D | ftp_get_basic.phpt | 19 $tmpfname = tempnam(__DIR__, "ftp_test"); 20 var_dump(ftp_get($ftp, $tmpfname ,'a story.txt', FTP_ASCII)); 21 echo file_get_contents($tmpfname); 22 unlink($tmpfname); 25 $tmpfname = tempnam(__DIR__, "ftp_test"); 26 var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY)); 27 var_dump(urlencode(file_get_contents($tmpfname))); 28 unlink($tmpfname); 31 ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
/dports/www/mod_php80/php-8.0.15/ext/ftp/tests/ |
H A D | ftp_get_basic.phpt | 19 $tmpfname = tempnam(__DIR__, "ftp_test"); 20 var_dump(ftp_get($ftp, $tmpfname ,'a story.txt', FTP_ASCII)); 21 echo file_get_contents($tmpfname); 22 unlink($tmpfname); 25 $tmpfname = tempnam(__DIR__, "ftp_test"); 26 var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY)); 27 var_dump(urlencode(file_get_contents($tmpfname))); 28 unlink($tmpfname); 31 ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
/dports/emulators/gxemul/gxemul-0.6.3/src/disk/ |
H A D | bootblock_iso9660.cc | 107 char *p, *filename_orig, *filename, *tmpfname = NULL; in iso_load_bootblock() local 358 CHECK_ALLOCATION(tmpfname = (char *) malloc(300)); in iso_load_bootblock() 368 tmpfile_handle = mkstemp(tmpfname); in iso_load_bootblock() 370 fatal("could not create %s\n", tmpfname); in iso_load_bootblock() 375 fatal("could not write to %s\n", tmpfname); in iso_load_bootblock() 393 CHECK_ALLOCATION(tmpfname = (char *) realloc(tmpfname, strlen(tmpfname) + 2)); in iso_load_bootblock() 394 memmove(tmpfname + 1, tmpfname, strlen(tmpfname) + 1); in iso_load_bootblock() 395 tmpfname[0] = 8; in iso_load_bootblock() 397 (*load_namesp)[*n_loadp - 1] = strdup(tmpfname); in iso_load_bootblock() 411 if (tmpfname != NULL) in iso_load_bootblock() [all …]
|
/dports/www/py-django-extensions/django-extensions-3.0.5/tests/management/commands/ |
H A D | test_graph_models.py | 54 with temp_output_file(".dot") as tmpfname: 55 … call_command('graph_models', all_applications=True, dot=True, output=tmpfname, stdout=stdout) 56 with open(tmpfname, 'r') as outfile: 64 with temp_output_file(".dot") as tmpfname: 65 call_command('graph_models', all_applications=True, output=tmpfname, stdout=stdout) 66 with open(tmpfname, 'r') as outfile: 75 with temp_output_file(".json") as tmpfname: 76 … call_command('graph_models', all_applications=True, dot=True, output=tmpfname, stdout=stdout) 77 with open(tmpfname, 'r') as outfile: 92 with temp_output_file(".json") as tmpfname: [all …]
|
/dports/lang/php73/php-7.3.33/ext/ftp/tests/ |
H A D | ftp_get_basic.phpt | 19 $tmpfname = tempnam(dirname(__FILE__), "ftp_test"); 20 var_dump(ftp_get($ftp, $tmpfname ,'a story.txt', FTP_ASCII)); 21 echo file_get_contents($tmpfname); 22 unlink($tmpfname); 25 $tmpfname = tempnam(dirname(__FILE__), "ftp_test"); 26 var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY)); 27 var_dump(urlencode(file_get_contents($tmpfname))); 28 unlink($tmpfname); 31 ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
/dports/www/mod_php74/php-7.4.27/ext/ftp/tests/ |
H A D | ftp_get_basic.phpt | 19 $tmpfname = tempnam(__DIR__, "ftp_test"); 20 var_dump(ftp_get($ftp, $tmpfname ,'a story.txt', FTP_ASCII)); 21 echo file_get_contents($tmpfname); 22 unlink($tmpfname); 25 $tmpfname = tempnam(__DIR__, "ftp_test"); 26 var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY)); 27 var_dump(urlencode(file_get_contents($tmpfname))); 28 unlink($tmpfname); 31 ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
/dports/lang/php74/php-7.4.27/ext/ftp/tests/ |
H A D | ftp_get_basic.phpt | 19 $tmpfname = tempnam(__DIR__, "ftp_test"); 20 var_dump(ftp_get($ftp, $tmpfname ,'a story.txt', FTP_ASCII)); 21 echo file_get_contents($tmpfname); 22 unlink($tmpfname); 25 $tmpfname = tempnam(__DIR__, "ftp_test"); 26 var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY)); 27 var_dump(urlencode(file_get_contents($tmpfname))); 28 unlink($tmpfname); 31 ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
/dports/www/mod_php73/php-7.3.33/ext/ftp/tests/ |
H A D | ftp_get_basic.phpt | 19 $tmpfname = tempnam(dirname(__FILE__), "ftp_test"); 20 var_dump(ftp_get($ftp, $tmpfname ,'a story.txt', FTP_ASCII)); 21 echo file_get_contents($tmpfname); 22 unlink($tmpfname); 25 $tmpfname = tempnam(dirname(__FILE__), "ftp_test"); 26 var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY)); 27 var_dump(urlencode(file_get_contents($tmpfname))); 28 unlink($tmpfname); 31 ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
/dports/ftp/php73-ftp/php-7.3.33/ext/ftp/tests/ |
H A D | ftp_get_basic.phpt | 19 $tmpfname = tempnam(dirname(__FILE__), "ftp_test"); 20 var_dump(ftp_get($ftp, $tmpfname ,'a story.txt', FTP_ASCII)); 21 echo file_get_contents($tmpfname); 22 unlink($tmpfname); 25 $tmpfname = tempnam(dirname(__FILE__), "ftp_test"); 26 var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY)); 27 var_dump(urlencode(file_get_contents($tmpfname))); 28 unlink($tmpfname); 31 ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
/dports/ftp/php74-ftp/php-7.4.27/ext/ftp/tests/ |
H A D | ftp_get_basic.phpt | 19 $tmpfname = tempnam(__DIR__, "ftp_test"); 20 var_dump(ftp_get($ftp, $tmpfname ,'a story.txt', FTP_ASCII)); 21 echo file_get_contents($tmpfname); 22 unlink($tmpfname); 25 $tmpfname = tempnam(__DIR__, "ftp_test"); 26 var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY)); 27 var_dump(urlencode(file_get_contents($tmpfname))); 28 unlink($tmpfname); 31 ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
/dports/news/noffle/noffle-1.1.5/src/ |
H A D | content.c | 197 Str tmpfname; in Cont_write() local 209 if ( ! ( f = fopen( tmpfname, "w" ) ) ) in Cont_write() 244 tmpfname, strerror( errno ) ); in Cont_write() 259 tmpfname, strerror( errno ) ); in Cont_write() 275 if ( unlink( tmpfname ) < 0 ) in Cont_write() 290 if ( rename( tmpfname, cont.file ) < 0 ) in Cont_write() 293 tmpfname, cont.file, strerror( errno ) ); in Cont_write() 356 Str tmpfname; in Cont_nextGrp() local 372 tmpfname ); in Cont_nextGrp() 373 if ( unlink( tmpfname ) < 0 ) in Cont_nextGrp() [all …]
|
/dports/misc/posixtestsuite/posixtestsuite/conformance/interfaces/aio_cancel/ |
H A D | 2-2.c | 41 char tmpfname[256]; in main() local 48 snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_cancel_2_2_%d", in main() 50 unlink(tmpfname); in main() 51 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, in main() 60 unlink(tmpfname); in main()
|