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.35 2000/07/02 16:52:19 grubba Exp $"); + RCSID("$Id: pipe.c,v 1.36 2000/07/07 13:59:28 grubba 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:95:    * with no mmap input    *    * multiple socket output without regular file output illegal    */      static struct program *pipe_program, *output_program;      #ifdef THIS   #undef THIS   #endif - #define THIS ((struct pipe *)(fp->current_storage)) - #define THISOBJ (fp->current_object) + #define THIS ((struct pipe *)(Pike_fp->current_storage)) + #define THISOBJ (Pike_fp->current_object)      struct input   {    enum { I_NONE,I_OBJ,I_BLOCKING_OBJ,I_STRING,I_MMAP } type;    union    {    struct object *obj;    struct pike_string *str;    char *mmap;    } u;
pike.git/src/modules/Pipe/pipe.c:179:   void close_and_free_everything(struct object *o,struct pipe *);   static INLINE void output_finish(struct object *obj);   static INLINE void output_try_write_some(struct object *obj);      /********** internal ********************************************************/      /* Push a callback to this object given the internal function number.    */   static void push_callback(int no)   { -  add_ref(sp->u.object=THISOBJ); -  sp->subtype=no+fp->context.identifier_level; -  sp->type=T_FUNCTION; -  sp++; +  add_ref(Pike_sp->u.object=THISOBJ); +  Pike_sp->subtype=no+Pike_fp->context.identifier_level; +  Pike_sp->type=T_FUNCTION; +  Pike_sp++;   }      /* Allocate a new struct input, link it last in the linked list */   static INLINE struct input *new_input(void)   {    struct input *i;    ninputs++;    i=ALLOC_STRUCT(input);    i->type=I_NONE;    i->next=NULL;
pike.git/src/modules/Pipe/pipe.c:1204:      static void exit_pipe_struct(struct object *o)   {    close_and_free_everything(NULL,THIS);   }      static void exit_output_struct(struct object *obj)   {    struct output *o;    -  o=(struct output *)(fp->current_storage); +  o=(struct output *)(Pike_fp->current_storage);    if (o->obj)    {    if(o->obj->prog)    {   #ifdef BLOCKING_CLOSE    apply_low(o->obj,o->set_blocking_offset,0);    pop_stack();   #endif    push_int(0);    apply(o->obj,"set_id",1);
pike.git/src/modules/Pipe/pipe.c:1233:    free_object(o->obj);    noutputs--;    o->obj=0;    o->fd=-1;    }   }      static void init_output_struct(struct object *ob)   {    struct output *o; -  o=(struct output *)(fp->current_storage); +  o=(struct output *)(Pike_fp->current_storage);    o->obj=0;   }         /********** Pike init *******************************************************/      void port_setup_program(void);      void f__pipe_debug(INT32 args)   {