Lines Matching refs:entry
51 static int has_rel_path(char *entry);
52 static int is_relative(char *entry);
135 has_rel_path(char *entry)
140 if (*entry == NULL || strchr(IGNORE_START, *entry))
143 /* Skip past this data entry if it is volume number. */
144 if (isdigit(*entry)) {
145 while (*entry && !isspace(*entry)) {
146 entry++;
151 while (*entry && isspace(*entry)) {
152 entry++;
157 * the termination of a degenerate entry. If the line is degenerate
161 if (*entry == NULL || strchr(IGNORE_TYPE, *entry))
166 /* Skip past this data entry */
167 while (*entry && !isspace(*entry)) {
168 entry++;
171 /* Skip past this white space and call this the next entry */
172 while (*entry && isspace(*entry)) {
173 entry++;
175 } while (++entry_pos < 3 && *entry != NULL);
183 return (is_relative(entry));
193 is_relative(char *entry)
195 register char *eopath = entry; /* end of full pathname pointer */
196 register char **lasts = &entry;
199 if (entry && *entry) {
200 if (*entry == '$') { /* it's an environment parameter */
201 entry++; /* skip the '$' */
209 entry = strtok_r(entry, "/", lasts);
218 if (strcmp(entry, "BASEDIR") == 0)
221 * Since entry is pointing to a now-expendable PATH_MAX
225 entry = getenv(entry);
237 if (entry && *entry)
238 return (RELATIVE(entry));