/dports/security/snort/snort-2.9.18/src/dynamic-preprocessors/appid/ |
H A D | flow.c | 33 AppIdFlowData *tmp_fd; in AppIdFlowdataFree() local 38 if (tmp_fd->fd_data && tmp_fd->fd_free) in AppIdFlowdataFree() 39 tmp_fd->fd_free(tmp_fd->fd_data); in AppIdFlowdataFree() 47 AppIdFlowData *tmp_fd; in AppIdFlowdataFini() local 53 _dpd.snortFree(tmp_fd, sizeof(*tmp_fd), PP_APP_ID, PP_MEM_CATEGORY_SESSION); in AppIdFlowdataFini() 59 AppIdFlowData *tmp_fd; in AppIdFlowdataGet() local 61 for (tmp_fd = flowp->flowData; tmp_fd && tmp_fd->fd_id != id; tmp_fd = tmp_fd->next); in AppIdFlowdataGet() 62 return tmp_fd ? tmp_fd->fd_data : NULL; in AppIdFlowdataGet() 126 AppIdFlowData *tmp_fd; in AppIdFlowdataAdd() local 136 tmp_fd->fd_id = id; in AppIdFlowdataAdd() [all …]
|
/dports/benchmarks/stress-ng/stress-ng-0.13.09/ |
H A D | stress-rename.c | 231 int tmp_fd; in stress_rename() local 267 if (tmp_fd >= 0) in stress_rename() 268 (void)close(tmp_fd); in stress_rename() 308 if (tmp_fd >= 0) { in stress_rename() 318 if (exercise_renameat(args, old, tmp_fd, new, tmp_fd, bad_fd) < 0) { in stress_rename() 324 if (renameat(tmp_fd, old, tmp_fd, new) < 0) { in stress_rename() 341 if (tmp_fd >= 0) { in stress_rename() 351 if (exercise_renameat2(args, old, tmp_fd, new, tmp_fd, bad_fd) < 0) { in stress_rename() 357 if (renameat2(tmp_fd, old, tmp_fd, new, RENAME_NOREPLACE) < 0) { in stress_rename() 377 if (tmp_fd >= 0) in stress_rename() [all …]
|
/dports/games/xconq/xconq-7.5.0-0pre.0.20050612/kernel/ |
H A D | socket.c | 135 int port, i, tmp_fd, tmp; in open_remote_connection() local 177 tmp_fd = socket(PF_INET, SOCK_STREAM, 0); in open_remote_connection() 178 if (tmp_fd < 0) { in open_remote_connection() 184 setsockopt (tmp_fd, SOL_SOCKET, SO_REUSEADDR, (char *) &tmp, in open_remote_connection() 192 public_fd = tmp_fd; in open_remote_connection() 224 tmp_fd = socket(PF_INET, SOCK_STREAM, 0); in open_remote_connection() 225 if (tmp_fd < 0) { in open_remote_connection() 245 if (connect(tmp_fd, (struct sockaddr *) &sockaddr, in open_remote_connection() 250 close(tmp_fd); in open_remote_connection() 251 tmp_fd = -1; in open_remote_connection() [all …]
|
/dports/print/flpsed/flpsed-0.7.3/src/ |
H A D | PSEditModel.cxx | 243 int tmp_fd; in load() local 246 tmp_fd = mkstemp(tmpname); in load() 247 if (tmp_fd < 0) { in load() 257 ret = write(tmp_fd, linebuf, strlen(linebuf)); in load() 264 lseek(tmp_fd, 0L, SEEK_SET); in load() 268 return tmp_fd; in load() 273 int PSEditModel::save(FILE *sfp, int tmp_fd) { in save() argument 274 off_t pos = lseek(tmp_fd, 0, SEEK_CUR); // save current position in save() 281 FILE *fp = fdopen(tmp_fd, "r"); in save() 293 lseek(tmp_fd, pos, SEEK_SET); // restore current position in save()
|
H A D | PSEditor.cxx | 16 tmp_fd = -1; in PSEditor() 99 if (tmp_fd >= 0) { in open_file() 100 close(tmp_fd); in open_file() 103 tmp_fd = model->load(fp); in open_file() 105 if (tmp_fd < 0) { in open_file() 110 return GsWidget::open_file(tmp_fd); in open_file() 137 ret = model->save(fp, tmp_fd); in save()
|
/dports/devel/util-linux/util-linux-2.36/login-utils/ |
H A D | vipw.c | 251 FILE *tmp_fd; in edit_file() local 262 tmp_fd = pw_tmpfile(passwd_file); in edit_file() 264 if (fstat(fileno(tmp_fd), &begin)) in edit_file() 269 if (fstat(fileno(tmp_fd), &end)) in edit_file() 275 if (close_stream(tmp_fd) != 0) in edit_file() 277 tmp_fd = fopen(tmp_file, "r" UL_CLOEXECSTR); in edit_file() 278 if (!tmp_fd) in edit_file() 280 if (fstat(fileno(tmp_fd), &end)) in edit_file() 289 ch_ret = fchmod(fileno(tmp_fd), 0644); in edit_file() 291 ch_ret = fchmod(fileno(tmp_fd), 0400); in edit_file() [all …]
|
/dports/devel/libzim/libzim-6.3.2/test/ |
H A D | tools.h | 91 const auto tmp_fd = tmpFile.fd(); in write_to_buffer() local 92 object.write(tmp_fd); in write_to_buffer() 93 auto size = lseek(tmp_fd, 0, SEEK_END); in write_to_buffer() 96 lseek(tmp_fd, 0, SEEK_SET); in write_to_buffer() 97 if (read(tmp_fd, const_cast<char*>(buf.data()), size) == -1) in write_to_buffer()
|
/dports/sysutils/apcupsd/apcupsd-3.14.14/src/ |
H A D | apcupsd.c | 115 int tmp_fd, i; in main() local 131 tmp_fd = open("/dev/null", O_RDONLY); in main() 132 if (tmp_fd > 2) { in main() 133 close(tmp_fd); in main() 134 } else if (tmp_fd >= 0) { in main() 135 for (i = 1; tmp_fd + i <= 2; i++) in main() 136 dup2(tmp_fd, tmp_fd + i); in main()
|
/dports/sysutils/apcctrl/apcctrl-0.8.21/src/ |
H A D | apcctrl.c | 115 int tmp_fd, i; in main() local 131 tmp_fd = open("/dev/null", O_RDONLY); in main() 132 if (tmp_fd > 2) { in main() 133 close(tmp_fd); in main() 134 } else if (tmp_fd >= 0) { in main() 135 for (i = 1; tmp_fd + i <= 2; i++) in main() 136 dup2(tmp_fd, tmp_fd + i); in main()
|
/dports/sysutils/linrename/util-linux-2.25.2/login-utils/ |
H A D | vipw.c | 255 FILE *tmp_fd; in edit_file() local 266 tmp_fd = pw_tmpfile(passwd_file); in edit_file() 268 if (fstat(fileno(tmp_fd), &begin)) in edit_file() 273 if (fstat(fileno(tmp_fd), &end)) in edit_file() 279 if (close_stream(tmp_fd) != 0) in edit_file() 281 tmp_fd = fopen(tmp_file, "r"); in edit_file() 284 if (fstat(fileno(tmp_fd), &end)) in edit_file() 293 ch_ret = fchmod(fileno(tmp_fd), 0644); in edit_file() 295 ch_ret = fchmod(fileno(tmp_fd), 0400); in edit_file() 298 if (close_stream(tmp_fd) != 0) in edit_file()
|
/dports/graphics/mesa-devel/mesa-22.0-branchpoint-2059-ge8a63cf61ec/src/vulkan/runtime/ |
H A D | vk_android.c | 137 int tmp_fd; in vk_common_QueueSignalReleaseImageANDROID() local 139 &get_fd, &tmp_fd); in vk_common_QueueSignalReleaseImageANDROID() 147 fd = tmp_fd; in vk_common_QueueSignalReleaseImageANDROID() 148 } else if (tmp_fd >= 0) { in vk_common_QueueSignalReleaseImageANDROID() 149 sync_accumulate("vulkan", &fd, tmp_fd); in vk_common_QueueSignalReleaseImageANDROID() 150 close(tmp_fd); in vk_common_QueueSignalReleaseImageANDROID()
|
/dports/devel/p5-PPerl/PPerl-0.25/ |
H A D | main.c | 390 int tmp_fd; in DispatchCall() local 452 tmp_fd = mkstemp(temp_file); in DispatchCall() 453 if (tmp_fd == -1) { in DispatchCall() 459 write(tmp_fd, "### Temp File ###\n", 18); in DispatchCall() 460 write(tmp_fd, perl_header, strlen(perl_header)); in DispatchCall() 480 write(tmp_fd, "\n#line 2 ", 9); in DispatchCall() 482 write(tmp_fd, "\n", 1); in DispatchCall() 488 write(tmp_fd, "\n#line 1 ", 9); in DispatchCall() 490 write(tmp_fd, "\n", 1); in DispatchCall() 502 write(tmp_fd, buf, readlen); in DispatchCall() [all …]
|
/dports/devel/pecl-swoole/swoole-4.8.5/src/os/ |
H A D | file.cc | 21 int tmp_fd = mkostemp(filename, O_WRONLY | O_CREAT); in swoole_tmpfile() local 23 int tmp_fd = mkstemp(filename); in swoole_tmpfile() 26 if (tmp_fd < 0) { in swoole_tmpfile() 30 return tmp_fd; in swoole_tmpfile() 91 int tmp_fd = swoole_tmpfile(tmpfile); in make_tmpfile() local 92 if (tmp_fd < 0) { in make_tmpfile() 95 return File(tmp_fd, std::string(tmpfile, l)); in make_tmpfile()
|
/dports/net-p2p/deluge-cli/deluge-2.0.3/deluge/tests/ |
H A D | test_maketorrent.py | 44 tmp_fd, tmp_file = tempfile.mkstemp('.torrent') 53 os.close(tmp_fd) 64 tmp_fd, tmp_file = tempfile.mkstemp('.torrent') 70 os.close(tmp_fd) 86 tmp_fd, tmp_file = tempfile.mkstemp('.torrent') 95 os.close(tmp_fd)
|
H A D | test_metafile.py | 42 tmp_fd, tmp_file = tempfile.mkstemp('.torrent') 51 os.close(tmp_fd) 61 tmp_fd, tmp_file = tempfile.mkstemp('.torrent') 67 os.close(tmp_fd)
|
/dports/devel/android-tools-adb/platform_system_core-android-9.0.0_r3/libsparse/ |
H A D | append2simg.c | 60 int tmp_fd; in main() local 114 tmp_fd = open(tmp_path, O_WRONLY | O_CREAT | O_BINARY, 0664); in main() 115 if (tmp_fd < 0) { in main() 121 if (sparse_file_write(sparse_output, tmp_fd, false, true, false) < 0) { in main() 127 close(tmp_fd); in main()
|
/dports/devel/android-tools-fastboot/platform_system_core-platform-tools-29.0.5/libsparse/ |
H A D | append2simg.cpp | 57 int tmp_fd; in main() local 111 tmp_fd = open(tmp_path, O_WRONLY | O_CREAT | O_BINARY, 0664); in main() 112 if (tmp_fd < 0) { in main() 118 if (sparse_file_write(sparse_output, tmp_fd, false, true, false) < 0) { in main() 124 close(tmp_fd); in main()
|
/dports/audio/mikmod/mikmod-3.2.8/src/ |
H A D | marchive.c | 497 int tmp_fd = -1, t; in MA_dearchive() local 504 return tmp_fd; in MA_dearchive() 530 if (tmp_fd >= 0) { in MA_dearchive() 544 if (tmp_fd < 0) return -1; in MA_dearchive() 552 close (tmp_fd); in MA_dearchive() 563 dup2(tmp_fd, 1); in MA_dearchive() 582 close(tmp_fd); in MA_dearchive() 593 if (tmp_fd >= 0) { in MA_dearchive() 601 close (tmp_fd); in MA_dearchive() 607 tmp_fd = t; in MA_dearchive() [all …]
|
/dports/net/mpich2/mpich2-1.5/src/mpe2/src/logging/src/ |
H A D | clog_util.c | 106 int tmp_fd; in CLOG_Util_set_tmpfilename() local 187 tmp_fd = mkstemp( tmp_pathname ); in CLOG_Util_set_tmpfilename() 188 if ( tmp_fd != -1 ) { in CLOG_Util_set_tmpfilename() 189 close( tmp_fd ); in CLOG_Util_set_tmpfilename() 213 tmp_fd = mkstemp( tmp_pathname ); in CLOG_Util_set_tmpfilename() 214 if ( tmp_fd != -1 ) { in CLOG_Util_set_tmpfilename() 215 close( tmp_fd ); in CLOG_Util_set_tmpfilename()
|
/dports/misc/py-cinder/cinder-12.0.10/cinder/volume/drivers/ibm/ibm_storage/ |
H A D | certificate.py | 32 self.tmp_fd = None 36 self.tmp_fd, self.tmp_path = tempfile.mkstemp() 47 os.write(self.tmp_fd, cert_file.read()) 51 os.close(self.tmp_fd)
|
/dports/mail/qmail-remove/qmail-remove-0.95/ |
H A D | qmail-remove.c | 448 int i = 0, tmp_fd = -1; in find_files() local 466 tmp_fd = open(".", O_RDONLY); in find_files() 467 if((tmp_fd >= 0) && (remove_files == 1)) { in find_files() 473 if(fchdir(tmp_fd) != 0) { in find_files() 476 } else if ((tmp_fd >= 0) && (delete_files == 1)) { in find_files() 479 if(fchdir(tmp_fd) != 0) { in find_files() 482 …} else if ((tmp_fd >= 0) && (expire_files == 1)) { /* this makes sure the the Remove option takes… in find_files() 485 if(fchdir(tmp_fd) != 0) { in find_files() 489 if(tmp_fd >= 0) { in find_files() 490 close(tmp_fd); in find_files() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/ |
H A D | mmap.c | 22 int err, duration = 0, i, data_map_fd, data_map_id, tmp_fd, rdmap_fd; in test_mmap() local 272 tmp_fd = bpf_map_get_fd_by_id(data_map_id); in test_mmap() 273 if (CHECK(tmp_fd < 0, "get_map_by_id", "failed %d\n", errno)) { in test_mmap() 277 close(tmp_fd); in test_mmap() 291 tmp_fd = bpf_map_get_fd_by_id(data_map_id); in test_mmap() 292 if (CHECK(tmp_fd >= 0, "get_map_by_id_after", in test_mmap() 293 "unexpectedly succeeded %d\n", tmp_fd)) { in test_mmap() 294 close(tmp_fd); in test_mmap()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/ |
H A D | mmap.c | 22 int err, duration = 0, i, data_map_fd, data_map_id, tmp_fd, rdmap_fd; in test_mmap() local 272 tmp_fd = bpf_map_get_fd_by_id(data_map_id); in test_mmap() 273 if (CHECK(tmp_fd < 0, "get_map_by_id", "failed %d\n", errno)) { in test_mmap() 277 close(tmp_fd); in test_mmap() 291 tmp_fd = bpf_map_get_fd_by_id(data_map_id); in test_mmap() 292 if (CHECK(tmp_fd >= 0, "get_map_by_id_after", in test_mmap() 293 "unexpectedly succeeded %d\n", tmp_fd)) { in test_mmap() 294 close(tmp_fd); in test_mmap()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/ |
H A D | mmap.c | 22 int err, duration = 0, i, data_map_fd, data_map_id, tmp_fd, rdmap_fd; in test_mmap() local 272 tmp_fd = bpf_map_get_fd_by_id(data_map_id); in test_mmap() 273 if (CHECK(tmp_fd < 0, "get_map_by_id", "failed %d\n", errno)) { in test_mmap() 277 close(tmp_fd); in test_mmap() 291 tmp_fd = bpf_map_get_fd_by_id(data_map_id); in test_mmap() 292 if (CHECK(tmp_fd >= 0, "get_map_by_id_after", in test_mmap() 293 "unexpectedly succeeded %d\n", tmp_fd)) { in test_mmap() 294 close(tmp_fd); in test_mmap()
|
/dports/graphics/mesa-dri-classic/mesa-20.2.3/src/freedreno/vulkan/ |
H A D | tu_android.c | 345 int tmp_fd; in tu_QueueSignalReleaseImageANDROID() local 353 &tmp_fd); in tu_QueueSignalReleaseImageANDROID() 361 fd = tmp_fd; in tu_QueueSignalReleaseImageANDROID() 362 else if (tmp_fd >= 0) { in tu_QueueSignalReleaseImageANDROID() 363 sync_accumulate("tu", &fd, tmp_fd); in tu_QueueSignalReleaseImageANDROID() 364 close(tmp_fd); in tu_QueueSignalReleaseImageANDROID()
|