checkw
if (checkw('r', longname) == 0) {
if (checkw('x', namep) == 0) {
static int checkw(char c, char *name);