Add testing dup() functions in init.c, add ftty handler for console_open() and add sigset_t in sulogin.c