Home
last modified time | relevance | path

Searched refs:cfile (Results 1 – 25 of 29) sorted by relevance

12

/NextBSD/sbin/dhclient/
HDclparse.c64 FILE *cfile; in read_client_conf() local
106 if ((cfile = fopen(path_dhclient_conf, "r")) != NULL) { in read_client_conf()
108 token = peek_token(&val, cfile); in read_client_conf()
111 parse_client_statement(cfile, NULL, &top_level_config); in read_client_conf()
113 token = next_token(&val, cfile); /* Clear the peek buffer */ in read_client_conf()
114 fclose(cfile); in read_client_conf()
150 FILE *cfile; in read_client_leases() local
158 if ((cfile = fopen(path_dhclient_db, "r")) == NULL) in read_client_leases()
161 token = next_token(&val, cfile); in read_client_leases()
166 skip_to_semi(cfile); in read_client_leases()
[all …]
HDparse.c64 skip_to_semi(FILE *cfile) in skip_to_semi() argument
70 token = peek_token(&val, cfile); in skip_to_semi()
73 token = next_token(&val, cfile); in skip_to_semi()
81 token = next_token(&val, cfile); in skip_to_semi()
90 token = next_token(&val, cfile); in skip_to_semi()
93 token = next_token(&val, cfile); in skip_to_semi()
98 parse_semi(FILE *cfile) in parse_semi() argument
103 token = next_token(&val, cfile); in parse_semi()
106 skip_to_semi(cfile); in parse_semi()
116 parse_string(FILE *cfile) in parse_string() argument
[all …]
HDconflex.c91 get_char(FILE *cfile) in get_char() argument
93 int c = getc(cfile); in get_char()
119 get_token(FILE *cfile) in get_token() argument
129 c = get_char(cfile); in get_token()
134 skip_to_eol(cfile); in get_token()
140 ttok = read_string(cfile); in get_token()
146 ttok = read_number(c, cfile); in get_token()
151 ttok = read_num_or_name(c, cfile); in get_token()
167 next_token(char **rval, FILE *cfile) in next_token() argument
179 rv = get_token(cfile); in next_token()
[all …]
/NextBSD/bin/sh/
HDmknodes.c218 FILE *cfile; in output() local
229 if ((cfile = fopen("nodes.c", "w")) == NULL) in output()
262 fputs(writer, cfile); in output()
266 outsizes(cfile); in output()
268 outfunc(cfile, 1); in output()
270 outfunc(cfile, 0); in output()
272 fputs(line, cfile); in output()
275 if (ferror(cfile)) in output()
277 if (fclose(cfile)) in output()
284 outsizes(FILE *cfile) in outsizes() argument
[all …]
HDmksyntax.c104 static FILE *cfile; variable
121 if ((cfile = fopen("syntax.c", "w")) == NULL) { in main()
130 fputs(writer, cfile); in main()
166 fputs("#include \"parser.h\"\n", cfile); in main()
167 fputs("#include \"shell.h\"\n", cfile); in main()
168 fputs("#include \"syntax.h\"\n\n", cfile); in main()
170 fputs("/* syntax table used when not in quotes */\n", cfile); in main()
183 fputs("\n/* syntax table used when in double quotes */\n", cfile); in main()
196 fputs("\n/* syntax table used when in single quotes */\n", cfile); in main()
206 fputs("\n/* syntax table used when in arithmetic */\n", cfile); in main()
[all …]
/NextBSD/contrib/tnftp/src/
HDruserpass.c63 static FILE *cfile; variable
100 cfile = fopen(netrc, "r"); in ruserpass()
101 if (cfile == NULL) { in ruserpass()
163 fstat(fileno(cfile), &stb) >= 0 && in ruserpass()
175 if (fstat(fileno(cfile), &stb) >= 0 in ruserpass()
188 (void)fclose(cfile); in ruserpass()
191 while ((c = getc(cfile)) != EOF) in ruserpass()
207 for (i = 0; i < 8 && (c = getc(cfile)) != EOF && in ruserpass()
219 while ((c = getc(cfile)) != EOF && c != '\n'); in ruserpass()
236 if ((c = getc(cfile)) == EOF) { in ruserpass()
[all …]
/NextBSD/crypto/heimdal/appl/ftp/ftp/
HDruserpass.c38 static FILE *cfile; variable
120 cfile = fopen(buf, "r"); in ruserpassword()
121 if (cfile == NULL) { in ruserpassword()
176 fstat(fileno(cfile), &stb) >= 0 && in ruserpassword()
187 if (fstat(fileno(cfile), &stb) >= 0 in ruserpassword()
199 fclose(cfile); in ruserpassword()
202 while ((c=getc(cfile)) != EOF && in ruserpassword()
214 for (i=0; i < 8 && (c=getc(cfile)) != EOF && in ruserpassword()
224 while ((c=getc(cfile)) != EOF && c != '\n'); in ruserpassword()
238 if ((c=getc(cfile)) == EOF) { in ruserpassword()
[all …]
/NextBSD/lib/libcompat/4.3/
HDrexec.c70 static FILE *cfile; variable
103 if (feof(cfile) || ferror(cfile)) in token()
105 while ((c = getc(cfile)) != EOF && in token()
112 while ((c = getc(cfile)) != EOF && c != '"') { in token()
114 c = getc(cfile); in token()
119 while ((c = getc(cfile)) != EOF in token()
122 c = getc(cfile); in token()
150 cfile = fopen(buf, "r");
151 if (cfile == NULL) {
200 fstat(fileno(cfile), &stb) >= 0 &&
[all …]
/NextBSD/crypto/heimdal/lib/sl/
HDslc-gram.y107 FILE *cfile, *hfile; variable
304 space(cfile, level); in cprint()
305 vfprintf(cfile, fmt, ap); in cprint()
330 fprintf(cfile, "\"%s\", ", a->u.value); in gen_command()
331 fprintf(cfile, "%s_wrap, ", f); in gen_command()
334 fprintf(cfile, "\"%s %s\", ", a->u.value, b->u.value); in gen_command()
336 fprintf(cfile, "\"%s\", ", a->u.value); in gen_command()
339 fprintf(cfile, "\"%s\"", b->u.value); in gen_command()
341 fprintf(cfile, "NULL"); in gen_command()
342 fprintf(cfile, " },\n"); in gen_command()
[all …]
HDslc-gram.c1616 FILE *cfile, *hfile; variable
1813 space(cfile, level); in cprint()
1814 vfprintf(cfile, fmt, ap); in cprint()
1839 fprintf(cfile, "\"%s\", ", a->u.value); in gen_command()
1840 fprintf(cfile, "%s_wrap, ", f); in gen_command()
1843 fprintf(cfile, "\"%s %s\", ", a->u.value, b->u.value); in gen_command()
1845 fprintf(cfile, "\"%s\", ", a->u.value); in gen_command()
1848 fprintf(cfile, "\"%s\"", b->u.value); in gen_command()
1850 fprintf(cfile, "NULL"); in gen_command()
1851 fprintf(cfile, " },\n"); in gen_command()
[all …]
/NextBSD/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/misc/
HDtst.include.ksh41 cfile=${TMPDIR:-/tmp}/inc.$$.$file.c
43 cat > $cfile <<EOF
49 if cc $CFLAGS -o $cofile $cfile >/dev/null 2>&1; then
66 rm -f $cofile $cfile 2>/dev/null
/NextBSD/sys/tools/
HDvnode_if.awk62 function printc(s) {print s > cfile;}
122 cfile = "vnode_if.c";
134 if (!cfile && !hfile && !pfile && !qfile)
166 if (cfile) {
319 if (cfile) {
425 if (cfile)
426 close(cfile);
/NextBSD/contrib/ntp/
HDcompile83 cfile=$1
96 if test -z "$ofile" || test -z "$cfile"; then
106 cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
/NextBSD/contrib/ofed/libibcm/config/
HDcompile83 cfile=$1
96 if test -z "$ofile" || test -z "$cfile"; then
106 cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
/NextBSD/contrib/ntp/sntp/libevent/build-aux/
HDcompile83 cfile=$1
96 if test -z "$ofile" || test -z "$cfile"; then
106 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
/NextBSD/crypto/heimdal/
HDcompile83 cfile=$1
96 if test -z "$ofile" || test -z "$cfile"; then
106 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
/NextBSD/contrib/ntp/sntp/
HDcompile83 cfile=$1
96 if test -z "$ofile" || test -z "$cfile"; then
106 cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
/NextBSD/contrib/ofed/librdmacm/config/
HDcompile83 cfile=$1
96 if test -z "$ofile" || test -z "$cfile"; then
106 cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
/NextBSD/contrib/file/
HDcompile264 cfile=
287 cfile=$1
300 if test -z "$ofile" || test -z "$cfile"; then
310 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
/NextBSD/contrib/openpam/
HDcompile264 cfile=
287 cfile=$1
300 if test -z "$ofile" || test -z "$cfile"; then
310 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
/NextBSD/usr.sbin/rtadvd/
HDadvcap.c108 getent(char *bp, char *name, const char *cfile) in getent() argument
125 if (cfile && *cfile) in getent()
126 tf = open(cfile, O_RDONLY); in getent()
/NextBSD/contrib/ipfilter/tools/
HDipfcomp.c59 static FILE *cfile = NULL; variable
83 if (cfile == NULL)
84 cfile = fopen("ip_rules.c", "w");
85 if (cfile == NULL)
87 fp = cfile;
345 fprintf(cfile, "#endif /* IPFILTER_COMPILED */\n");
367 printhooks(cfile, incount, outcount, grp);
410 fprintf(cfile, "\n\ in emittail()
416 fprintf(cfile, "\ in emittail()
421 fprintf(cfile, "\ in emittail()
[all …]
/NextBSD/crypto/openssl/util/
HDmkerr.pl365 my $cfile = $csrc{$lib};
537 if (open(IN,"<$cfile")) {
583 open (OUT,">$cfile") || die "Can't open $cfile for writing";
586 /* $cfile */
/NextBSD/contrib/wpa/hostapd/
HDhostapd_cli.c139 char *cfile; in hostapd_cli_open_connection() local
146 cfile = malloc(flen); in hostapd_cli_open_connection()
147 if (cfile == NULL) in hostapd_cli_open_connection()
149 snprintf(cfile, flen, "%s/%s", ctrl_iface_dir, ifname); in hostapd_cli_open_connection()
154 free(cfile); in hostapd_cli_open_connection()
158 ctrl_conn = wpa_ctrl_open2(cfile, client_socket_dir); in hostapd_cli_open_connection()
159 free(cfile); in hostapd_cli_open_connection()
/NextBSD/usr.sbin/lpr/common_source/
HDctlinfo.c275 FILE *cfile; in ctl_readcf() local
280 cfile = fopen(cfname, "r"); in ctl_readcf()
281 if (cfile == NULL) { in ctl_readcf()
305 cpriv->cji_fstream = cfile; in ctl_readcf()

12