Searched refs:fp (Results 76 - 100 of 171) sorted by relevance

1234567

/haiku/src/system/libroot/os/arch/riscv64/
H A Dstack_frame.S12 mv a0, fp
/haiku/src/system/libroot/posix/glibc/libio/
H A Diofread_u.c34 fread_unlocked (buf, size, count, fp)
38 _IO_FILE *fp;
42 CHECK_FILE (fp, 0);
45 bytes_read = INTUSE(_IO_sgetn) (fp, (char *) buf, bytes_requested);
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...]
H A Dvsnprintf.c41 static int _IO_strn_overflow __P ((_IO_FILE *fp, int c));
44 _IO_strn_overflow (fp, c)
45 _IO_FILE *fp;
53 _IO_strnfile *snf = (_IO_strnfile *) fp;
55 if (fp->_IO_buf_base != snf->overflow_buf)
60 *fp->_IO_write_ptr = '\0';
62 INTUSE(_IO_setb) (fp, snf->overflow_buf,
65 fp->_IO_write_base = snf->overflow_buf;
66 fp->_IO_read_base = snf->overflow_buf;
67 fp
[all...]
H A Dvswprintf.c41 static wint_t _IO_wstrn_overflow __P ((_IO_FILE *fp, wint_t c));
44 _IO_wstrn_overflow (fp, c)
45 _IO_FILE *fp;
53 _IO_strnfile *snf = (_IO_strnfile *) fp;
55 if (fp->_wide_data->_IO_buf_base != snf->overflow_buf)
57 INTUSE(_IO_wsetb) (fp, snf->overflow_buf,
61 fp->_wide_data->_IO_write_base = snf->overflow_buf;
62 fp->_wide_data->_IO_read_base = snf->overflow_buf;
63 fp->_wide_data->_IO_read_ptr = snf->overflow_buf;
64 fp
[all...]
H A Diopadn.c37 _IO_padn (fp, pad, count)
38 _IO_FILE *fp;
60 w = _IO_sputn (fp, padptr, PADSIZE);
68 w = _IO_sputn (fp, padptr, i);
H A Diofopncook.c34 static _IO_ssize_t _IO_cookie_read (register _IO_FILE* fp, void* buf,
36 static _IO_ssize_t _IO_cookie_write (register _IO_FILE* fp,
38 static _IO_off64_t _IO_cookie_seek (_IO_FILE *fp, _IO_off64_t offset, int dir);
39 static int _IO_cookie_close (_IO_FILE* fp);
42 _IO_cookie_read (fp, buf, size)
43 _IO_FILE *fp;
47 struct _IO_cookie_file *cfile = (struct _IO_cookie_file *) fp;
56 _IO_cookie_write (fp, buf, size)
57 _IO_FILE *fp;
61 struct _IO_cookie_file *cfile = (struct _IO_cookie_file *) fp;
[all...]
H A Diopopen.c80 _IO_new_proc_open (fp, command, mode)
81 _IO_FILE *fp;
90 if (_IO_file_is_open (fp))
113 ((_IO_proc_file *) fp)->pid = child_pid = fork();
140 _IO_fileno (fp) = parent_end;
147 ((_IO_proc_file *) fp)->next = proc_file_chain;
148 proc_file_chain = (_IO_proc_file *) fp;
154 _IO_mask_flags (fp, read_or_write, _IO_NO_READS|_IO_NO_WRITES);
155 return fp;
174 _IO_FILE *fp; local
[all...]
H A Diowpadn.c43 _IO_wpadn (fp, pad, count)
44 _IO_FILE *fp;
66 w = _IO_sputn (fp, (char *) padptr, PADSIZE);
74 w = _IO_sputn (fp, (char *) padptr, i);
/haiku/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);
H A Dtst-fgetws.c18 FILE *fp; local
39 if ((fp = fdopen(fd, "w")) == NULL) {
43 fwrite(il_str1, sizeof(char), sizeof(il_str1), fp);
44 fclose(fp);
52 if ((fp = fdopen(fd, "w")) == NULL) {
56 fwrite(il_str2, sizeof(char), sizeof(il_str2), fp);
57 fclose(fp);
60 if ((fp = fopen(name1, "r")) == NULL) {
70 ret = fgetws(wcs, WIDE_STR_LEN, fp);
90 if ((fp
[all...]
/haiku/src/system/glue/
H A Dcrtend.c17 typedef void (*fp)(void); typedef
18 const fp __CTOR_END__[]
20 const fp __DTOR_END__[]
H A Dcrtbegin.c32 typedef void (*fp)(void); typedef
33 static const fp __CTOR_LIST__[]
34 __attribute__((section(".ctors"), aligned(sizeof(fp)), visibility("hidden"), used)) = { (fp)-1 };
35 extern const fp __CTOR_END__[] __attribute__((visibility("hidden")));
62 static const fp __DTOR_LIST__[]
63 __attribute__((section(".dtors"), aligned(sizeof(fp)), visibility("hidden"), used)) = { (fp)-1 };
64 extern const fp __DTOR_END__[] __attribute__((visibility("hidden")));
/haiku/src/system/libnetwork/netresolv/net/
H A Dgetprotobynumber_r.c60 if (pd->fp != NULL) {
61 (void)fclose(pd->fp);
62 pd->fp = NULL;
H A Dgetprotoent_r.c61 if (pd->fp == NULL) {
66 pd->fp = fopen(buffer, "re");
68 rewind(pd->fp);
75 if (pd->fp) {
76 (void)fclose(pd->fp);
77 pd->fp = NULL;
98 if (pd->fp == NULL)
100 if (pd->fp == NULL)
106 pd->line = fparseln(pd->fp, NULL, NULL, NULL,
H A Dgetprotobyname_r.c72 if (pd->fp != NULL) {
73 (void)fclose(pd->fp);
74 pd->fp = NULL;
H A Dprotoent.h35 FILE *fp; member in struct:protoent_data
/haiku/src/add-ons/kernel/bus_managers/firewire/
H A Dfwmem.cpp91 struct fw_pkt *fp; local
98 fp = &xfer->send.hdr;
99 fp->mode.rreqq.tcode = FWTCODE_RREQQ;
100 fp->mode.rreqq.dest_hi = dst_hi;
101 fp->mode.rreqq.dest_lo = dst_lo;
128 struct fw_pkt *fp; local
134 fp = &xfer->send.hdr;
135 fp->mode.wreqq.tcode = FWTCODE_WREQQ;
136 fp->mode.wreqq.dest_hi = dst_hi;
137 fp
165 struct fw_pkt *fp; local
203 struct fw_pkt *fp; local
[all...]
/haiku/src/libs/stdc++/legacy/
H A Dstreambuf.cc138 static int _IO_sb_overflow(_IO_FILE *fp, int c) argument
139 { return ((streambuf*)fp)->overflow(c); }
140 static int _IO_sb_underflow(_IO_FILE *fp) argument
141 { return ((streambuf*)fp)->underflow(); }
142 static _IO_size_t _IO_sb_xsputn(_IO_FILE *fp, const void *s, _IO_size_t n) argument
143 { return ((streambuf*)fp)->xsputn((const char*)s, n); }
144 static _IO_size_t _IO_sb_xsgetn(_IO_FILE *fp, void *s, _IO_size_t n) argument
145 { return ((streambuf*)fp)->xsgetn((char*)s, n); }
146 static int _IO_sb_close(_IO_FILE *fp) argument
147 { return ((streambuf*)fp)
148 _IO_sb_stat(_IO_FILE *fp, void *b) argument
150 _IO_sb_doallocate(_IO_FILE *fp) argument
153 _IO_sb_seekoff(_IO_FILE *fp, _IO_off_t pos, int dir, int mode) argument
158 _IO_sb_seekpos(_IO_FILE *fp, _IO_pos_t pos, int mode) argument
163 _IO_sb_pbackfail(_IO_FILE *fp, int ch) argument
165 _IO_sb_finish(_IO_FILE *fp, int) argument
167 _IO_sb_read(_IO_FILE *fp, void *buf, _IO_ssize_t n) argument
169 _IO_sb_write(_IO_FILE *fp, const void *buf, _IO_ssize_t n) argument
171 _IO_sb_sync(_IO_FILE *fp) argument
173 _IO_sb_seek(_IO_FILE *fp, _IO_off_t off, int dir) argument
175 _IO_sb_setbuf(_IO_FILE *fp, char *buf, _IO_ssize_t n) argument
[all...]
/haiku/src/system/libroot/os/arch/sparc/
H A Dfpu_emu.h111 #define ISNAN(fp) ((fp)->fp_class < 0)
112 #define ISZERO(fp) ((fp)->fp_class == 0)
113 #define ISINF(fp) ((fp)->fp_class == FPC_INF)
/haiku/src/system/boot/platform/riscv/
H A Dcrt0.S18 li fp, 0
/haiku/headers/private/kernel/arch/riscv64/
H A Darch_debug.h20 void DoStackTrace(addr_t fp, addr_t pc);

Completed in 87 milliseconds

1234567