/titanic_44/usr/src/lib/libwrap/ |
H A D | shell_cmd.c | 77 int tmp_fd; local 88 for (tmp_fd = 0; tmp_fd < 3; tmp_fd++) 89 (void) close(tmp_fd);
|
/titanic_44/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rep.c | 162 if (tmp_fd != -1) { \ 163 close(tmp_fd); \ 222 int fd, copy_fd, tmp_fd, new_file_flag = 0; in update_fabric_wwn_list() local 231 fd = copy_fd = tmp_fd = -1; in update_fabric_wwn_list() 442 if ((tmp_fd = open(tmp_rep, O_RDWR|O_CREAT|O_TRUNC, in update_fabric_wwn_list() 448 if (lseek(tmp_fd, size - 1, SEEK_SET) == -1) { in update_fabric_wwn_list() 453 if (write(tmp_fd, "", 1) != 1) { in update_fabric_wwn_list() 459 MAP_SHARED, tmp_fd, 0)) == MAP_FAILED) { in update_fabric_wwn_list() 490 if (fchmod(tmp_fd, S_IRUSR | S_IRGRP | S_IROTH) < 0) { in update_fabric_wwn_list() 496 close(tmp_fd); tmp_fd = -1; in update_fabric_wwn_list() [all …]
|
/titanic_44/usr/src/cmd/fs.d/smbclnt/smbiod-svc/ |
H A D | smbiod-svc.c | 190 int door_fd = -1, tmp_fd = -1, pfd = -1; in main() local 268 tmp_fd = open(door_path, O_RDWR|O_CREAT|O_EXCL, 0644); in main() 269 if (tmp_fd < 0) { in main() 273 close(tmp_fd); in main() 274 tmp_fd = -1; in main()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/wanboot/keymgmt/ |
H A D | keymgmt.c | 185 int tmp_fd; in compress_keystore() local 199 if ((tmp_fd = mkstemp(tmp_path)) == -1) { in compress_keystore() 207 if ((tmp_fp = fdopen(tmp_fd, "w")) == NULL) { in compress_keystore() 209 (void) close(tmp_fd); in compress_keystore()
|
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeystoreUtil.c | 729 int version, tmp_fd; in create_updated_keystore_version() local 734 tmp_fd = open_nointr(tmp_fname, in create_updated_keystore_version() 736 if (tmp_fd < 0) { in create_updated_keystore_version() 751 if (writen_nointr(tmp_fd, buf, KS_PKCS11_VER_SIZE) != in create_updated_keystore_version() 768 if (writen_nointr(tmp_fd, (void *)&version, KS_VER_SIZE) in create_updated_keystore_version() 776 if (writen_nointr(tmp_fd, buf, nread) != nread) { in create_updated_keystore_version() 782 (void) close(tmp_fd); in create_updated_keystore_version() 786 (void) close(tmp_fd); in create_updated_keystore_version() 2473 int fd, ks_fd, tmp_fd, version; in soft_keystore_modify_obj() local 2531 tmp_fd = open_nointr(tmp_name, in soft_keystore_modify_obj() [all …]
|
/titanic_44/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet_sundry.c | 653 int tmp_fd; in select_server_addr() local 678 tmp_fd = _so_socket(family, SOCK_DGRAM, 0, NULL, SOV_SOCKBSD); in select_server_addr() 679 if (tmp_fd < 0) { in select_server_addr() 685 if (_so_connect(tmp_fd, sock, sock_len, SOV_SOCKBSD) < 0) { in select_server_addr() 703 (void) close(tmp_fd); in select_server_addr() 709 if (_so_getsockname(tmp_fd, sock, &sock_len, SOV_DEFAULT) < 0) { in select_server_addr() 711 (void) close(tmp_fd); in select_server_addr() 726 (void) close(tmp_fd); in select_server_addr()
|
/titanic_44/usr/src/cmd/power/ |
H A D | conf.c | 70 static int tmp_fd; variable 351 if (write(tmp_fd, buf, len) != (ssize_t)len) in tmp_write() 445 if ((tmp_fd = mkstemp(tmp_conf)) == -1) { in write_conf() 470 (void) close(tmp_fd); in write_conf()
|
/titanic_44/usr/src/cmd/hal/addons/cpufreq/ |
H A D | addon-cpufreq.c | 151 int tmp_fd; in edit_power_conf_file() local 765 int tmp_fd; in set_cpufreq_gov() local 808 tmp_fd = mkstemp (tmp_conf_file); in set_cpufreq_gov() 809 if (tmp_fd == -1) { in set_cpufreq_gov() 912 int tmp_fd; in set_cpufreq_performance() local 985 tmp_fd = mkstemp (tmp_conf_file); in set_cpufreq_performance() 986 if (tmp_fd == -1) { in set_cpufreq_performance()
|
/titanic_44/usr/src/cmd/rmformat/ |
H A D | rmf_slice.c | 1328 int tmp_fd; in write_default_label() local 1354 tmp_fd = open("/usr/lib/fs/ufs/mboot", O_RDONLY); in write_default_label() 1355 if (tmp_fd <= 0) { in write_default_label() 1359 if (read(tmp_fd, &boot_code, sizeof (struct mboot)) in write_default_label() 1361 (void) close(tmp_fd); in write_default_label()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ping/ |
H A D | ping.c | 1147 int tmp_fd; in select_src_addr() local 1174 if ((tmp_fd = socket(family, SOCK_DGRAM, 0)) < 0) { in select_src_addr() 1181 if (connect(tmp_fd, sock, sock_len) < 0) { in select_src_addr() 1198 if (getsockname(tmp_fd, sock, &sock_len) < 0) { in select_src_addr() 1210 (void) close(tmp_fd); in select_src_addr()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute.c | 1797 int tmp_fd; in select_src_addr() local 1827 if ((tmp_fd = socket(family, SOCK_DGRAM, 0)) < 0) { in select_src_addr() 1834 if (connect(tmp_fd, sock, sock_len) < 0) { in select_src_addr() 1851 if (getsockname(tmp_fd, sock, &sock_len) < 0) { in select_src_addr() 1868 (void) close(tmp_fd); in select_src_addr()
|
/titanic_44/usr/src/lib/libbe/common/ |
H A D | be_utils.c | 1551 int tmp_fd; in be_update_menu() local 1641 if ((tmp_fd = mkstemp(temp_menu)) == -1) { in be_update_menu() 1650 if ((new_fp = fdopen(tmp_fd, "w")) == NULL) { in be_update_menu() 1654 (void) close(tmp_fd); in be_update_menu() 1763 (void) close(tmp_fd); in be_update_menu()
|