Searched refs:fp (Results 126 - 150 of 481) sorted by relevance

1234567891011>>

/haiku-fatelf/src/tests/system/libroot/posix/
H A Dtst-ungetwc2.c14 FILE *fp; local
34 if ((fp = fdopen(fd, "w")) == NULL) {
38 fputs(str, fp);
39 fclose(fp);
42 if ((fp = fopen(fname, "r")) == NULL) {
48 wc = getwc(fp);
49 pos = ftell(fp);
55 ret = ungetwc(wc, fp);
60 pos = ftell(fp);
66 wc = getwc(fp);
[all...]
H A Dtst-wprintf2.c21 FILE *fp; local
34 fp = fdopen(dup(fd), "w");
35 if (fp == NULL)
38 fwprintf(fp,L"test start" );
39 fwprintf(fp, L" int %d\n", a);
42 fwprintf(fp, L"1[%6.3s]\n", argv[1]);
44 fclose(fp);
46 fp = fdopen(dup (fd), "a");
47 if (fp == NULL)
50 setvbuf(fp, NUL
[all...]
H A Dtst-ungetwc1.c14 FILE *fp; local
34 if ((fp = fdopen(fd, "w")) == NULL) {
38 fputs(str, fp);
39 fclose(fp);
42 if ((fp = fopen(fname, "r")) == NULL) {
48 ret = ungetwc(ungetone, fp);
57 wc = getwc(fp);
69 fclose(fp);
/haiku-fatelf/src/bin/network/tcpdump/
H A Dprint-ap1394.c59 register const struct firewire_header *fp; local
60 fp = (const struct firewire_header *)bp;
63 linkaddr_string(fp->firewire_dhost, FIREWIRE_EUI64_LEN),
64 linkaddr_string(fp->firewire_shost, FIREWIRE_EUI64_LEN));
68 tok2str(ethertype_values,"Unknown", ntohs(fp->firewire_type)),
69 ntohs(fp->firewire_type));
71 (void)printf(", %s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", ntohs(fp->firewire_type)));
88 struct firewire_header *fp; local
102 fp = (struct firewire_header *)p;
105 ether_type = ntohs(fp
[all...]
/haiku-fatelf/src/system/libroot/posix/glibc/libio/
H A Dfiledoalloc.c86 _IO_file_doallocate (fp)
87 _IO_FILE *fp;
103 if (fp->_fileno >= 0 && __builtin_expect (_IO_SYSSTAT (fp, &st), 0) >= 0)
112 isatty (fp->_fileno))
113 fp->_flags |= _IO_LINE_BUF;
121 INTUSE(_IO_setb) (fp, p, p + size, 1);
H A Diofdopen.c46 struct _IO_FILE_plus fp; member in struct:locked_FILE
136 new_f->fp.file._lock = &new_f->lock;
141 _IO_no_init (&new_f->fp.file, 0, 0, &new_f->wd,
147 _IO_JUMPS (&new_f->fp) =
152 INTUSE(_IO_file_init) (&new_f->fp);
154 new_f->fp.vtable = NULL;
156 if (INTUSE(_IO_file_attach) ((_IO_FILE *) &new_f->fp, fd) == NULL)
158 INTUSE(_IO_setb) (&new_f->fp.file, NULL, NULL, 0);
159 INTUSE(_IO_un_link) (&new_f->fp);
163 new_f->fp
[all...]
/haiku-fatelf/src/bin/rcs/
H A Drcskeep.c75 * Remove lint and speed up by making FILE *fp local, not global.
119 getoldkeys(fp)
120 register RILE *fp;
122 * revision number, and state out of the file fp.
123 * If fp is null, workname is opened and closed instead of using fp.
142 if (!fp) {
143 if (!(fp = Iopen(workname, FOPEN_R_WORK, (struct stat*)0))) {
164 Igeteof_(fp, c, goto ok;)
180 Igeteof_(fp,
[all...]
/haiku-fatelf/src/bin/gdb/gdb/rdi-share/
H A Ddevsw.c112 static void dumpPacket(FILE *fp, char *label, struct data_packet *p) argument
118 if (!fp)
121 fprintf(fp,"%s [T=%d L=%d] ",label,p->type,p->len);
123 fprintf(fp,"%02x ",p->data[i]);
124 fprintf(fp,"\n");
130 fprintf(fp,"R=%08x ",r);
131 fprintf(fp,"%s ", r&0x80000000 ? "H<-T" : "H->T");
135 case CI_PRIVATE: fprintf(fp,"CI_PRIVATE: "); break;
136 case CI_HADP: fprintf(fp,"CI_HADP: "); break;
137 case CI_TADP: fprintf(fp,"CI_TAD
[all...]
/haiku-fatelf/src/bin/coreutils/lib/
H A Dargv-iter.c28 /* file-mode: fp records position */
29 FILE *fp; member in struct:argv_iterator
45 ai->fp = NULL;
54 argv_iter_init_stream (FILE *fp) argument
59 ai->fp = fp;
71 if (ai->fp)
73 ssize_t len = getdelim (&ai->tok, &ai->buf_len, '\0', ai->fp);
76 *err = feof (ai->fp) ? AI_ERR_EOF : AI_ERR_READ;
102 return ai->fp
[all...]
H A Dfflush.c36 /* Clear the stream's ungetc buffer, preserving the value of ftello (fp). */
38 clear_ungetc_buffer_preserving_position (FILE *fp) argument
40 if (fp->_flags & _IO_IN_BACKUP)
42 fseeko (fp, 0, SEEK_CUR);
47 /* Clear the stream's ungetc buffer. May modify the value of ftello (fp). */
49 clear_ungetc_buffer (FILE *fp) argument
52 if (HASUB (fp))
58 if (fp->_ungetc_count > 0)
60 fp->_ungetc_count = 0;
61 fp
75 disable_seek_optimization(FILE *fp) argument
83 restore_seek_optimization(FILE *fp, int saved_flags) argument
91 update_fpos_cache(FILE *fp, off_t pos) argument
[all...]
H A Dgetdelim.c28 optimizes away the lineptr == NULL || n == NULL || fp == NULL tests below. */
44 # define getc_maybe_unlocked(fp) getc(fp)
50 # define getc_maybe_unlocked(fp) getc(fp)
52 # define getc_maybe_unlocked(fp) getc_unlocked(fp)
62 getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp) argument
67 if (lineptr == NULL || n == NULL || fp == NULL)
73 flockfile (fp);
[all...]
H A Dfprintftime.h28 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
/haiku-fatelf/src/system/libroot/posix/stdio/
H A Dfgets.c51 fgets(buf, n, fp)
54 register FILE *fp;
69 if ((len = fp->_r) <= 0) {
70 if (__srefill(fp)) {
76 len = fp->_r;
78 p = fp->_p;
91 fp->_r -= len;
92 fp->_p = t;
97 fp->_r -= len;
98 fp
[all...]
H A Dfindfp.c106 register FILE *fp; local
113 for (fp = g->iobs, n = g->niobs; --n >= 0; fp++)
114 if (fp->_flags == 0)
121 fp->_flags = 1; /* reserve this slot; caller sets real flags */
122 fp->_p = NULL; /* no current pointer */
123 fp->_w = 0; /* nothing to read or write */
124 fp->_r = 0;
125 fp->_bf._base = NULL; /* no buffer */
126 fp
[all...]
H A Dfputs.c49 fputs(s, fp)
51 FILE *fp;
60 return (__sfvwrite(fp, &uio));
H A Dvfscanf.c92 __svfscanf(fp, fmt0, ap)
93 register FILE *fp;
105 int nread; /* number of characters consumed from fp */
124 while ((fp->_r > 0 || __srefill(fp) == 0) &&
125 isspace(*fp->_p))
126 nread++, fp->_r--, fp->_p++;
141 if (fp->_r <= 0 && __srefill(fp))
[all...]
/haiku-fatelf/src/bin/bash/lib/sh/
H A Dfdprintf.c49 FILE *fp; local
55 fp = fdopen (fd2, "w");
56 if (fp == 0)
63 rc = vfprintf (fp, format, args);
64 fflush (fp);
67 r2 = fclose (fp); /* check here */
/haiku-fatelf/src/libs/print/libgutenprint/src/cups/
H A Dgenppd.c188 static void print_group_close(gzFile fp, stp_parameter_class_t p_class,
192 static void print_group_open(gzFile fp, stp_parameter_class_t p_class,
196 static int write_ppd(gzFile fp, const stp_printer_t *p,
651 gzFile fp; /* File to write to */ local
710 if ((fp = gzopen(filename, "wb")) == NULL)
732 status = write_ppd(fp, p, language, ppd_location, ppd_type,
735 gzclose(fp);
919 print_ppd_header(gzFile fp, ppd_type_t ppd_type, int model, const char *driver, argument
930 gzputs(fp, "*PPD-Adobe: \"4.3\"\n");
931 gzputs(fp, "*
1012 print_ppd_header_3(gzFile fp, ppd_type_t ppd_type, int model, const char *driver, const char *family, const char *long_name, const char *manufacturer, const char *device_id, const char *ppd_location, const char *language, const stp_string_list_t *po, char **all_langs) argument
1054 print_ppd_header_2(gzFile fp, ppd_type_t ppd_type, int model, const char *driver, const char *family, const char *long_name, const char *manufacturer, const char *device_id, const char *ppd_location, const char *language, const stp_string_list_t *po, char **all_langs) argument
1068 print_page_sizes(gzFile fp, stp_vars_t *v, int simplified, const stp_string_list_t *po) argument
1242 print_color_setup(gzFile fp, int simplified, int printer_is_color, const stp_string_list_t *po) argument
1330 print_group( gzFile fp, const char *what, stp_parameter_class_t p_class, stp_parameter_level_t p_level, const char *language, const stp_string_list_t *po) argument
1377 print_group_close( gzFile fp, stp_parameter_class_t p_class, stp_parameter_level_t p_level, const char *language, const stp_string_list_t *po) argument
1393 print_group_open( gzFile fp, stp_parameter_class_t p_class, stp_parameter_level_t p_level, const char *language, const stp_string_list_t *po) argument
1404 print_one_option(gzFile fp, stp_vars_t *v, const stp_string_list_t *po, ppd_type_t ppd_type, const stp_parameter_t *lparam, const stp_parameter_t *desc) argument
1642 print_one_localization(gzFile fp, const stp_string_list_t *po, int simplified, const char *lang, const stp_parameter_t *lparam, const stp_parameter_t *desc) argument
1750 print_standard_fonts(gzFile fp) argument
1795 write_ppd( gzFile fp, const stp_printer_t *p, const char *language, const char *ppd_location, ppd_type_t ppd_type, const char *filename) argument
[all...]
H A Dcups-calibrate.c60 void send_prolog(FILE *fp);
61 void send_pass1(FILE *fp);
62 void send_pass2(FILE *fp, float kd, float rd, float yellow);
63 void send_pass3(FILE *fp, float kd, float rd, float g, float yellow);
64 void send_pass4(FILE *fp, float red, float green, float blue, const char *p);
84 FILE *fp; local
148 fp = popen(command, "w");
149 send_prolog(fp);
150 send_pass1(fp);
151 fputs("showpage\n", fp);
456 send_prolog(FILE *fp) argument
498 send_pass1(FILE *fp) argument
529 send_pass2(FILE *fp, float kd, float rd, float yellow) argument
585 send_pass3(FILE *fp, float kd, float rd, float g, float yellow) argument
753 send_pass4(FILE *fp, float red, float green, float blue, const char *profile) argument
[all...]
/haiku-fatelf/src/libs/expat/xmlwf/
H A Dxmlwf.c26 FILE *fp = userData; local
30 fputts(T("&amp;"), fp);
33 fputts(T("&lt;"), fp);
36 fputts(T("&gt;"), fp);
40 fputts(T("&#xD;"), fp);
44 fputts(T("&quot;"), fp);
49 ftprintf(fp, T("&#%d;"), *s);
53 puttc(*s, fp);
60 attributeValue(FILE *fp, const XML_Char *s) argument
62 puttc(T('='), fp);
121 FILE *fp = userData; local
143 FILE *fp = userData; local
168 FILE *fp = userData; local
214 FILE *fp = userData; local
234 FILE *fp = userData; local
296 FILE *fp = XML_GetUserData((XML_Parser) userData); local
332 FILE *fp = XML_GetUserData(parser); local
366 FILE *fp = XML_GetUserData(parser); local
377 FILE *fp = XML_GetUserData(parser); local
389 FILE *fp = XML_GetUserData(parser); local
401 FILE *fp = XML_GetUserData(parser); local
411 FILE *fp = XML_GetUserData(parser); local
421 FILE *fp = XML_GetUserData(parser); local
437 FILE *fp = XML_GetUserData(parser); local
447 FILE *fp = XML_GetUserData(parser); local
461 FILE *fp = XML_GetUserData(parser); local
487 FILE *fp = XML_GetUserData(parser); local
525 FILE *fp = XML_GetUserData(parser); local
542 FILE *fp = XML_GetUserData(parser); local
749 FILE *fp = 0; local
[all...]
/haiku-fatelf/src/bin/coreutils/src/
H A Dprog-fprintf.h22 extern void prog_fprintf (FILE *fp, char const *fmt, ...)
/haiku-fatelf/src/bin/network/tcpdump/libpcap/
H A Detherent.c90 pcap_next_etherent(FILE *fp) argument
99 c = skip_space(fp);
106 c = skip_line(fp);
113 c = getc(fp);
117 c = getc(fp);
122 c = getc(fp);
129 c = skip_line(fp);
132 c = skip_space(fp);
139 c = skip_line(fp);
149 c = getc(fp);
[all...]
/haiku-fatelf/src/bin/network/wget/lib/
H A Dgetdelim.c37 # define getc_maybe_unlocked(fp) getc(fp)
43 # define getc_maybe_unlocked(fp) getc(fp)
45 # define getc_maybe_unlocked(fp) getc_unlocked(fp)
55 getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp) argument
60 if (lineptr == NULL || n == NULL || fp == NULL)
66 flockfile (fp);
85 i = getc_maybe_unlocked (fp);
[all...]
/haiku-fatelf/src/bin/bash/lib/readline/examples/
H A Drlcat.c129 fcopy(fp)
130 FILE *fp;
135 while ((c = getc(fp)) != EOF)
156 FILE *fp; local
164 fp = stdin;
167 fp = fopen (argv[i], "r");
168 if (fp == 0)
174 r = fcopy (fp);
175 if (fp != stdin)
176 fclose(fp);
[all...]
/haiku-fatelf/src/bin/gdb/readline/examples/
H A Drlcat.c124 fcopy(fp)
125 FILE *fp;
130 while ((c = getc(fp)) != EOF)
151 FILE *fp; local
159 fp = stdin;
162 fp = fopen (argv[i], "r");
163 if (fp == 0)
169 r = fcopy (fp);
170 if (fp != stdin)
171 fclose(fp);
[all...]

Completed in 287 milliseconds

1234567891011>>