Searched defs:fp (Results 1 - 25 of 51) sorted by relevance

123

/bind-9.6-ESV-R11/bin/tests/
H A Dfsaccess_test.c40 FILE *fp; local
48 fp = fopen(PATH, "w");
49 if (fp == NULL) {
74 (void)fclose(fp);
H A Dgenrandom.c33 FILE *fp; local
46 fp = fopen(argv[2], "w");
47 if (fp == NULL) {
62 if (putc(c, fp) == EOF) {
67 if (putc(c, fp) == EOF) {
73 fclose(fp);
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/wsock/common/
H A Dprintf.c67 FILE *fp; local
77 if ((fp = fopen(logfile_name, "a")) != NULL) {
78 fputs(log_header, fp);
79 fputs(msg, fp);
80 fclose(fp);
87 FILE *fp; local
97 if ((fp = fopen(logfile_name, "a")) != NULL) {
98 fputs(log_header, fp);
99 fputs(msg, fp);
100 fclose(fp);
106 FILE *fp; local
[all...]
/bind-9.6-ESV-R11/contrib/pkcs11-keygen/
H A DPEM_write_pubkey.c13 extern int PEM_write_PUBKEY(FILE *fp, EVP_PKEY *x);
20 FILE *fp; local
107 fp = fopen(filename, "w");
108 if (fp == NULL) {
114 if (!PEM_write_PUBKEY(fp, pub_key)) {
122 fclose(fp);
H A Dreadkey.c27 FILE *fp; local
202 fp = fopen(filename, "w");
203 if (fp == NULL) {
209 if (!PEM_write_RSAPrivateKey(fp, rsa, NULL, NULL, 0, NULL, NULL)) {
H A Dwritekey.c31 FILE *fp; local
107 fp = fopen(filename, "r");
108 if (fp == NULL) {
114 rsa = PEM_read_RSAPrivateKey(fp, NULL, NULL, NULL);
115 (void) fclose(fp);
/bind-9.6-ESV-R11/contrib/zkt/
H A Dnscomm.c58 FILE *fp; local
83 if ( (fp = popen (cmdline, "r")) == NULL || fgets (str, sizeof str, fp) == NULL )
85 pclose (fp);
106 FILE *fp; local
150 if ( (fp = popen (cmdline, "r")) == NULL || fgets (str, sizeof str, fp) == NULL )
152 pclose (fp);
169 if ( (fp = popen (cmdline, "r")) == NULL || fgets (str, sizeof str, fp)
200 FILE *fp; local
[all...]
H A Dstrlist.c140 FILE *fp; local
149 if ( (fp = fopen ("/etc/group", "r")) == NULL )
152 while ( fscanf (fp, "%[^:]:%*[^\n]\n", group) != EOF )
156 fclose (fp);
H A Dzkt-soaserial.c110 FILE *fp; local
116 if ( (fp = fopen (fname, "r")) == NULL )
121 while ( !soafound && fgets (buf, sizeof buf, fp) )
131 fclose (fp);
136 while ( (c = getc (fp)) != EOF && isspace (c) )
138 ungetc (c, fp); /* pushback the non ws */
141 if ( fscanf (fp, "%lu", serial) != 1 ) /* try to get serial no */
143 fclose (fp);
147 fclose (fp);
H A Dsoaserial.c57 static int inc_soa_serial (FILE *fp, int use_unixtime);
85 FILE *fp; local
98 if ( (fp = fopen (fname, "r+")) == NULL )
102 while ( fgets (buf, sizeof buf, fp) && !is_soa_rr (buf) )
105 if ( feof (fp) )
107 fclose (fp);
111 error = inc_soa_serial (fp, use_unixtime); /* .. inc soa serial no ... */
113 if ( fclose (fp) != 0 )
185 ** inc_soa_serial (fp, use_unixtime)
186 ** increment the soa serial number of the file 'fp'
189 inc_soa_serial(FILE *fp, int use_unixtime) argument
[all...]
H A Dtcap.c53 static int tc_printattr (FILE *fp, const char *attstr);
54 static int tc_color (FILE *fp, int color);
64 int tc_init (FILE *fp, const char *term) argument
100 if ( !istty (fp) )
165 tc_printattr (fp, is1);
167 tc_printattr (fp, is2);
173 int tc_init (FILE *fp, const char *term) argument
195 int tc_end (FILE *fp, const char *term) argument
200 // if ( r1 && *r1 ) tc_printattr (fp, r1);
202 tc_printattr (fp, r
208 tc_end(FILE *fp, const char *term) argument
215 tc_attr(FILE *fp, tc_att_t attr, int on) argument
246 tc_attr(FILE *fp, tc_att_t attr, int on) argument
262 tc_printattr(FILE *fp, const char *attstr) argument
268 tc_printattr(FILE *fp, const char *attstr) argument
275 tc_color(FILE *fp, int color) argument
284 tc_color(FILE *fp, int color) argument
[all...]
H A Dzfparse.c147 FILE *fp; local
149 if ( (fp = fopen (file, "a")) == NULL )
152 fprintf (fp, "\n");
153 fprintf (fp, "$INCLUDE %s\t; this is the database of public DNSKEY RR\n", keydbfile);
155 fclose (fp);
H A Dlog.c113 FILE *fp; local
146 if ( (fp = fopen (fname, "a")) == NULL )
149 return fp;
H A Dncparse.c114 static int gettok (FILE *fp, char *val, size_t valsize) argument
124 while ( (c = getc (fp)) != EOF && isspace (c) )
129 while ( (c = getc (fp)) != EOF && c != '\n' )
142 if ( (c = getc (fp)) == '*' ) /* yes! */
145 while ( (c = getc (fp)) != EOF && !(lastc == '*' && c == '/') )
150 while ( (c = getc (fp)) != EOF && c != '\n' )
154 ungetc (c, fp);
162 while ( (c = getc (fp)) != EOF && p < bufend && c != '\"' )
167 c = getc (fp);
176 while ( (c = getc (fp)) !
198 FILE *fp; local
[all...]
H A Drollover.c181 FILE *fp; local
188 if ( (fp = fopen (fname, "w")) == NULL )
192 fprintf (fp, "; KSK rollover phase1 (new key generated but this is alread the old one)\n");
194 fprintf (fp, "; KSK rollover phase2 (this is the new key)\n");
196 dki_prt_dnskeyttl (dkp, fp, ttl);
197 fclose (fp);
207 FILE *fp; local
210 if ( (fp = fopen (file, "r")) == NULL )
214 if ( fscanf (fp, "; KSK rollover phase%d", &phase) != 1 )
217 fclose (fp);
[all...]
/bind-9.6-ESV-R11/lib/isc/unix/
H A Dstdio.c31 isc_stdio_open(const char *filename, const char *mode, FILE **fp) { argument
37 *fp = f;
/bind-9.6-ESV-R11/lib/isc/win32/
H A Dstdio.c30 isc_stdio_open(const char *filename, const char *mode, FILE **fp) { argument
36 *fp = f;
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/lib/
H A Daliaslist.c130 FILE *fp; local
139 if ((fp = fopen(path, "r")) == NULL) {
142 for (line_no = 1; fgets(line, sizeof(line), fp) != NULL; line_no++) {
161 fclose(fp);
H A Dfilechecker.c69 static idn_result_t read_file(const char *file, FILE *fp,
78 FILE *fp; local
86 if ((fp = fopen(file, "r")) == NULL) {
100 r = read_file(file, fp, ctx->set);
101 fclose(fp);
152 read_file(const char *file, FILE *fp, idn_ucsset_t set) { argument
157 while (fgets(line, sizeof(line), fp) != NULL) {
H A Dfilemapper.c83 static idn_result_t read_file(const char *file, FILE *fp,
91 FILE *fp; local
99 if ((fp = fopen(file, "r")) == NULL) {
112 r = read_file(file, fp, ctx->map);
113 fclose(fp);
238 read_file(const char *file, FILE *fp, idn_ucsmap_t map) { argument
246 while (fgets(line, sizeof(line), fp) != NULL) {
/bind-9.6-ESV-R11/lib/isc/pthreads/
H A Dmutex.c197 isc_mutex_statsprofile(FILE *fp) { argument
201 fprintf(fp, "Mutex stats (in us)\n");
203 fprintf(fp, "%-12s %4d: %10u %lu.%06lu %lu.%06lu %5d\n",
214 fprintf(fp, " %-11s %4d: %10u %lu.%06lu %lu.%06lu %5d\n",
/bind-9.6-ESV-R11/bin/named/
H A Dlogconf.c229 FILE *fp; local
242 result = isc_stdio_open(dest.file.name, "a", &fp);
254 (void)isc_stdio_close(fp);
/bind-9.6-ESV-R11/bin/tests/master/
H A Dt_master.c137 FILE *fp; local
145 fp = fopen(filename, "r");
146 if (fp != NULL) {
148 while ((p = t_fgetbs(fp)) != NULL) {
175 (void)fclose(fp);
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/tools/idnconv/
H A Dutil.c538 strbuf_getline(idnconv_strbuf_t *buf, FILE *fp) { argument
545 while (fgets(s, sizeof(s), fp) != NULL) {
/bind-9.6-ESV-R11/lib/dns/
H A Ddst_parse.c447 FILE *fp; local
468 if ((fp = fopen(filename, "w")) == NULL)
478 fprintf(fp, "%s v%d.%d\n", PRIVATE_KEY_STR, MAJOR_VERSION,
481 fprintf(fp, "%s %d ", ALGORITHM_STR, dst_key_alg(key));
485 fprintf(fp, "(RSA)\n");
488 fprintf(fp, "(DH)\n");
491 fprintf(fp, "(DSA)\n");
494 fprintf(fp, "(RSASHA1)\n");
497 fprintf(fp, "(NSEC3DSA)\n");
500 fprintf(fp, "(NSEC3RSASHA
[all...]

Completed in 33 milliseconds

123