- if(!_xcb_parse_display(displayname, &host, &protocol, &display, screenp))
- return (xcb_connection_t *) &error_connection;
- fd = _xcb_open(host, protocol, display);
- free(host);
- if(fd == -1)
- return (xcb_connection_t *) &error_connection;
-
- return xcb_connect_to_fd(fd, auth);