Lines Matching refs:p
68 char *p; in __getttyent() local
76 if (!__fgets_unlocked(p = line, sizeof(line), tf)) { in __getttyent()
81 if (!strchr (p, '\n')) { in __getttyent()
86 while (isspace(*p)) in __getttyent()
87 ++p; in __getttyent()
88 if (*p && *p != '#') in __getttyent()
93 tty.ty_name = p; in __getttyent()
94 p = skip(p); in __getttyent()
95 if (!*(tty.ty_getty = p)) in __getttyent()
98 p = skip(p); in __getttyent()
99 if (!*(tty.ty_type = p)) in __getttyent()
102 p = skip(p); in __getttyent()
107 #define scmp(e) !strncmp(p, e, sizeof(e) - 1) && isspace(p[sizeof(e) - 1]) in __getttyent()
108 #define vcmp(e) !strncmp(p, e, sizeof(e) - 1) && p[sizeof(e) - 1] == '=' in __getttyent()
109 for (; *p; p = skip(p)) { in __getttyent()
117 tty.ty_window = value(p); in __getttyent()
124 if (zapchar == '#' || *p == '#') in __getttyent()
125 while ((c = *++p) == ' ' || c == '\t') in __getttyent()
127 tty.ty_comment = p; in __getttyent()
128 if (*p == 0) in __getttyent()
130 if ((p = strchr (p, '\n'))) in __getttyent()
131 *p = '\0'; in __getttyent()
144 skip (char *p) in weak_alias()
149 for (q = 0, t = p; (c = *p) != '\0'; p++) { in weak_alias()
154 if (q == QUOTED && *p == '\\' && *(p+1) == '"') in weak_alias()
155 p++; in weak_alias()
156 *t++ = *p; in weak_alias()
161 *p = 0; in weak_alias()
166 *p++ = 0; in weak_alias()
167 while ((c = *p) == '\t' || c == ' ' || c == '\n') in weak_alias()
168 p++; in weak_alias()
173 return (p); in weak_alias()
177 value (char *p) in value() argument
180 return ((p = strchr (p, '=')) ? ++p : NULL); in value()