UnixServerSocketChannel channel = UnixServerSocketChannel.open();
UnixServerSocket socket = channel.socket();
// TODO: listen backlog
socket.bind(new UnixSocketAddress(new File(fpath)));
init_sock(runtime, channel, fpath);
} else {
File fpathFile = new File(fpath);
if (!fpathFile.exists()) {
throw runtime.newErrnoENOENTError("unix socket");
}
UnixSocketChannel channel = UnixSocketChannel.open();
channel.connect(new UnixSocketAddress(fpathFile));
init_sock(runtime, channel);
}