Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_capture.c567 int *capfile_fd; /* Open file descriptors */ member
645 capfile_out.capfile_fd = malloc(nfiles * in cap_open_wr_multi()
646 sizeof (*capfile_out.capfile_fd)); in cap_open_wr_multi()
647 if (capfile_out.capfile_fd == NULL) { in cap_open_wr_multi()
658 capfile_out.capfile_fd[i] = open(name, in cap_open_wr_multi()
660 if (capfile_out.capfile_fd[i] < 0) { in cap_open_wr_multi()
667 cap_write_header(capfile_out.capfile_fd[i]); in cap_open_wr_multi()
669 capfile_out.capfile_curfd = capfile_out.capfile_fd[0]; in cap_open_wr_multi()
687 (void) lseek(capfile_out.capfile_fd[idx], 16, SEEK_SET); in cap_switch_file()
688 (void) ftruncate(capfile_out.capfile_fd[idx], 16); in cap_switch_file()
[all …]