pike.git / src / modules / _Stdio / file.c

version» Context lines:

pike.git/src/modules/_Stdio/file.c:4279:    *! @decl Stdio.File pipe(int flags)    */   static void file_pipe(INT32 args)   {    int inout[2] = { -1, -1 };    int i = 0;       int type=fd_CAN_NONBLOCK | fd_BIDIRECTIONAL;    int reverse;    -  check_all_args("file->pipe",args, BIT_INT | BIT_VOID, 0); +  check_all_args(NULL, args, BIT_INT | BIT_VOID, 0);    if(args && !SUBTYPEOF(Pike_sp[-1])) type = Pike_sp[-args].u.integer;       reverse = type & fd_REVERSE;    type &= ~fd_REVERSE;       close_fd(0);    pop_n_elems(args);    ERRNO=0;       do
pike.git/src/modules/_Stdio/file.c:5288: Inside #if defined(_REENTRANT)
   *! @seealso    *! @[Stdio.sendfile()]    */   void file_proxy(INT32 args)   {    struct my_file *f;    struct new_thread_data *p;    int from, to;       THREAD_T id; -  check_all_args("Stdio.File->proxy",args, BIT_OBJECT,0); +  check_all_args(NULL, args, BIT_OBJECT,0);    f=get_file_storage(Pike_sp[-args].u.object);    if(!f)    SIMPLE_ARG_TYPE_ERROR("proxy", 1, "Stdio.File");       from=fd_dup(f->box.fd);    if(from<0)    {    ERRNO=errno;    Pike_error("Failed to dup proxy fd. (errno=%d)\n",errno);    }