Home
last modified time | relevance | path

Searched refs:yyin (Results 1 – 25 of 59) sorted by relevance

123

/freebsd/contrib/one-true-awk/
H A Dmain.c42 extern FILE *yyin; /* lex input file */
166 yyin = NULL; in main()
268 if (yyin == NULL) { in pgetc()
272 yyin = stdin; in pgetc()
273 else if ((yyin = fopen(pfile[curpfile], "r")) == NULL) in pgetc()
277 if ((c = getc(yyin)) != EOF) in pgetc()
279 if (yyin != stdin) in pgetc()
280 fclose(yyin); in pgetc()
281 yyin = NULL; in pgetc()
/freebsd/usr.sbin/autofs/
H A Dcommon.c63 extern FILE *yyin;
304 yyin = auto_popen(AUTO_INCLUDE_PATH, n->n_key + 1, NULL); in node_expand_includes()
305 assert(yyin != NULL); in node_expand_includes()
313 error = auto_pclose(yyin); in node_expand_includes()
314 yyin = NULL; in node_expand_includes()
910 linelen = getline(&line, &linecap, yyin); in parse_map_keys_yyin()
969 yyin = auto_popen(path, key, NULL); in parse_special_map()
970 assert(yyin != NULL); in parse_special_map()
978 error = auto_pclose(yyin); in parse_special_map()
979 yyin = NULL; in parse_special_map()
[all …]
/freebsd/tools/build/bootstrap-m4/
H A Dinittokenizer.c129 #define YY_NEW_FILE yyrestart( yyin )
161 extern FILE *yyin, *yyout;
312 yy_create_buffer( yyin, YY_BUF_SIZE ); \
321 yy_create_buffer( yyin, YY_BUF_SIZE ); \
333 FILE *yyin = NULL, *yyout = NULL; variable
611 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
615 if ( c == EOF && ferror( yyin ) ) \
622 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
630 clearerr(yyin); \
702 if ( ! yyin )
[all …]
/freebsd/crypto/heimdal/lib/com_err/
H A Dlex.c137 #define YY_NEW_FILE yyrestart(yyin )
162 extern FILE *yyin, *yyout;
315 yy_create_buffer(yyin,YY_BUF_SIZE ); \
325 yy_create_buffer(yyin,YY_BUF_SIZE ); \
336 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; variable
629 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
633 if ( c == EOF && ferror( yyin ) ) \
640 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
648 clearerr(yyin); \
724 if ( ! yyin )
[all …]
H A Dcompile_et.c46 extern FILE *yyin;
220 yyin = fopen(filename, "r"); in main()
221 if(yyin == NULL) in main()
/freebsd/crypto/heimdal/lib/sl/
H A Dslc-lex.c137 #define YY_NEW_FILE yyrestart(yyin )
162 extern FILE *yyin, *yyout;
315 yy_create_buffer(yyin,YY_BUF_SIZE ); \
325 yy_create_buffer(yyin,YY_BUF_SIZE ); \
336 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; variable
608 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
612 if ( c == EOF && ferror( yyin ) ) \
619 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
627 clearerr(yyin); \
703 if ( ! yyin )
[all …]
/freebsd/crypto/heimdal/lib/asn1/
H A Dlex.c137 #define YY_NEW_FILE yyrestart(yyin )
162 extern FILE *yyin, *yyout;
315 yy_create_buffer(yyin,YY_BUF_SIZE ); \
325 yy_create_buffer(yyin,YY_BUF_SIZE ); \
336 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; variable
952 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
956 if ( c == EOF && ferror( yyin ) ) \
963 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
971 clearerr(yyin); \
1047 if ( ! yyin )
[all …]
H A Dmain.c40 extern FILE *yyin;
117 yyin = stdin; in main()
120 yyin = fopen (file, "r"); in main()
121 if (yyin == NULL) in main()
195 fclose(yyin); in main()
/freebsd/sbin/veriexec/
H A Dmanifest_lexer.l122 fclose(yyin);
128 yyin = fropen(&str_buf, read_string_buf);
129 if (yyin) {
135 return yyin;
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dcomp_scan.c104 static FILE *yyin; /* scanner's input file descriptor */ variable
123 yyin = fp; in _nc_reset_input()
164 int ch = fgetc(yyin); in get_text()
201 if (!yyin) { in next_char()
243 _nc_curr_file_pos = ftell(yyin); in next_char()
316 return (yyin ? ftell(yyin) : (bufptr ? (long) (bufptr - bufstart) : 0)); in stream_pos()
323 return ((yyin in end_of_stream()
324 ? (feof(yyin) && (bufptr == NULL || *bufptr == '\0')) in end_of_stream()
426 yyin = 0; in _nc_get_token()
/freebsd/usr.bin/lex/
H A Dinitscan.c128 #define YY_NEW_FILE yyrestart( yyin )
160 extern FILE *yyin, *yyout;
311 yy_create_buffer( yyin, YY_BUF_SIZE ); \
320 yy_create_buffer( yyin, YY_BUF_SIZE ); \
329 FILE *yyin = NULL, *yyout = NULL; variable
2114 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
2118 if ( c == EOF && ferror( yyin ) ) \
2125 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
2133 clearerr(yyin); \
2208 if ( ! yyin )
[all …]
/freebsd/contrib/unbound/util/
H A Dconfiglexer.c129 #define YY_NEW_FILE yyrestart( yyin )
161 extern FILE *yyin, *yyout;
311 yy_create_buffer( yyin, YY_BUF_SIZE ); \
320 yy_create_buffer( yyin, YY_BUF_SIZE ); \
329 FILE *yyin = NULL, *yyout = NULL; variable
4493 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
4624 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
4628 if ( c == EOF && ferror( yyin ) ) \
4635 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
4643 clearerr(yyin); \
[all …]
/freebsd/usr.bin/iscsictl/
H A Dparse.y47 extern FILE *yyin;
450 yyin = fopen(path, "r"); in conf_new_from_file()
451 if (yyin == NULL) in conf_new_from_file()
455 yyrestart(yyin); in conf_new_from_file()
458 fclose(yyin); in conf_new_from_file()
/freebsd/contrib/netbsd-tests/lib/libcurses/director/
H A Ddirector.c125 extern FILE *yyin; in main()
267 if ((yyin = fopen(argv[0], "r")) == NULL) in main()
276 fclose(yyin); in main()
H A Dtestlang_conf.l197 yyin = fopen(inc_file, "r" );
199 if (!yyin)
202 yypush_buffer_state(yy_create_buffer(yyin, YY_BUF_SIZE));
/freebsd/contrib/com_err/
H A Dcompile_et.c46 extern FILE *yyin;
220 yyin = fopen(filename, "r"); in main()
221 if(yyin == NULL) in main()
/freebsd/usr.sbin/ctld/
H A Dparse.y47 extern FILE *yyin;
897 yyin = fopen(path, "r"); in parse_conf()
898 if (yyin == NULL) { in parse_conf()
904 yyrestart(yyin); in parse_conf()
906 fclose(yyin); in parse_conf()
/freebsd/usr.sbin/bluetooth/hcsecd/
H A Dparser.y200 extern FILE *yyin; in read_config_file()
207 if ((yyin = fopen(config_file, "r")) == NULL) { in read_config_file()
219 fclose(yyin); in read_config_file()
220 yyin = NULL; in read_config_file()
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dparse.y55 extern FILE *yyin;
791 yyin = fopen(config, "r"); in yy_config_parse()
792 if (yyin == NULL) { in yy_config_parse()
800 yyrestart(yyin); in yy_config_parse()
802 fclose(yyin); in yy_config_parse()
/freebsd/sbin/ipf/common/
H A Dlexer.c27 FILE *yyin; variable
82 c = fgetc(yyin); in yygetc()
84 c = fgetc(yyin); in yygetc()
87 c = fgetc(yyin); in yygetc()
730 yyin = stdin; in main()
/freebsd/usr.sbin/bluetooth/bthidd/
H A Dparser.y74 extern FILE *yyin;
289 if ((yyin = fopen(config_file, "r")) == NULL) { in read_config_file()
303 fclose(yyin); in read_config_file()
304 yyin = NULL; in read_config_file()
/freebsd/contrib/flex/src/
H A Dflex.skl76 #define yyin M4_YY_PREFIX[[in]]
302 #define yyin YY_G(yyin_r)
367 #define YY_NEW_FILE yyrestart( yyin M4_YY_CALL_LAST_ARG )
408 extern FILE *yyin, *yyout;
528 * just pointing yyin at a new input file.
580 * instead of setting up a fresh yyin. A bit of a hack ...
620 yy_create_buffer( yyin, YY_BUF_SIZE M4_YY_CALL_LAST_ARG); \
629 yy_create_buffer( yyin, YY_BUF_SIZE M4_YY_CALL_LAST_ARG); \
636 %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here
1221 if ( ! yyin )
[all …]
/freebsd/sbin/hastd/
H A Dparse.y55 extern FILE *yyin;
889 yyin = fopen(config, "r"); in yy_config_parse()
890 if (yyin == NULL) { in yy_config_parse()
898 yyrestart(yyin); in yy_config_parse()
900 fclose(yyin); in yy_config_parse()
/freebsd/sys/contrib/dev/acpica/compiler/
H A Daslsupport.l313 fclose (yyin); in AslPopInputFileStack()
364 Fnode->File = yyin; in AslPushInputFileStack()
390 yyin = InputFile; in AslPushInputFileStack()
/freebsd/contrib/dma/
H A Ddma.c140 yyin = fopen(config.aliases, "r"); in read_aliases()
141 if (yyin == NULL) { in read_aliases()
152 fclose(yyin); in read_aliases()

123