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

version» Context lines:

pike.git/src/modules/Pipe/pipe.c:19: Inside #if defined(HAVE_MMAP)
  #else   #ifdef HAVE_MMAP   /* sys/mman.h is _probably_ there anyway. */   #include <sys/mman.h>   #endif   #endif   #endif      #include <fcntl.h>    - RCSID("$Id: pipe.c,v 1.28 1998/10/23 01:03:18 grubba Exp $"); + RCSID("$Id: pipe.c,v 1.29 1999/02/01 02:44:43 hubbe Exp $");      #include "threads.h"   #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:1234:    push_int(nobjects);    push_int(mmapped);    push_int(nbuffers);    push_int(sbuffers);    f_aggregate(7);   }      void pike_module_init(void)   {    start_new_program(); -  add_storage(sizeof(struct pipe)); +  ADD_STORAGE(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);       add_function("set_output_closed_callback",pipe_set_output_closed_callback,    "function(void|function(mixed,object:mixed),void|mixed:void)",0);
pike.git/src/modules/Pipe/pipe.c:1278:    pipe_program);    offset_input_close_callback=find_identifier("_input_close_callback",    pipe_program);    offset_output_write_callback=find_identifier("_output_write_callback",    pipe_program);    offset_input_read_callback=find_identifier("_input_read_callback",    pipe_program);          start_new_program(); -  add_storage(sizeof(struct output)); +  ADD_STORAGE(struct output);    set_init_callback(init_output_struct);    set_exit_callback(exit_output_struct);    output_program=end_program();    add_program_constant("__output",output_program, 0);   }      void pike_module_exit(void)   {    if(pipe_program) free_program(pipe_program);    pipe_program=0;    if(output_program) free_program(output_program);    output_program=0;   }