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

version» Context lines:

pike.git/src/modules/_Stdio/socket.c:190:    *! @seealso    *! @[bind], @[accept]    */   static void port_listen_fd(INT32 args)   {    struct port *p = THIS;    struct svalue *cb = NULL;    int fd;    do_close(p);    -  get_all_args("Port->listen_fd", args, "%d.%*", &fd, &cb); +  get_all_args("listen_fd", args, "%d.%*", &fd, &cb);       if(fd<0)    {    errno = p->my_errno=EBADF;    pop_n_elems(args);    push_int(0);    return;    }       if(fd_listen(fd, 16384) < 0)
pike.git/src/modules/_Stdio/socket.c:364: Inside #if defined(HAVE_SYS_UN_H)
  static void bind_unix(INT32 args)   {    struct port *p = THIS;    struct sockaddr_un *addr;    struct pike_string *path;    struct svalue *cb = NULL;    int addr_len,fd,tmp;       do_close(p);    -  get_all_args("Port->bind_unix", args, "%n.%*", &path, &cb); +  get_all_args("bind_unix", args, "%n.%*", &path, &cb);       /* NOTE: Some operating systems (eg Linux 2.6) do not support    * paths longer than what fits into a plain struct sockaddr_un.    */    addr_len = sizeof(struct sockaddr_un) + path->len + 1 -    sizeof(addr->sun_path);    addr = xalloc(addr_len);       strcpy(addr->sun_path, path->str);    addr->sun_family = AF_UNIX;