Lines Matching refs:flags
302 int flags;
304 if (fcntl(mReadHandle, F_GETFL, &flags) == -1) {
305 LOG(LOG_ERROR, "pipe", "couldn't get flags for pipe read fd\n");
309 flags |= O_NONBLOCK;
311 flags &= ~(O_NONBLOCK);
312 if (fcntl(mReadHandle, F_SETFL, &flags) == -1) {
313 LOG(LOG_ERROR, "pipe", "couldn't set flags for pipe read fd\n");
334 int flags;
336 if (fcntl(mWriteHandle, F_GETFL, &flags) == -1) {
338 "Warning: couldn't get flags for pipe write fd (errno=%d)\n",
343 flags |= O_NONBLOCK;
345 flags &= ~(O_NONBLOCK);
346 if (fcntl(mWriteHandle, F_SETFL, &flags) == -1) {
348 "Warning: couldn't set flags for pipe write fd (errno=%d)\n",