HomeSort by relevance Sort by last modified time
    Searched refs:fp (Results 1 - 25 of 959) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /bionic/libc/stdio/
rget.c 43 __srget(FILE *fp)
45 _SET_ORIENTATION(fp, -1);
46 if (__srefill(fp) == 0) {
47 fp->_r--;
48 return (*fp->_p++);
refill.c 40 lflush(FILE *fp)
42 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR))
43 return (__sflush_locked(fp)); /* ignored... */
52 __srefill(FILE *fp)
59 fp->_r = 0; /* largely a convenience for callers */
62 if (fp->_flags & __SEOF)
66 if ((fp->_flags & __SRD) == 0) {
67 if ((fp->_flags & __SRW) == 0) {
69 fp->_flags |= __SERR;
73 if (fp->_flags & __SWR)
    [all...]
clrerr.c 39 clearerr(FILE *fp)
41 FLOCKFILE(fp);
42 __sclearerr(fp);
43 FUNLOCKFILE(fp);
wsetup.c 44 __swsetup(FILE *fp)
53 if ((fp->_flags & __SWR) == 0) {
54 if ((fp->_flags & __SRW) == 0)
56 if (fp->_flags & __SRD) {
58 if (HASUB(fp))
59 FREEUB(fp);
60 fp->_flags &= ~(__SRD|__SEOF);
61 fp->_r = 0;
62 fp->_p = fp->_bf._base
    [all...]
fgetc.c 37 fgetc(FILE *fp)
39 return (getc(fp));
fpurge.c 44 fpurge(FILE *fp)
46 FLOCKFILE(fp);
47 if (!fp->_flags) {
48 FUNLOCKFILE(fp);
53 if (HASUB(fp))
54 FREEUB(fp);
55 WCIO_FREE(fp);
56 fp->_p = fp->_bf._base;
57 fp->_r = 0
    [all...]
wbuf.c 44 __swbuf(int c, FILE *fp)
48 _SET_ORIENTATION(fp, -1);
56 fp->_w = fp->_lbfsize;
57 if (cantwrite(fp)) {
72 n = fp->_p - fp->_bf._base;
73 if (n >= fp->_bf._size) {
74 if (__sflush(fp))
78 fp->_w--
    [all...]
wcio.h 43 #define WCIO_GET(fp) \
46 #define _SET_ORIENTATION(fp, mode) ((void)0)
51 #define WCIO_FREE(fp) ((void)(0))
53 #define WCIO_FREEUB(fp) ((void)0)
55 #define WCIO_INIT(fp) ((void)0)
ungetc.c 41 * Expand the ungetc buffer `in place'. That is, adjust fp->_p when
47 __submore(FILE *fp)
52 if (_UB(fp)._base == fp->_ubuf) {
58 _UB(fp)._base = p;
59 _UB(fp)._size = BUFSIZ;
60 p += BUFSIZ - sizeof(fp->_ubuf);
61 for (i = sizeof(fp->_ubuf); --i >= 0;)
62 p[i] = fp->_ubuf[i];
63 fp->_p = p
    [all...]
fclose.c 40 fclose(FILE *fp)
44 if (fp->_flags == 0) { /* not open! */
48 FLOCKFILE(fp);
49 WCIO_FREE(fp);
50 r = fp->_flags & __SWR ? __sflush(fp) : 0;
51 if (fp->_close != NULL && (*fp->_close)(fp->_cookie) < 0)
53 if (fp->_flags & __SMBF
    [all...]
ftell.c 42 ftello(FILE *fp)
46 if (fp->_seek == NULL) {
56 FLOCKFILE(fp);
57 __sflush(fp); /* may adjust seek offset on append stream */
58 if (fp->_flags & __SOFF)
59 pos = fp->_offset;
61 pos = (*fp->_seek)(fp->_cookie, (fpos_t)0, SEEK_CUR);
65 if (fp->_flags & __SRD) {
71 pos -= fp->_r
    [all...]
fseek.c 49 fseeko(FILE *fp, off_t offset, int whence)
64 if ((seekfn = fp->_seek) == NULL) {
73 FLOCKFILE(fp);
82 __sflush(fp); /* may adjust seek offset on append stream */
83 if (fp->_flags & __SOFF)
84 curoff = fp->_offset;
86 curoff = (*seekfn)(fp->_cookie, (fpos_t)0, SEEK_CUR);
88 FUNLOCKFILE(fp);
92 if (fp->_flags & __SRD) {
93 curoff -= fp->_r
    [all...]
rewind.c 38 rewind(FILE *fp)
40 (void) fseek(fp, 0L, SEEK_SET);
41 clearerr(fp);
fgetln.c 47 __slbexpand(FILE *fp, size_t newsize)
54 if ((size_t)fp->_lb._size >= newsize)
56 if ((p = realloc(fp->_lb._base, newsize)) == NULL)
58 fp->_lb._base = p;
59 fp->_lb._size = newsize;
71 fgetln(FILE *fp, size_t *lenp)
78 FLOCKFILE(fp);
81 if (fp->_r <= 0 && __srefill(fp))
85 if ((p = memchr((void *)fp->_p, '\n', fp->_r)) != NULL)
    [all...]
fread.c 40 lflush(FILE *fp)
42 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR))
43 return (__sflush_locked(fp));
48 fread(void *buf, size_t size, size_t count, FILE *fp)
62 FLOCKFILE(fp);
63 if (fp->_r < 0)
64 fp->_r = 0;
69 if (fp->_flags & __SNBF && fp->_ur == 0)
79 fp->_r = 0; /* largely a convenience for callers *
    [all...]
feof.c 43 feof(FILE *fp)
47 FLOCKFILE(fp);
48 ret = __sfeof(fp);
49 FUNLOCKFILE(fp);
fileno.c 43 fileno(FILE *fp)
47 FLOCKFILE(fp);
48 ret = __sfileno(fp);
49 FUNLOCKFILE(fp);
ferror.c 42 ferror(FILE *fp)
44 return (__sferror(fp));
  /external/clang/test/Index/
werror.c 1 inline int *get_int_ptr(float *fp) {
2 return fp;
  /external/llvm/test/FrontendC/
2002-07-14-MiscTests2.c 5 extern fp(int, char*);
10 fp (12, Ext ? Ext : "<none>");
  /external/clang/test/Sema/
pointer-subtract-compat.c 9 void f0(void (*fp)(void)) {
10 int x = fp - fp; // expected-warning{{arithmetic on pointers to the function type 'void (void)' is a GNU extension}}
  /external/icu4c/tools/tzcode/
scheck.c 22 register const char * fp; local
34 fp = format;
36 while ((*tp++ = c = *fp++) != '\0') {
39 if (*fp == '%') {
40 *tp++ = *fp++;
44 if (*fp == '*')
45 ++fp;
46 while (is_digit(*fp))
47 *tp++ = *fp++;
48 if (*fp == 'l' || *fp == 'h'
    [all...]
  /external/icu4c/test/testdata/
NumberFormatTestCases.txt 15 fp: "0.####" 0.10005 "0.1" 0.1
16 fp: - 0.10006 "0.1001" 0.1001
18 fp: "#.####" 0.10005 "0.1" 0.1
25 fp: "@@@" 1.234567 "1.23" 1.23
26 fp: - 1234567 "1230000" 1230000
27 fp: - 0.012345 "0.0123" 0.0123
29 fp: "#,@@@" 1234567 "1,230,000" 1230000
32 fp: - 0.99999 "1.000" 1
36 fp: - 123456 "123500" 123500
37 fp: - 12.3456 "12.35" 12.3
    [all...]
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
FieldPackerTest.java 46 FieldPacker fp = new FieldPacker(1024); local
47 fp.addBoolean(true);
48 fp.addF32(0.1f);
49 fp.addF32(new Float3());
50 fp.addF32(new Float4());
51 fp.addF32(new Float2());
52 fp.addF64(0.2);
53 fp.addF64(new Double2());
54 fp.addF64(new Double3());
55 fp.addF64(new Double4())
96 FieldPacker fp = new FieldPacker(256); local
118 FieldPacker fp = new FieldPacker(256); local
138 FieldPacker fp = new FieldPacker(256); local
    [all...]
  /external/valgrind/main/exp-ptrcheck/tests/
fp.c 7 float* fp = malloc(sizeof(float)); local
10 *fp += 30.0; // ok
12 free(fp);
14 *fp += 30.0; // bad, been freed

Completed in 3263 milliseconds

1 2 3 4 5 6 7 8 91011>>