Lines Matching refs:fd

54 	int fd;  member
117 if (pcap->fd >= 0) in monitor_pcap_free()
118 close(pcap->fd); in monitor_pcap_free()
129 pcap->fd = open(pathname, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, in monitor_pcap_create()
131 if (pcap->fd < 0) { in monitor_pcap_create()
150 len = write(pcap->fd, &hdr, PCAP_FILE_HDR_SIZE); in monitor_pcap_create()
186 len = write(pcap->fd, &frame, PCAP_FRAME_SIZE); in monitor_pcap_write()
192 fsync(pcap->fd); in monitor_pcap_write()
194 len = write(pcap->fd, data, size); in monitor_pcap_write()
200 fsync(pcap->fd); in monitor_pcap_write()
210 int fd; in fifo_handler1() local
218 fd = g_io_channel_unix_get_fd(channel); in fifo_handler1()
220 result = read(fd, buf, 1); in fifo_handler1()
232 input1_offset, input1_len, starting, fd, 1, fd2_in); in fifo_handler1()
289 int fd; in fifo_handler2() local
297 fd = g_io_channel_unix_get_fd(channel); in fifo_handler2()
299 result = read(fd, buf, 1); in fifo_handler2()
311 input2_offset, input2_len, starting, fd, 1, fd1_in); in fifo_handler2()
365 int fd; in setup_fifofd1() local
367 fd = open(pipe_1_out, O_RDONLY); in setup_fifofd1()
368 if (fd < 0) { in setup_fifofd1()
370 return fd; in setup_fifofd1()
373 DBG("Pipe 1 OUT fd %d", fd); in setup_fifofd1()
375 channel = g_io_channel_unix_new(fd); in setup_fifofd1()
392 int fd; in setup_fifofd2() local
394 fd = open(pipe_2_out, O_RDONLY); in setup_fifofd2()
395 if (fd < 0) { in setup_fifofd2()
397 return fd; in setup_fifofd2()
400 DBG("Pipe 2 OUT fd %d", fd); in setup_fifofd2()
402 channel = g_io_channel_unix_new(fd); in setup_fifofd2()