pike.git / src / modules / _Stdio / file.c

version» Context lines:

pike.git/src/modules/_Stdio/file.c:3866:    */    ONERROR err;    SET_ONERROR(err, do_close_fd, (ptrdiff_t) fd);    o = clone_object_from_object(Pike_fp->current_object, 0);    UNSET_ONERROR(err);    if (!o->prog) return NULL; /* Destructed in create() or __INIT(). */    f = (struct my_file *)(o->storage + Pike_fp->context->storage_offset);    f->flags |= (THIS->flags & FILE_HAVE_RECV_FD);    } else {    /* Clone a plain Fd object. */ -  o = low_clone(file_program); +  o = fast_clone_object(file_program);    f = (struct my_file *) o->storage + file_program->inherits->storage_offset; -  call_c_initializers(o); +     }    change_fd_for_box(&f->box, fd);    if (fd >= 0) {    f->open_mode=mode | fd_query_properties(fd, guess);   #ifdef PIKE_DEBUG    debug_check_fd_not_in_use (fd);   #endif    } else {    f->open_mode = 0;    }