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

version» Context lines:

pike.git/src/modules/_Stdio/socket.c:752:   {    ptrdiff_t offset;    START_NEW_PROGRAM_ID (STDIO_PORT);    offset = ADD_STORAGE(struct port);    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),tInt), 0); +  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);   #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);