pike.git / src / post_modules / Shuffler / a_source_system_memory.c

version» Context lines:

pike.git/src/post_modules/Shuffler/a_source_system_memory.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: a_source_system_memory.c,v 1.10 2003/12/13 22:54:29 nilsson Exp $ + || $Id: a_source_system_memory.c,v 1.11 2004/10/16 07:27:29 agehall Exp $   */      #include "global.h"   #include "bignum.h"   #include "object.h"   #include "interpret.h"      #include <shuffler.h>      
pike.git/src/post_modules/Shuffler/a_source_system_memory.c:24:       struct object *obj;    struct {    unsigned char *data;    size_t len;    } *mem;       int offset, len;   };    - static struct data get_data( struct source *_s, int len ) + static struct data get_data( struct source *_s, off_t len )   {    struct sm_source *s = (struct sm_source *)_s;    struct data res;       res.do_free = 0;    res.off = 0;    res.data = s->mem->data + s->offset;       if( len > s->len )    {