Lines Matching defs:line

337 		length = strlen(pos->line);
340 while (length > 0 && isspace(pos->line[length - 1]))
344 gettext("Error at line %d: %.*s\n"),
347 pos->line);
381 free(positions->pos[i]->line);
414 positions->pos[positions->last]->line = strdup(pos->line);
415 if (positions->pos[positions->last]->line == NULL)
1804 /* Does the line start with USERMAP_CFG IP qualifier? */
1806 ucp_is_IP_qualifier(char *line)
1809 it = line + strcspn(line, " \t\n#:");
1819 ucp_qm_interior(char **line, cmd_pos_t *pos)
1822 char *qm = strchr(*line + 1, '"');
1829 out = strndup(*line + 1, qm - *line - 1);
1830 *line = qm + 1;
1835 * Grab next token from the line in USERMAP_CFG format. terminators,
1837 * the token. line_num is the line number of input used for error
1841 ucp_grab_token(char **line, cmd_pos_t *pos, const char *terminators)
1844 if (**line == '"')
1845 token = ucp_qm_interior(line, pos);
1847 int length = strcspn(*line, terminators);
1848 token = strndup(*line, length);
1849 *line += length;
1857 * Convert a line in usermap.cfg format to name_mapping.
1859 * Return values: -1 for error, 0 for empty line, 1 for a mapping
1863 ucp_line2nm(char *line, cmd_pos_t *pos, name_mapping_t *nm)
1871 it = line + strspn(line, " \t\n");
1891 /* Didn't we bump to the end of line? */
1978 /* Does something remain on the line */
1989 * Parse SMBUSERS line to name_mapping_t. if line is NULL, then
1990 * pasrsing of the previous line is continued. line_num is input line
1994 * rc = 0: mapping found and the line is finished,
1995 * rc = 1: mapping found and there remains other on the line
1998 sup_line2nm(char *line, cmd_pos_t *pos, name_mapping_t *nm)
2005 if (line != NULL) {
2006 ll = line;
2042 /* Parse line to name_mapping_t. Basicaly just a format switch. */
2044 line2nm(char *line, cmd_pos_t *pos, name_mapping_t *nm, format_t f)
2048 if (line == NULL)
2051 return (ucp_line2nm(line, pos, nm));
2053 return (sup_line2nm(line, pos, nm));
2057 gettext("Internal error: invalid line format.\n"));
2117 char line[MAX_INPUT_LINE_SZ];
2157 pos2.line = line;
2159 while (fgets(line, MAX_INPUT_LINE_SZ, file)) {
2160 char *line2 = line;
2165 * each line. So we need the internal cycle for each line.
3140 char line[MAX_INPUT_LINE_SZ];
3151 /* The password is the fist line, we ignore the rest: */
3152 if (fgets(line, MAX_INPUT_LINE_SZ, file) == NULL) {
3168 for (i = strlen(line) - 1;
3169 i >= 0 && (line[i] == '\r' || line[i] == '\n');
3171 line[i] = '\0';
3173 *passwd = strdup(line);