Home
last modified time | relevance | path

Searched refs:copy_fd (Results 1 – 2 of 2) sorted by relevance

/titanic_41/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_rep.c159 if (copy_fd != -1) { \
160 close(copy_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()
314 if ((copy_fd = open(copy_rep, O_RDWR | O_CREAT | O_TRUNC, in update_fabric_wwn_list()
328 if (lseek(copy_fd, filesize - 1, SEEK_SET) == -1) { in update_fabric_wwn_list()
333 if (write(copy_fd, "", 1) != 1) { in update_fabric_wwn_list()
340 MAP_SHARED, copy_fd, 0)) == MAP_FAILED) { in update_fabric_wwn_list()
391 if (fchmod(copy_fd, in update_fabric_wwn_list()
480 if (fchmod(copy_fd, S_IRUSR | S_IRGRP | S_IROTH) < 0) { in update_fabric_wwn_list()
[all …]
/titanic_41/usr/src/lib/libproc/common/
H A Dproc_stdio.c107 copy_fd(int out, FILE *in, size_t len) in copy_fd() function
147 errors += copy_fd(cached_stdout_fd, stdout, len); in proc_flushstdio()
151 errors += copy_fd(cached_stderr_fd, stderr, len); in proc_flushstdio()