Lines Matching defs:fFlags
126 RTDECL(int) RTPipeCreate(PRTPIPE phPipeRead, PRTPIPE phPipeWrite, uint32_t fFlags)
130 AssertReturn(!(fFlags & ~RTPIPE_C_VALID_MASK), VERR_INVALID_PARAMETER);
144 if (fFlags & RTPIPE_C_INHERIT_READ)
150 if (fFlags & RTPIPE_C_INHERIT_WRITE)
159 if (!(fFlags & RTPIPE_C_INHERIT_READ))
165 if (!(fFlags & RTPIPE_C_INHERIT_WRITE))
243 RTDECL(int) RTPipeFromNative(PRTPIPE phPipe, RTHCINTPTR hNativePipe, uint32_t fFlags)
246 AssertReturn(!(fFlags & ~RTPIPE_N_VALID_MASK), VERR_INVALID_PARAMETER);
247 AssertReturn(!!(fFlags & RTPIPE_N_READ) != !!(fFlags & RTPIPE_N_WRITE), VERR_INVALID_PARAMETER);
259 AssertMsgReturn( (fFd & O_ACCMODE) == (fFlags & RTPIPE_N_READ ? O_RDONLY : O_WRONLY)
272 pThis->fRead = !!(fFlags & RTPIPE_N_READ);
278 if (fcntl(hNative, F_SETFD, fFlags & RTPIPE_N_INHERIT ? 0 : FD_CLOEXEC) == 0)
347 int fFlags = fcntl(pThis->fd, F_GETFL, 0);
348 if (fFlags != -1)
350 if ( !(fFlags & O_NONBLOCK)
351 || fcntl(pThis->fd, F_SETFL, fFlags & ~O_NONBLOCK) != -1)
409 int fFlags = fcntl(pThis->fd, F_GETFL, 0);
410 if (fFlags != -1)
412 if ( (fFlags & O_NONBLOCK)
413 || fcntl(pThis->fd, F_SETFL, fFlags | O_NONBLOCK) != -1)