pike.git / src / modules / Pipe / pipe.c

version» Context lines:

pike.git/src/modules/Pipe/pipe.c:15: Inside #if defined(HAVE_MMAP)
  #ifdef HAVE_MMAP   /* sys/mman.h is _probably_ there anyway. */   #include <sys/mman.h>   #endif   #endif   #endif      #include <fcntl.h>      #include "global.h" - RCSID("$Id: pipe.c,v 1.10 1997/08/29 17:54:05 marcus Exp $"); + RCSID("$Id: pipe.c,v 1.11 1997/08/30 18:36:11 grubba Exp $");      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "error.h"   #include "builtin_functions.h"   
pike.git/src/modules/Pipe/pipe.c:283:    THIS->firstbuffer=b;       THIS->lastbuffer=b;       THIS->bytes_in_buffer+=s->len;    }    return THIS->bytes_in_buffer > MAX_BYTES_IN_BUFFER;   }      /* Wake up the sleepers */ - static void low_start() + static void low_start(void)   {    struct object *obj, *next;    struct output *o;          THISOBJ->refs++; /* dont kill yourself now */    for(obj=THIS->firstoutput;obj;obj=next)    {    obj->refs++; /* Hang on PLEASE!! /hubbe */    o=(struct output *)(obj->storage);
pike.git/src/modules/Pipe/pipe.c:1099:    push_int(noutputs);    push_int(ninputs);    push_int(nstrings);    push_int(nobjects);    push_int(mmapped);    push_int(nbuffers);    push_int(sbuffers);    f_aggregate(7);   }    - void pike_module_init() + void pike_module_init(void)   {    start_new_program();    add_storage(sizeof(struct pipe));    add_efun("_pipe_debug", f__pipe_debug, "function(:array)", 0);    add_function("input",pipe_input,"function(object:void)",0);    add_function("output",pipe_output,"function(object:void)",0);    add_function("write",pipe_write,"function(string:void)",0);       add_function("start",pipe_start,"function(:void)",0);    add_function("finish",pipe_finish,"function(:void)",0);