static void local_close(FAR struct socket *psock) { FAR struct local_conn_s *conn = psock->s_conn; /* Is this the last reference to the connection structure (there could * be more if the socket was dup'ed). */ if (conn->lc_crefs <= 1) { conn->lc_crefs = 0; local_release(conn); } else { /* No.. Just decrement the reference count */ conn->lc_crefs--; } }
void gles_uninit(const char *arg) { local_release(arg); }