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.34 1999/07/29 16:47:34 grubba Exp $"); + RCSID("$Id: pipe.c,v 1.35 2000/08/28 22:12:07 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:927:    /* keep the file pointer of the duped fd    o->pos=0; */    /* allow start position as 2nd argument for additional outputs    o->pos=THIS->pos; */       if(args>=2)    o->pos=sp[1-args].u.integer;    else    o->pos=THIS->pos;    -  ref_push_object(obj); +  push_object(obj); /* Ok, David, this is probably correct, but I dare you to explain why :) */    apply(o->obj,"set_id",1);    pop_stack();       push_int(0);    push_callback(offset_output_write_callback);    push_callback(offset_output_close_callback);    apply_low(o->obj,o->set_nonblocking_offset,3);    pop_stack();       pop_n_elems(args-1);