Lines Matching refs:sk
1783 int sk, cli_sk;
1795 sk = g_io_channel_unix_get_fd(chan);
1800 cli_sk = accept(sk, (struct sockaddr *) &addr, &addrlen);
1871 int sk, err;
1873 sk = socket(PF_LOCAL, SOCK_STREAM, 0);
1874 if (sk < 0) {
1880 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
1883 close(sk);
1887 set_nonblocking(sk);
1889 if (listen(sk, 1) < 0) {
1892 close(sk);
1896 unix_sock = sk;
1898 io = g_io_channel_unix_new(sk);
1903 DBG("Unix socket created: %d", sk);