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

version» Context lines:

pike.git/src/modules/Pipe/pipe.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pipe.c,v 1.51 2002/10/11 01:39:48 nilsson Exp $ + || $Id: pipe.c,v 1.52 2002/10/21 17:06:22 marcus Exp $   */      #include "global.h"   #include "config.h"   #include "machine.h" -  + #include "module.h"      #include <sys/types.h>   #include <sys/stat.h>      #ifdef HAVE_SYS_FILE_H   #include <sys/file.h>   #endif /* HAVE_SYS_FILE_H */      #include <errno.h>   
pike.git/src/modules/Pipe/pipe.c:30:   #endif   #endif   #endif      #ifdef HAVE_SYS_ID_H   #include <sys/id.h>   #endif /* HAVE_SYS_ID_H */      #include <fcntl.h>    - RCSID("$Id: pipe.c,v 1.51 2002/10/11 01:39:48 nilsson Exp $"); + RCSID("$Id: pipe.c,v 1.52 2002/10/21 17:06:22 marcus Exp $");      #include "threads.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_error.h"   #include "builtin_functions.h"   #include "fdlib.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    - /* must be included last */ - #include "module_magic.h" +       #define sp Pike_sp      /*   #define PIPE_STRING_DEBUG   #define PIPE_MMAP_DEBUG   #define PIPE_FILE_DEBUG   #define BLOCKING_CLOSE   */   
pike.git/src/modules/Pipe/pipe.c:1291:    push_int(DO_NOT_WARN(noutputs));    push_int(DO_NOT_WARN(ninputs));    push_int(DO_NOT_WARN(nstrings));    push_int(DO_NOT_WARN(nobjects));    push_int(DO_NOT_WARN(mmapped));    push_int(DO_NOT_WARN(nbuffers));    push_int(DO_NOT_WARN(sbuffers));    f_aggregate(7);   }    - void pike_module_init(void) + PIKE_MODULE_INIT   {    start_new_program();    ADD_STORAGE(struct pipe);      /* function(:array) */    ADD_EFUN("_pipe_debug", f__pipe_debug,tFunc(tNone,tArray), 0);    /* function(object:void) */    ADD_FUNCTION("input",pipe_input,tFunc(tObj,tVoid),0);    /* function(object,void|int:void) */    ADD_FUNCTION("output",pipe_output,tFunc(tObj tOr(tVoid,tInt),tVoid),0);
pike.git/src/modules/Pipe/pipe.c:1354:          start_new_program();    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) + PIKE_MODULE_EXIT   {    if(pipe_program) free_program(pipe_program);    pipe_program=0;    if(output_program) free_program(output_program);    output_program=0;   }