Lines Matching defs:fOpenMode
128 int fOpenMode = 0;
130 fOpenMode |= O_BINARY; /* (pc) */
133 fOpenMode |= O_LARGEFILE; /* (linux, solaris) */
137 fOpenMode |= O_NOINHERIT;
142 fOpenMode |= O_CLOEXEC;
146 fOpenMode |= O_NONBLOCK;
150 fOpenMode |= O_SYNC;
155 fOpenMode |= O_DIRECT;
160 fOpenMode |= O_DIRECT;
167 case RTFILE_O_OPEN_CREATE: fOpenMode |= O_CREAT; break;
168 case RTFILE_O_CREATE: fOpenMode |= O_CREAT | O_EXCL; break;
169 case RTFILE_O_CREATE_REPLACE: fOpenMode |= O_CREAT | O_TRUNC; break; /** @todo replacing needs fixing, this is *not* a 1:1 mapping! */
172 fOpenMode |= O_TRUNC;
177 fOpenMode |= O_RDONLY; /* RTFILE_O_APPEND is ignored. */
180 fOpenMode |= fOpen & RTFILE_O_APPEND ? O_APPEND | O_WRONLY : O_WRONLY;
183 fOpenMode |= fOpen & RTFILE_O_APPEND ? O_APPEND | O_RDWR : O_RDWR;
205 int fh = open(pszNativeFilename, fOpenMode, fMode);
209 if ( (fOpenMode & O_CLOEXEC)
215 fh = open(pszNativeFilename, fOpenMode, fMode);
233 && !(fOpenMode & O_NOINHERIT) /* Take care since it might be a zero value dummy. */