add getopt reset support
[musl] / src / thread / syscall_cp.c