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

version» Context lines:

pike.git/src/modules/_Stdio/file.c:1753:   static void file_query_fs_event_flags(INT32 args)   {    short flags;    pop_n_elems(args);       flags = get_fd_event_flags(THIS);    push_int(flags);   }       - static void file__enable_callbacks(INT32 args) + static void file__enable_callbacks(INT32 UNUSED(args))   {    struct my_file *f = THIS;    size_t ev;    int cb_events = 0;      #if 0    if(FD<0)    Pike_error("File is not open.\n");   #endif   
pike.git/src/modules/_Stdio/file.c:1779:       if (cb_events) {    if (FD >= 0 &&    !(fd_query_properties(FD, fd_CAN_NONBLOCK) & fd_CAN_NONBLOCK))    Pike_error("Callback operations not supported for this file.\n");       ADD_FD_EVENTS (f, cb_events);    }   }    - static void file__disable_callbacks(INT32 args) + static void file__disable_callbacks(INT32 UNUSED(args))   {    struct my_file *f = THIS;      #if 0    if(FD<0)    Pike_error("File is not open.\n");   #endif       SUB_FD_EVENTS (f, ~0);   }
pike.git/src/modules/_Stdio/file.c:3778:    *!    *! @note    *! Nonblocking operation is not supported on all Stdio.File objects.    *! Notably it is not guaranteed to be supported on objects returned    *! by @[pipe()] unless @[PROP_NONBLOCK] was specified in the call    *! to @[pipe()].    *!    *! @seealso    *! @[set_blocking()]    */ - static void file_set_nonblocking(INT32 args) + static void file_set_nonblocking(INT32 UNUSED(args))   {    if(FD < 0) Pike_error("File not open.\n");       if(!(THIS->open_mode & fd_CAN_NONBLOCK))    Pike_error("This file does not support nonblocking operation.\n");       if(set_nonblocking(FD,1))    {    ERRNO=errno;    push_int (ERRNO);
pike.git/src/modules/_Stdio/file.c:3806:      /*! @decl void set_blocking()    *!    *! Sets this file to blocking operation.    *!    *! This is the inverse operation of @[set_nonblocking()].    *!    *! @seealso    *! @[set_nonblocking()]    */ - static void file_set_blocking(INT32 args) + static void file_set_blocking(INT32 UNUSED(args))   {    if(FD >= 0)    {    set_nonblocking(FD,0);    THIS->open_mode &=~ FILE_NONBLOCKING;    }   }      /*! @decl void set_close_on_exec(int(0..1) yes_no)    *!