Lines Matching defs:oflags

318 char *format_oflags(int oflags);
416 int alloc_fd(char *file, int oflags);
417 struct fd_cache *alloc_fdcache(char *file, int oflags);
1184 char *format_oflags(int oflags)
1189 switch (oflags & 03) {
1204 if (oflags & O_EXCL)
1207 if (oflags & O_SYNC)
1210 if (oflags & O_RAW)
1212 if (oflags & O_WELLFORMED)
1215 if (oflags & O_SSD)
1218 if (oflags & O_LDRAW)
1220 if (oflags & O_PARALLEL)
1222 if (oflags & O_BIG)
1224 if (oflags & O_PLACE)
1226 if (oflags & O_ASYNC)
1231 if (oflags & O_DIRECT)
1233 if (oflags & O_DSYNC)
1235 if (oflags & O_RSYNC)
1406 int fd, offset, nbytes, oflags, rval;
1423 oflags = req->r_data.read.r_oflags;
1427 /*printf("read: %s, %#o, %d %d\n", file, oflags, offset, nbytes); */
1435 if ((fd = alloc_fd(file, oflags)) == -1)
1447 if (oflags & O_SSD) {
1472 fdc = alloc_fdcache(file, oflags);
1484 if ((oflags & O_DIRECT) && ((long)addr % fdc->c_memalign != 0)) {
1601 int fd, nbytes, oflags, signo;
1625 oflags = req->r_data.write.r_oflags;
1627 /*printf("pwrite: %s, %#o, %d %d\n", file, oflags, offset, nbytes); */
1640 if ((fd = alloc_fd(file, oflags)) == -1)
1644 fd, file, oflags, offset, nbytes); */
1651 if (oflags & O_SSD) {
1702 fdc = alloc_fdcache(file, oflags);
1714 if ((oflags & O_DIRECT) && ((long)addr % fdc->c_memalign != 0)) {
1765 wrec.w_oflags = oflags;
1811 "write() failed: %s\n\twrite(%d, %#o, %d)\n\toffset %d, nbytes%%miniou(%d)=%d, oflags=%#o memalign=%d, addr%%memalign=%d\n",
1816 oflags, fdc->c_memalign,
1820 "write() failed: %s\n\twrite(%d, %#o, %d)\n\toffset %d, nbytes%%1B=%d, oflags=%#o\n",
1823 offset, nbytes % 4096, oflags);
1911 0, oflags & O_PARALLEL);
2082 int fd, oflags, signo, nb, i;
3058 int fd, offset, nbytes, nstrides, nents, oflags;
3083 oflags = req->r_data.io.r_oflags;
3115 if ((fd = alloc_fd(file, oflags)) == -1)
3144 fdc = alloc_fdcache(file, oflags);
3163 if (oflags & O_SSD) {
3220 if ((oflags & O_DIRECT) && ((long)addr % fdc->c_memalign != 0)) {
3283 wrec.w_oflags = oflags;
3446 oflags & O_PARALLEL);
3498 int fd, oflags, offset, nbytes;
3511 oflags = req->r_data.io.r_oflags;
3524 if ((fd = alloc_fd(file, oflags)) == -1)
3602 int fd, oflags;
3612 oflags = req->r_data.io.r_oflags;
3618 if ((fd = alloc_fd(file, oflags)) == -1)
4258 int alloc_fd(char *file, int oflags)
4261 struct fd_cache *alloc_fdcache(char *file, int oflags);
4263 fdc = alloc_fdcache(file, oflags);
4270 struct fd_cache *alloc_fdcache(char *file, int oflags)
4314 cp->c_oflags == oflags && strcmp(cp->c_file, file) == 0) {
4336 * No matching file/oflags pair was found in the cache. Attempt to
4340 if ((fd = open(file, oflags, 0666)) < 0) {
4344 file, oflags, format_oflags(oflags),
4360 if ((fd = open(file, oflags, 0666)) < 0) {
4363 file, oflags, format_oflags(oflags),
4370 /*printf("alloc_fd: new file %s flags %#o fd %d\n", file, oflags, fd);*/
4405 free_slot->c_oflags = oflags;
4414 if (oflags & O_DIRECT) {