/bionic/libc/upstream-openbsd/lib/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...] |
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...] |
ftell.c | 43 ftello(FILE *fp) 47 if (fp->_seek == NULL) { 57 FLOCKFILE(fp); 58 __sflush(fp); /* may adjust seek offset on append stream */ 59 if (fp->_flags & __SOFF) 60 pos = fp->_offset; 62 pos = (*fp->_seek)(fp->_cookie, (fpos_t)0, SEEK_CUR); 66 if (fp->_flags & __SRD) { 72 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...] |
fputws.c | 40 fputws(ws, fp) 42 FILE * __restrict fp; 44 FLOCKFILE(fp); 45 _SET_ORIENTATION(fp, 1); 48 if (__fputwc_unlock(*ws++, fp) == WEOF) { 49 FUNLOCKFILE(fp); 54 FUNLOCKFILE(fp);
|
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 (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); 79 _SET_ORIENTATION(fp, -1); 82 if (fp->_r <= 0 && __srefill(fp)) [all...] |
/external/clang/test/CodeGen/ |
2002-07-14-MiscTests2.c | 5 extern fp(int, char*); 10 fp (12, Ext ? Ext : "<none>");
|
/external/clang/test/Index/ |
werror.c | 1 inline int *get_int_ptr(float *fp) { 2 return fp;
|
/ndk/sources/android/support/src/stdio/ |
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)
|
fileext.h | 46 #define _EXT(fp) ((struct __sfileext *)((fp)->_ext._base)) 47 #define _UB(fp) _EXT(fp)->_ub 48 #define _FLOCK(fp) _EXT(fp)->_lock 50 #define _FILEEXT_INIT(fp) \ 52 _UB(fp)._base = NULL; \ 53 _UB(fp)._size = 0; \ 54 WCIO_INIT(fp); \ [all...] |
/art/test/303-verification-stress/ |
classes-gen.c | 13 FILE* fp; local 21 fp = fopen(nameBuf, "w"); 22 if (fp == NULL) { 27 fprintf(fp, "public class Test%03d {\n", i); 28 fprintf(fp, " static String[] array = new String[%d];\n", array_size); 29 fprintf(fp, " static {\n", array_size); 31 fprintf(fp, " array[%d] = \"string_%04d\";\n", k, k); 33 fprintf(fp, " }\n", array_size); 34 fprintf(fp, "}\n"); 35 fclose(fp); [all...] |
/bionic/libc/upstream-freebsd/lib/libc/stdio/ |
fclose.c | 49 fclose(FILE *fp) 53 if (fp->_flags == 0) { /* not open! */ 57 FLOCKFILE(fp); 58 r = fp->_flags & __SWR ? __sflush(fp) : 0; 59 if (fp->_close != NULL && (*fp->_close)(fp->_cookie) < 0) 61 if (fp->_flags & __SMBF) 62 free((char *)fp->_bf._base) [all...] |
/bionic/libc/bionic/ |
flockfile.cpp | 38 void flockfile(FILE* fp) { 43 if (fp != NULL) { 44 pthread_mutex_lock(&_FLOCK(fp)); 48 int ftrylockfile(FILE* fp) { 55 if (fp == NULL) { 59 return pthread_mutex_trylock(&_FLOCK(fp)); 62 void funlockfile(FILE* fp) { 67 if (fp != NULL) { 68 pthread_mutex_unlock(&_FLOCK(fp));
|
/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/chromium_org/third_party/icu/source/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/icu/icu4c/source/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/chromium_org/third_party/icu/source/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...] |
/external/icu/icu4c/source/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...] |