Lines Matching refs:fifo
31 * "fifo-path": "/tmp/lws-test-raw"
88 int fifo;
126 if (!strcmp(pvo->name, "fifo-path"))
132 lwsl_warn("%s: Missing pvo \"fifo-path\", "
143 vhd->fifo = lws_open(vhd->fifo_path, O_NONBLOCK | O_RDONLY);
144 if (vhd->fifo == -1) {
145 lwsl_err("opening fifo failed\n");
150 u.filefd = vhd->fifo;
155 lwsl_err("Failed to adopt fifo descriptor\n");
156 close(vhd->fifo);
165 if (vhd->fifo >= 0) {
166 close(vhd->fifo);
187 n = (int)read(vhd->fifo, buf, sizeof(buf) - 1);
218 close(vhd->fifo);
219 /* the wsi that adopted the fifo file is closing...
220 * reopen the fifo and readopt
222 vhd->fifo = lws_open(vhd->fifo_path,
224 if (vhd->fifo == -1) {
225 lwsl_err("opening fifo failed\n");
229 u.filefd = vhd->fifo;
232 lwsl_err("Failed to adopt fifo descriptor\n");
233 close(vhd->fifo);