ptmx_resolve initial commit