Lines Matching defs:line

293 	 * we assume record is ldif/slapd.replog if the first line
295 * if the first line consists entirely of digits (an entry id)
443 char *line, *dn, *type, *value, *newrdn, *newparent, *p;
465 while ( rc == 0 && ( line = str_getline( &rbuf )) != NULL ) {
467 while ( rc == 0 && ( line = ldif_getline( &rbuf )) != NULL ) {
470 if ( expect_sep && strcasecmp( line, T_MODSEPSTR ) == 0 ) {
486 if ( str_parse_line( line, &type, &value, &vlen ) < 0 ) {
488 if ( ldif_parse_line( line, &type, &value, &vlen ) < 0 ) {
490 fprintf( stderr, gettext("%s: invalid format (line %d of entry: %s)\n"),
492 fprintf( stderr, gettext("%s: line contents: (%s)\n"),
493 ldaptool_progname, line );
540 printf( gettext("%s: skipping change record: no dn: line\n"),
604 gettext("%s: unknown %s \"%s\" (line %d of entry: %s)\n"),
617 fprintf(stderr, gettext("%s: Missing changetype operation specification.\n\tThe dn line must be followed by \"changetype: operation\"\n\t(unless ldapmodify is called with -a option)\n\twhere operation is add|delete|modify|modrdn|moddn|rename\n\t\"%s\" is not a valid changetype operation specification\n\t(line %d of entry %s)\n"),
643 fprintf(stderr, gettext("%s: Invalid parameter \"%s\" specified for changetype modify (line %d of entry %s)\n"),
655 gettext("%s: newrdn value missing (line %d of entry: %s)\n"),
670 fprintf( stderr, gettext("%s: expecting \"%s:\" but saw \"%s:\" (line %d of entry %s)\n"),
687 * the current line to be re-evaluated if newparent doesn't
697 gettext("%s: missing 0 or 1 (line %d of entry: %s)\n"),
708 fprintf( stderr, gettext("%s: expecting \"%s:\" but saw \"%s:\" (line %d of entry %s)\n"),
716 gettext("%s: extra lines at end (line %d of entry %s)\n"),
789 char *line, *dn, *p, *q, *attr, *value;
796 line = rbuf;
813 if ( dn == NULL ) { /* first line contains DN */
814 if (( dn = strdup( line )) == NULL ) {
819 if (( p = strchr( line, '=' )) == NULL ) {
821 p = line + strlen( line );
827 for ( attr = line; *attr != '\0' && isspace( *attr ); ++attr ) {
850 fprintf( stderr, gettext("%s: missing value on line %d (attr is %s)\n"),
868 fprintf(stderr, gettext("%s: Invalid parameter specified for changetype modify (line %d of entry %s)\n"),
879 line = rbuf;
1205 char *buf, line[ LDAPMOD_MAXLINE ];
1221 while ( fgets( line, sizeof(line), fp ) != NULL ) {
1222 if ( (len = strlen( line )) < 2 ) {
1230 /* Check if the blank line starts with '\r' (CR) */
1231 if ( ((len = strlen( line )) == 2) && (line[0] == '\r') ) {
1239 if ( *line == '#' ) {
1255 strcpy( buf + lcur, line );