/dports/databases/postgresql96-client/postgresql-9.6.24/src/bin/pg_upgrade/ |
H A D | relfilenode.c | 183 char new_file[MAXPGPATH]; in transfer_relfile() local 207 snprintf(new_file, sizeof(new_file), "%s%s/%u/%u%s%s", in transfer_relfile() 226 map->nspname, map->relname, old_file, new_file, in transfer_relfile() 235 unlink(new_file); in transfer_relfile() 244 old_file, new_file); in transfer_relfile() 245 rewriteVisibilityMap(old_file, new_file, map->nspname, map->relname); in transfer_relfile() 250 old_file, new_file); in transfer_relfile() 251 copyFile(old_file, new_file, map->nspname, map->relname); in transfer_relfile() 256 old_file, new_file); in transfer_relfile() 257 linkFile(old_file, new_file, map->nspname, map->relname); in transfer_relfile()
|
/dports/databases/postgresql96-plperl/postgresql-9.6.24/src/bin/pg_upgrade/ |
H A D | relfilenode.c | 183 char new_file[MAXPGPATH]; in transfer_relfile() local 207 snprintf(new_file, sizeof(new_file), "%s%s/%u/%u%s%s", in transfer_relfile() 226 map->nspname, map->relname, old_file, new_file, in transfer_relfile() 235 unlink(new_file); in transfer_relfile() 244 old_file, new_file); in transfer_relfile() 245 rewriteVisibilityMap(old_file, new_file, map->nspname, map->relname); in transfer_relfile() 250 old_file, new_file); in transfer_relfile() 251 copyFile(old_file, new_file, map->nspname, map->relname); in transfer_relfile() 256 old_file, new_file); in transfer_relfile() 257 linkFile(old_file, new_file, map->nspname, map->relname); in transfer_relfile()
|
/dports/databases/postgresql10-pltcl/postgresql-10.19/src/bin/pg_upgrade/ |
H A D | relfilenode.c | 185 char new_file[MAXPGPATH]; in transfer_relfile() local 209 snprintf(new_file, sizeof(new_file), "%s%s/%u/%u%s%s", in transfer_relfile() 228 map->nspname, map->relname, old_file, new_file, in transfer_relfile() 237 unlink(new_file); in transfer_relfile() 246 old_file, new_file); in transfer_relfile() 247 rewriteVisibilityMap(old_file, new_file, map->nspname, map->relname); in transfer_relfile() 252 old_file, new_file); in transfer_relfile() 253 copyFile(old_file, new_file, map->nspname, map->relname); in transfer_relfile() 258 old_file, new_file); in transfer_relfile() 259 linkFile(old_file, new_file, map->nspname, map->relname); in transfer_relfile()
|
/dports/sysutils/libdnf/libdnf-0.64.0/tests/hawkey/ |
H A D | test_iutil.cpp | 59 char *new_file = solv_dupjoin(test_globals.tmpdir, in START_TEST() local 61 build_test_file(new_file); in START_TEST() 75 fail_if((fp = fopen(new_file, "r")) == NULL); in START_TEST() 85 fail_if((fp = fopen(new_file, "a")) == NULL); in START_TEST() 91 fail_if((fp = fopen(new_file, "r")) == NULL); in START_TEST() 98 g_free(new_file); in START_TEST() 106 build_test_file(new_file); in START_TEST() 110 FILE *fp = fopen(new_file, "r"); in START_TEST() 115 fp = fopen(new_file, "r+"); in START_TEST() 118 fp = fopen(new_file, "r"); in START_TEST() [all …]
|
/dports/graphics/opencollada/OpenCOLLADA-1.6.68/scripts/ |
H A D | cmake_consistency_check.py | 160 new_file = normpath(join(cmake_base, l)) 163 if is_c_header(new_file): 164 sources_h.append(new_file) 165 global_refs.setdefault(new_file, []).append((f, i)) 166 elif is_c(new_file): 167 sources_c.append(new_file) 168 global_refs.setdefault(new_file, []).append((f, i)) 172 elif new_file.endswith(".list"): 174 elif new_file.endswith(".def"): 180 if os.path.isdir(new_file): [all …]
|
/dports/devel/libgit2/libgit2-1.3.0/tests/diff/ |
H A D | diff_helpers.c | 36 char new_suffix = diff_pick_suffix(delta->new_file.mode); in fprintf_delta() 40 if ((delta->old_file.path != delta->new_file.path && in fprintf_delta() 41 strcmp(delta->old_file.path, delta->new_file.path) != 0) || in fprintf_delta() 42 (delta->old_file.mode != delta->new_file.mode && in fprintf_delta() 43 delta->old_file.mode != 0 && delta->new_file.mode != 0)) in fprintf_delta() 44 fprintf(fp, "%c %s%c", old_suffix, delta->new_file.path, new_suffix); in fprintf_delta() 305 if (ad->new_file.id_abbrev && bd->new_file.id_abbrev) { in diff_assert_equal() 306 cl_assert_equal_oid(&ad->new_file.id, &bd->new_file.id); in diff_assert_equal() 307 cl_assert_equal_i(ad->new_file.id_abbrev, bd->new_file.id_abbrev); in diff_assert_equal() 308 cl_assert_equal_i(ad->new_file.mode, bd->new_file.mode); in diff_assert_equal() [all …]
|
/dports/sysutils/testdisk/testdisk-7.1/src/ |
H A D | fat_dir.c | 262 file_info_t *new_file=(file_info_t *)MALLOC(sizeof(*new_file)); in dir_fat_aux() local 284 new_file->name[o]=0; in dir_fat_aux() 285 new_file->st_ino=inode; in dir_fat_aux() 287 new_file->st_uid=0; in dir_fat_aux() 288 new_file->st_gid=0; in dir_fat_aux() 291 …new_file->td_atime=new_file->td_ctime=new_file->td_mtime=date_dos2unix(le16(de->time),le16(de->dat… in dir_fat_aux() 292 new_file->status=status; in dir_fat_aux() 488 char *new_file; in fat_copy() local 504 free(new_file); in fat_copy() 534 free(new_file); in fat_copy() [all …]
|
/dports/x11/xloadimage/debian/patches/ |
H A D | 03_security-strfoo.patch | 126 char new_file[1024]; 129 - strcpy(new_file, dir); /* target directory */ 130 - strcat(new_file, "/"); 131 - strcat(new_file, old_file); 132 + strncpy(new_file, dir, 1023); /* target directory */ 133 + new_file[1023] = '\0'; 134 + strncat(new_file, "/", 1023 - strlen(new_file)); 135 + new_file[1023] = '\0'; 136 + strncat(new_file, old_file, 1023 - strlen(new_file)); 137 + new_file[1023] = '\0'; [all …]
|
/dports/devel/py-pygit2/pygit2-1.7.1/test/ |
H A D | test_diff.py | 115 files = [patch.delta.new_file.path for patch in diff] 119 files = [patch.delta.new_file.path for patch in diff] 127 files = [patch.delta.new_file.path for patch in diff] 131 files = [patch.delta.new_file.path for patch in diff] 136 files = [patch.delta.new_file.path for patch in diff] 178 assert patch.delta.new_file.path == 'a' 194 entries = [p.delta.new_file.path for p in diff] 199 entries = [p.delta.new_file.path for p in diff_swaped] 232 assert 'b' in [patch.delta.new_file.path for patch in diff_c] 245 assert patch.delta.new_file.path == 'a' [all …]
|
/dports/math/libmesh/libmesh-1.6.2/contrib/exodusii/Lib/src/ |
H A D | ex_conv.c | 90 struct file_item* new_file; in ex_conv_ini() local 162 new_file = malloc(sizeof(struct file_item)); in ex_conv_ini() 164 new_file->file_id = exoid; in ex_conv_ini() 165 new_file->user_compute_wordsize = *comp_wordsize; in ex_conv_ini() 166 new_file->next = file_list; in ex_conv_ini() 167 file_list = new_file; in ex_conv_ini() 170 new_file->netcdf_type_code = NC_FLOAT; in ex_conv_ini() 172 new_file->netcdf_type_code = NC_DOUBLE; in ex_conv_ini()
|
/dports/math/vtk6/VTK-6.2.0/ThirdParty/exodusII/vtkexodusII/ |
H A D | ex_conv.c | 90 struct file_item* new_file; in ex_conv_ini() local 162 new_file = malloc(sizeof(struct file_item)); in ex_conv_ini() 164 new_file->file_id = exoid; in ex_conv_ini() 165 new_file->user_compute_wordsize = *comp_wordsize; in ex_conv_ini() 166 new_file->next = file_list; in ex_conv_ini() 167 file_list = new_file; in ex_conv_ini() 170 new_file->netcdf_type_code = NC_FLOAT; in ex_conv_ini() 172 new_file->netcdf_type_code = NC_DOUBLE; in ex_conv_ini()
|
/dports/japanese/ebnetd/ebnetd-1.0/ebnetd/ |
H A D | ebnupgrade.in | 27 $new_file = ''; 113 $new_file = $option_argument; 135 if ($new_file eq '') { 137 $new_file = "ebnetd.conf.new"; 139 $new_file = "$old_file.new"; 155 if ($new_file eq '-') { 160 if (!open(NEW_FILE, "> $new_file")) { 161 die "$0: failed to open the file, $!: $new_file\n";
|
/dports/textproc/py-fastavro/fastavro-0.24.2/tests/ |
H A D | test_six.py | 10 with open(test_file, "a") as new_file: 11 new_file.write('this phrase forwards cursor position beyond zero') 13 appendable(new_file) 20 with open(test_file, "a+b") as new_file: 21 new_file.write(b'this phrase forwards cursor position beyond zero') 22 assert appendable(new_file)
|
/dports/graphics/py-piexif/piexif-1.1.3/piexif/ |
H A D | _transplant.py | 6 def transplant(exif_src, image, new_file=None): argument 35 if isinstance(new_file, io.BytesIO): 36 new_file.write(new_data) 37 new_file.seek(0) 38 elif new_file: 39 with open(new_file, "wb+") as f:
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/chrome/installer/util/ |
H A D | duplicate_tree_detector_unittest.cc | 94 base::FilePath new_file(temp_source_dir_.GetPath()); in TEST_F() local 95 new_file = new_file.AppendASCII("FNew"); in TEST_F() 96 CreateTextFile(new_file.MaybeAsASCII(), text_content_1_); in TEST_F() 97 ASSERT_TRUE(base::PathExists(new_file)); in TEST_F() 109 base::FilePath new_file(temp_dest_dir_.GetPath()); in TEST_F() local 110 new_file = new_file.AppendASCII("FNew"); in TEST_F() 111 CreateTextFile(new_file.MaybeAsASCII(), text_content_1_); in TEST_F() 112 ASSERT_TRUE(base::PathExists(new_file)); in TEST_F()
|
/dports/net/ntpsec/ntpsec-NTPsec_1_2_1/libntp/ |
H A D | msyslog.c | 275 FILE * new_file; in change_logfile() local 298 new_file = stderr; in change_logfile() 301 new_file = stdout; in change_logfile() 329 new_file = fopen(abs_fname, "a"); in change_logfile() 332 if (NULL == new_file) { in change_logfile() 347 syslog_file = new_file; in change_logfile() 413 FILE * new_file; in check_logfile() local 419 new_file = fopen(syslog_fname, "a"); in check_logfile() 420 if (NULL == new_file) { in check_logfile() 434 fclose(new_file); in check_logfile() [all …]
|
/dports/devel/boost-docs/boost_1_72_0/libs/date_time/xmldoc/ |
H A D | ref_tag_fix.pl | 47 my ($line, @new_file, $title, $processed); 60 push(@new_file, "<section id=\"$id_tag\">\n"); 61 push(@new_file, "<title>$title</title>\n"); 65 push(@new_file, "</section>\n"); 68 push(@new_file, $line); 75 print OTP shift(@new_file); 90 foreach(@new_file){
|
/dports/devel/boost-python-libs/boost_1_72_0/libs/date_time/xmldoc/ |
H A D | ref_tag_fix.pl | 47 my ($line, @new_file, $title, $processed); 60 push(@new_file, "<section id=\"$id_tag\">\n"); 61 push(@new_file, "<title>$title</title>\n"); 65 push(@new_file, "</section>\n"); 68 push(@new_file, $line); 75 print OTP shift(@new_file); 90 foreach(@new_file){
|
/dports/databases/percona57-pam-for-mysql/boost_1_59_0/libs/date_time/xmldoc/ |
H A D | ref_tag_fix.pl | 47 my ($line, @new_file, $title, $processed); 60 push(@new_file, "<section id=\"$id_tag\">\n"); 61 push(@new_file, "<title>$title</title>\n"); 65 push(@new_file, "</section>\n"); 68 push(@new_file, $line); 75 print OTP shift(@new_file); 90 foreach(@new_file){
|
/dports/databases/percona57-server/boost_1_59_0/libs/date_time/xmldoc/ |
H A D | ref_tag_fix.pl | 47 my ($line, @new_file, $title, $processed); 60 push(@new_file, "<section id=\"$id_tag\">\n"); 61 push(@new_file, "<title>$title</title>\n"); 65 push(@new_file, "</section>\n"); 68 push(@new_file, $line); 75 print OTP shift(@new_file); 90 foreach(@new_file){
|
/dports/databases/xtrabackup/boost_1_59_0/libs/date_time/xmldoc/ |
H A D | ref_tag_fix.pl | 47 my ($line, @new_file, $title, $processed); 60 push(@new_file, "<section id=\"$id_tag\">\n"); 61 push(@new_file, "<title>$title</title>\n"); 65 push(@new_file, "</section>\n"); 68 push(@new_file, $line); 75 print OTP shift(@new_file); 90 foreach(@new_file){
|
/dports/databases/percona57-client/boost_1_59_0/libs/date_time/xmldoc/ |
H A D | ref_tag_fix.pl | 47 my ($line, @new_file, $title, $processed); 60 push(@new_file, "<section id=\"$id_tag\">\n"); 61 push(@new_file, "<title>$title</title>\n"); 65 push(@new_file, "</section>\n"); 68 push(@new_file, $line); 75 print OTP shift(@new_file); 90 foreach(@new_file){
|
/dports/devel/boost-libs/boost_1_72_0/libs/date_time/xmldoc/ |
H A D | ref_tag_fix.pl | 47 my ($line, @new_file, $title, $processed); 60 push(@new_file, "<section id=\"$id_tag\">\n"); 61 push(@new_file, "<title>$title</title>\n"); 65 push(@new_file, "</section>\n"); 68 push(@new_file, $line); 75 print OTP shift(@new_file); 90 foreach(@new_file){
|
/dports/databases/mysqlwsrep57-server/boost_1_59_0/libs/date_time/xmldoc/ |
H A D | ref_tag_fix.pl | 47 my ($line, @new_file, $title, $processed); 60 push(@new_file, "<section id=\"$id_tag\">\n"); 61 push(@new_file, "<title>$title</title>\n"); 65 push(@new_file, "</section>\n"); 68 push(@new_file, $line); 75 print OTP shift(@new_file); 90 foreach(@new_file){
|
/dports/devel/hyperscan/boost_1_75_0/libs/date_time/xmldoc/ |
H A D | ref_tag_fix.pl | 47 my ($line, @new_file, $title, $processed); 60 push(@new_file, "<section id=\"$id_tag\">\n"); 61 push(@new_file, "<title>$title</title>\n"); 65 push(@new_file, "</section>\n"); 68 push(@new_file, $line); 75 print OTP shift(@new_file); 90 foreach(@new_file){
|