Searched refs:tmp_fd (Results 1 - 12 of 12) sorted by relevance

/illumos-gate/usr/src/lib/libwrap/
H A Dshell_cmd.c77 int tmp_fd; local
88 for (tmp_fd = 0; tmp_fd < 3; tmp_fd++)
89 (void) close(tmp_fd);
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_rep.c162 if (tmp_fd != -1) { \
163 close(tmp_fd); \
222 int fd, copy_fd, tmp_fd, new_file_flag = 0; local
231 fd = copy_fd = tmp_fd = -1;
442 if ((tmp_fd = open(tmp_rep, O_RDWR|O_CREAT|O_TRUNC,
448 if (lseek(tmp_fd, size - 1, SEEK_SET) == -1) {
453 if (write(tmp_fd, "", 1) != 1) {
459 MAP_SHARED, tmp_fd, 0)) == MAP_FAILED) {
490 if (fchmod(tmp_fd, S_IRUSR | S_IRGRP | S_IROTH) < 0) {
496 close(tmp_fd); tmp_f
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/keymgmt/
H A Dkeymgmt.c185 int tmp_fd; local
199 if ((tmp_fd = mkstemp(tmp_path)) == -1) {
207 if ((tmp_fp = fdopen(tmp_fd, "w")) == NULL) {
209 (void) close(tmp_fd);
/illumos-gate/usr/src/cmd/power/
H A Dconf.c70 static int tmp_fd; variable
351 if (write(tmp_fd, buf, len) != (ssize_t)len)
445 if ((tmp_fd = mkstemp(tmp_conf)) == -1) {
470 (void) close(tmp_fd);
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbiod-svc/
H A Dsmbiod-svc.c190 int door_fd = -1, tmp_fd = -1, pfd = -1; local
268 tmp_fd = open(door_path, O_RDWR|O_CREAT|O_EXCL, 0644);
269 if (tmp_fd < 0) {
273 close(tmp_fd);
274 tmp_fd = -1;
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c729 int version, tmp_fd; local
734 tmp_fd = open_nointr(tmp_fname,
736 if (tmp_fd < 0) {
751 if (writen_nointr(tmp_fd, buf, KS_PKCS11_VER_SIZE) !=
768 if (writen_nointr(tmp_fd, (void *)&version, KS_VER_SIZE)
776 if (writen_nointr(tmp_fd, buf, nread) != nread) {
782 (void) close(tmp_fd);
786 (void) close(tmp_fd);
2473 int fd, ks_fd, tmp_fd, version; local
2531 tmp_fd
[all...]
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c653 int tmp_fd; local
678 tmp_fd = _so_socket(family, SOCK_DGRAM, 0, NULL, SOV_SOCKBSD);
679 if (tmp_fd < 0) {
685 if (_so_connect(tmp_fd, sock, sock_len, SOV_SOCKBSD) < 0) {
703 (void) close(tmp_fd);
709 if (_so_getsockname(tmp_fd, sock, &sock_len, SOV_DEFAULT) < 0) {
711 (void) close(tmp_fd);
726 (void) close(tmp_fd);
/illumos-gate/usr/src/cmd/hal/addons/cpufreq/
H A Daddon-cpufreq.c151 int tmp_fd; local
765 int tmp_fd; local
808 tmp_fd = mkstemp (tmp_conf_file);
809 if (tmp_fd == -1) {
912 int tmp_fd; local
985 tmp_fd = mkstemp (tmp_conf_file);
986 if (tmp_fd == -1) {
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_slice.c1328 int tmp_fd; local
1354 tmp_fd = open("/usr/lib/fs/ufs/mboot", O_RDONLY);
1355 if (tmp_fd <= 0) {
1359 if (read(tmp_fd, &boot_code, sizeof (struct mboot))
1361 (void) close(tmp_fd);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute.c1797 int tmp_fd; local
1827 if ((tmp_fd = socket(family, SOCK_DGRAM, 0)) < 0) {
1834 if (connect(tmp_fd, sock, sock_len) < 0) {
1851 if (getsockname(tmp_fd, sock, &sock_len) < 0) {
1868 (void) close(tmp_fd);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping.c1192 int tmp_fd; local
1219 if ((tmp_fd = socket(family, SOCK_DGRAM, 0)) < 0) {
1226 if (connect(tmp_fd, sock, sock_len) < 0) {
1243 if (getsockname(tmp_fd, sock, &sock_len) < 0) {
1257 (void) close(tmp_fd);
/illumos-gate/usr/src/lib/libbe/common/
H A Dbe_utils.c1769 int tmp_fd; local
1859 if ((tmp_fd = mkstemp(temp_menu)) == -1) {
1868 if ((new_fp = fdopen(tmp_fd, "w")) == NULL) {
1872 (void) close(tmp_fd);
1981 (void) close(tmp_fd);

Completed in 93 milliseconds