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

version» Context lines:

pike.git/src/modules/_Stdio/socket.c:771:    MAP_VARIABLE("_accept_callback", tMix, 0,    offset + OFFSETOF(port, accept_callback), PIKE_T_MIXED);    MAP_VARIABLE("_id", tMix, 0,    offset + OFFSETOF(port, id), PIKE_T_MIXED);    /* function(int|string,void|mixed,void|string:int) */    ADD_FUNCTION("bind", port_bind,    tFunc(tOr(tInt,tStr) tOr(tVoid,tMix) tOr(tVoid,tStr) tOr(tVoid,tInt),tInt), 0);   #ifdef HAVE_SYS_UN_H    /* function(int|string,void|mixed,void|string:int) */    ADD_FUNCTION("bind_unix", bind_unix, -  tFunc(tStr tOr(tVoid,tMix),tInt), 0); +  tFunc(tStr tOr(tVoid,tMix),tInt), ID_OPTIONAL);   #endif /* HAVE_SYS_UN_H */    ADD_FUNCTION("close",port_close,tFunc(tNone,tVoid),0);    /* function(int,void|mixed:int) */    ADD_FUNCTION("listen_fd",port_listen_fd,tFunc(tInt tOr(tVoid,tMix),tInt),0);    /* function(mixed:mixed) */    ADD_FUNCTION("set_id",port_set_id,tFunc(tMix,tMix),0);    /* function(:mixed) */    ADD_FUNCTION("query_id",port_query_id,tFunc(tNone,tMix),0);    /* function(:string) */    ADD_FUNCTION("query_address",socket_query_address,tFunc(tNone,tStr),0);
pike.git/src/modules/_Stdio/socket.c:798:    ADD_FUNCTION("accept",port_accept,tFunc(tNone,tObjIs_STDIO_FD),0);    /* function(void|string|int,void|mixed,void|string:void) */    ADD_FUNCTION("create", port_create,    tFunc(tOr3(tVoid,tStr,tInt) tOr(tVoid,tMix) tOr(tVoid,tStr),    tVoid), 0);    ADD_FUNCTION ("set_backend", port_set_backend, tFunc(tObj,tVoid), 0);    ADD_FUNCTION ("query_backend", port_query_backend, tFunc(tVoid,tObj), 0);    ADD_FUNCTION ("query_fd", port_query_fd, tFunc(tVoid,tInt), 0);      #ifdef SO_REUSEPORT -  ADD_INT_CONSTANT( "SO_REUSEPORT_SUPPORT", SO_REUSEPORT, 0 ); +  ADD_INT_CONSTANT( "SO_REUSEPORT_SUPPORT", SO_REUSEPORT, ID_OPTIONAL );   #endif   #ifdef TCP_FASTOPEN -  ADD_INT_CONSTANT( "TCP_FASTOPEN_SUPPORT", TCP_FASTOPEN, 0 ); +  ADD_INT_CONSTANT( "TCP_FASTOPEN_SUPPORT", TCP_FASTOPEN, ID_OPTIONAL );   #endif    set_init_callback(init_port_struct);    set_exit_callback(exit_port_struct);       port_program = end_program();    add_program_constant( "_port", port_program, 0 );      }