oflags 133 include/ruby/io.h CONSTFUNC(int rb_io_oflags_fmode(int oflags));
oflags 2452 io.c int oflags;
oflags 2454 io.c oflags = fcntl(fptr->fd, F_GETFL);
oflags 2455 io.c if (oflags == -1) {
oflags 2459 io.c oflags = 0;
oflags 2461 io.c if ((oflags & O_NONBLOCK) == 0) {
oflags 2462 io.c oflags |= O_NONBLOCK;
oflags 2463 io.c if (fcntl(fptr->fd, F_SETFL, oflags) == -1) {
oflags 4931 io.c switch (oflags & O_ACCMODE) {
oflags 4943 io.c if (oflags & O_APPEND) {
oflags 4946 io.c if (oflags & O_TRUNC) {
oflags 4949 io.c if (oflags & O_CREAT) {
oflags 4953 io.c if (oflags & O_BINARY) {
oflags 4964 io.c int oflags = 0;
oflags 4968 io.c oflags |= O_RDONLY;
oflags 4971 io.c oflags |= O_WRONLY;
oflags 4974 io.c oflags |= O_RDWR;
oflags 4979 io.c oflags |= O_APPEND;
oflags 4982 io.c oflags |= O_TRUNC;
oflags 4985 io.c oflags |= O_CREAT;
oflags 4989 io.c oflags |= O_BINARY;
oflags 4993 io.c return oflags;
oflags 5006 io.c # define MODE_BINARY(a,b) ((oflags & O_BINARY) ? (b) : (a))
oflags 5010 io.c int accmode = oflags & (O_RDONLY|O_WRONLY|O_RDWR);
oflags 5011 io.c if (oflags & O_APPEND) {
oflags 5019 io.c switch (oflags & (O_RDONLY|O_WRONLY|O_RDWR)) {
oflags 5021 io.c rb_raise(rb_eArgError, "invalid access oflags 0x%x", oflags);
oflags 5027 io.c if (oflags & O_TRUNC) {
oflags 5270 io.c int oflags, fmode;
oflags 5285 io.c oflags = O_RDONLY;
oflags 5289 io.c oflags = NUM2INT(intmode);
oflags 5290 io.c fmode = rb_io_oflags_fmode(oflags);
oflags 5298 io.c oflags = rb_io_fmode_oflags(fmode);
oflags 5340 io.c oflags |= NUM2INT(v);
oflags 5341 io.c vmode = INT2NUM(oflags);
oflags 5342 io.c fmode = rb_io_oflags_fmode(oflags);
oflags 5347 io.c oflags |= O_BINARY;
oflags 5391 io.c *oflags_p = oflags;
oflags 5401 io.c int oflags;
oflags 5410 io.c return (void *)(VALUE)rb_cloexec_open(fname, data->oflags, data->perm);
oflags 5431 io.c data.oflags = oflags;
oflags 5595 io.c fptr->fd = rb_sysopen(fptr->pathv, oflags, perm);
oflags 6253 io.c int oflags, fmode;
oflags 6294 io.c rb_io_extract_modeenc(&pmode, 0, opt, &oflags, &fmode, &convconfig);
oflags 6295 io.c modestr = rb_io_oflags_modestr(oflags);
oflags 6321 io.c int oflags, fmode;
oflags 6327 io.c rb_io_extract_modeenc(&vmode, &vperm, opt, &oflags, &fmode, convconfig_p);
oflags 6332 io.c *oflags_p = oflags;
oflags 6341 io.c int oflags, fmode;
oflags 6345 io.c rb_scan_open_args(argc, argv, &fname, &oflags, &fmode, &convconfig, &perm);
oflags 6346 io.c rb_file_open_generic(io, fname, oflags, fmode, &convconfig, perm);
oflags 6415 io.c int oflags, fd;
oflags 6422 io.c oflags = O_RDONLY;
oflags 6424 io.c oflags = NUM2INT(intmode);
oflags 6427 io.c oflags = rb_io_modestr_oflags(StringValueCStr(vmode));
oflags 6433 io.c fd = rb_sysopen(fname, oflags, perm);
oflags 6593 io.c int oflags, fmode;
oflags 6597 io.c rb_io_extract_modeenc(&vmode, &vperm, opt, &oflags, &fmode, &convconfig);
oflags 6599 io.c return rb_io_open_generic(filename, oflags, fmode, &convconfig, perm);
oflags 6608 io.c return pipe_open_s(cmd, rb_io_oflags_modestr(oflags), fmode, convconfig);
oflags 6612 io.c oflags, fmode, convconfig, perm);
oflags 6746 io.c int oflags;
oflags 6767 io.c rb_io_extract_modeenc(&nmode, 0, opt, &oflags, &fmode, &convconfig);
oflags 6780 io.c oflags = rb_io_fmode_oflags(fptr->mode);
oflags 6785 io.c fptr->fd = rb_sysopen(fptr->pathv, oflags, 0666);
oflags 6798 io.c rb_io_oflags_modestr(oflags),
oflags 6817 io.c int tmpfd = rb_sysopen(fptr->pathv, oflags, 0666);
oflags 7357 io.c return prep_io(fd, rb_io_oflags_fmode(oflags), klass, path);
oflags 7383 io.c int oflags = rb_io_fmode_oflags(fptr->mode);
oflags 7384 io.c fptr->stdio_file = rb_fdopen(fptr->fd, rb_io_oflags_modestr(oflags));
oflags 7598 io.c int fd, fmode, oflags = O_RDONLY;
oflags 7609 io.c rb_io_extract_modeenc(&vmode, 0, opt, &oflags, &fmode, &convconfig);
oflags 7616 io.c oflags = fcntl(fd, F_GETFL);
oflags 7617 io.c if (oflags == -1) rb_sys_fail(0);
oflags 7623 io.c ofmode = rb_io_oflags_fmode(oflags);
oflags 9899 io.c arg.io = rb_io_open_generic(argv[0], oflags, fmode, &convconfig, 0);
oflags 2289 process.c int oflags;
oflags 2300 process.c data->ret = parent_redirect_open(fname, data->oflags, data->perm);
oflags 2331 process.c open_data.oflags = flags;
oflags 1378 thread_pthread.c int oflags;
oflags 1381 thread_pthread.c oflags = fcntl(fd, F_GETFL);
oflags 1382 thread_pthread.c if (oflags == -1)
oflags 1384 thread_pthread.c oflags |= O_NONBLOCK;
oflags 1385 thread_pthread.c err = fcntl(fd, F_SETFL, oflags);