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

version» Context lines:

pike.git/src/modules/_Stdio/file.c:1319:    SIMPLE_BAD_ARG_ERROR("read()", 1, "int(0..)|Stdio.Buffer|String.Buffer|System.Memory");       if (m.shift)    Pike_error("Cannot read into wide-string buffer.\n");       if (!m.len)    Pike_error("No buffer space.\n");       bytes_read = do_read_into_buffer(fd, m.ptr, (size_t)m.len, &file->my_errno);    +  if (bytes_read > 0) +  pike_advance_memory_object(o, type, bytes_read); +     pop_n_elems(args);    push_int(bytes_read);    } else {    struct pike_string *tmp;    unsigned INT32 mode = 0;    size_t count = DIRECT_BUFSIZE;       if(!args)    {    mode |= PIKE_READ_NO_LENGTH;