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

version» Context lines:

pike.git/src/modules/Pipe/pipe.c:13: 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.5 1997/03/20 16:05:49 grubba Exp $"); + RCSID("$Id: pipe.c,v 1.6 1997/04/16 03:11:06 hubbe Exp $");      #include "stralloc.h"   #include "types.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "error.h" -  + #include "builtin_functions.h"      #ifndef S_ISREG   #ifdef S_IFREG   #define S_ISREG(mode) (((mode) & (S_IFMT)) == (S_IFREG))   #else   #define S_ISREG(mode) (((mode) & (_S_IFMT)) == (_S_IFREG))   #endif   #endif      /*
pike.git/src/modules/Pipe/pipe.c:205:    break;       case I_MMAP:   #if defined(HAVE_MMAP) && defined(HAVE_MUNMAP)    munmap(i->u.mmap,i->len);    mmapped -= i->len;   #else    error("I_MMAP input when MMAP is diabled!");   #endif    break; +  +  case I_NONE: break;    }    free((char *)i);   }      /* do the done_callback, then close and free everything */   static INLINE void pipe_done(void)   {    if (THIS->done_callback.type!=T_INT)    {    assign_svalue_no_free(sp++,&THIS->id);
pike.git/src/modules/Pipe/pipe.c:346:    apply_low(i->u.obj,i->set_nonblocking_offset,3);    pop_stack();    return;       case I_MMAP:    if (THIS->fd==-1) return;    continue;       case I_STRING:    append_buffer(i->u.str); +  +  case I_NONE: break;    }    }    THIS->sleeping=0;       low_start();    finished_p();   }      /* This function reads some data from the file cache..    * Called when we want some data to send.