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

version» Context lines:

pike.git/src/modules/_Stdio/file.c:4872:    fd_query_properties(fd, SOCKET_CAPABILITIES), 0);    my_set_close_on_exec(fd,1);    change_fd_for_box (&THIS->box, FD);    ERRNO=0;       pop_n_elems(args);    push_int(1);   }      /*! @decl int(0..1) set_keepalive(int(0..1) on_off) +  *! +  *! Equivalent to setsockopt(Stdio.SO_KEEPALIVE, on_off), but will set errno +  *! if SO_KEEPALIVE is not supported, rather than issuing a compilation error +  *! for the missing constant.    */   static void file_set_keepalive(INT32 args)   {    int tmp, i;    INT_TYPE t;       get_all_args("set_keepalive", args, "%i", &t);       /* In case int and INT_TYPE have different sizes */    tmp = t;