open3 analog (GNU C)