changed hardcoded 17 to errno.EEXIST