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

123456

/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/Stdio/
H A Dclrerr.c57 clearerr(FILE *fp) argument
59 _DIAGASSERT(fp != NULL);
60 if(fp != NULL) {
61 FLOCKFILE(fp);
62 __sclearerr(fp);
63 FUNLOCKFILE(fp);
H A Dgetwc.c45 getwc(FILE *fp) argument
48 return fgetwc(fp);
H A Drewind.c55 rewind(FILE *fp) argument
57 _DIAGASSERT(fp != NULL);
59 if(fp != NULL) {
60 FLOCKFILE(fp);
61 (void) fseek(fp, 0L, SEEK_SET);
62 __sclearerr(fp);
63 FUNLOCKFILE(fp);
H A Drget.c60 __srget(FILE *fp) argument
62 _DIAGASSERT(fp != NULL);
64 if(fp != NULL) {
65 _SET_ORIENTATION(fp, -1);
66 if (__srefill(fp) == 0) {
67 fp->_r--;
68 return (*fp->_p++);
H A Dwsetup.c60 __swsetup(FILE *fp) argument
63 _DIAGASSERT(fp != NULL);
64 if(fp == NULL) {
76 if ((fp->_flags & __SWR) == 0) {
77 if ((fp->_flags & __SRW) == 0)
79 if (fp->_flags & __SRD) {
81 if (HASUB(fp))
82 FREEUB(fp);
83 fp->_flags &= ~(__SRD|__SEOF);
84 fp
[all...]
H A Dfclose.c57 fclose(FILE *fp) argument
61 _DIAGASSERT(fp != NULL);
62 if(fp == NULL) {
67 if (fp->_flags == 0) { /* not open! */
71 FLOCKFILE(fp);
72 WCIO_FREE(fp);
73 r = fp->_flags & __SWR ? __sflush(fp) : 0;
74 if (fp->_close != NULL && (*fp
[all...]
H A Dfeof.c58 feof(FILE *fp) argument
62 _DIAGASSERT(fp != NULL);
63 if(fp == NULL) {
68 FLOCKFILE(fp);
69 r = __sfeof(fp);
70 FUNLOCKFILE(fp);
H A Dferror.c58 ferror(FILE *fp) argument
62 _DIAGASSERT(fp != NULL);
63 if(fp == NULL) {
68 FLOCKFILE(fp);
69 r = __sferror(fp);
70 FUNLOCKFILE(fp);
H A Dfgetc.c55 fgetc(FILE *fp) argument
59 _DIAGASSERT(fp != NULL);
61 if(fp != NULL) {
62 FLOCKFILE(fp);
63 r = __sgetc(fp);
64 FUNLOCKFILE(fp);
H A Dfgetpos.c54 fgetpos(FILE *fp, fpos_t *pos) argument
56 _DIAGASSERT(fp != NULL);
59 if((fp == NULL) || (pos == NULL)) {
64 return((*pos = (off_t)ftello(fp)) == (off_t)-1);
H A Dfputc.c55 fputc(int c, FILE *fp) argument
59 _DIAGASSERT(fp != NULL);
61 if(fp != NULL) {
62 FLOCKFILE(fp);
63 r = __sputc(c, fp);
64 FUNLOCKFILE(fp);
H A Dftell.c58 ftell(FILE *fp) argument
62 FLOCKFILE(fp);
64 if (fp->_seek == NULL) {
65 FUNLOCKFILE(fp);
74 __sflush(fp); /* may adjust seek offset on append stream */
75 if (fp->_flags & __SOFF)
76 pos = fp->_offset;
78 pos = (*fp->_seek)(fp->_cookie, (fpos_t)0, SEEK_CUR);
80 FUNLOCKFILE(fp);
[all...]
H A Dfunopen.c57 FILE *fp; local
72 if ((fp = __sfp()) == NULL)
74 fp->_flags = flags;
75 fp->_file = -1;
76 fp->_cookie = __UNCONST(cookie);
77 fp->_read = readfn;
78 fp->_write = writefn;
79 fp->_seek = seekfn;
80 fp->_close = closefn;
81 return (fp);
[all...]
H A Dfwide.c50 fwide(FILE *fp, int mode) argument
54 _DIAGASSERT(fp != NULL);
55 if(fp == NULL) {
71 FLOCKFILE(fp);
72 wcio = WCIO_GET(fp);
80 FUNLOCKFILE(fp);
H A Dgetc.c61 getc(FILE *fp) argument
65 _DIAGASSERT(fp != NULL);
66 if(fp == NULL) {
71 FLOCKFILE(fp);
72 r = __sgetc(fp);
73 FUNLOCKFILE(fp);
78 getc_unlocked(FILE *fp) argument
81 _DIAGASSERT(fp != NULL);
82 if(fp == NULL) {
87 return (__sgetc(fp));
[all...]
H A Dgetchar.c59 FILE *fp = stdin; local
62 FLOCKFILE(fp);
63 r = __sgetc(fp);
64 FUNLOCKFILE(fp);
H A Dputwc.c45 putwc(wchar_t wc, FILE *fp) argument
48 return fputwc(wc, fp);
H A Drefill.c64 lflush(FILE *fp) argument
67 _DIAGASSERT(fp != NULL);
68 if(fp == NULL) {
73 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR))
74 return (__sflush(fp));
83 __srefill(FILE *fp) argument
86 _DIAGASSERT(fp != NULL);
87 if(fp == NULL) {
96 //Print(L"%a( %d)\n", __func__, fp->_file);
97 fp
[all...]
H A Dsetbuf.c56 setbuf(FILE *fp, char *buf) argument
59 _DIAGASSERT(fp != NULL);
62 (void) setvbuf(fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ);
H A Dungetwc.c41 ungetwc(wint_t wc, FILE *fp) argument
45 _DIAGASSERT(fp);
50 FLOCKFILE(fp);
51 _SET_ORIENTATION(fp, 1);
58 wcio = WCIO_GET(fp);
60 FUNLOCKFILE(fp);
66 FUNLOCKFILE(fp);
71 __sclearerr(fp);
72 FUNLOCKFILE(fp);
H A Dwbuf.c59 __swbuf(int c, FILE *fp) argument
63 //_DIAGASSERT(fp != NULL);
64 if(fp == NULL) {
69 _SET_ORIENTATION(fp, -1);
78 fp->_w = fp->_lbfsize;
79 if (cantwrite(fp)) {
94 n = (int)(fp->_p - fp->_bf._base);
95 if (n >= fp
[all...]
H A Dfprintf.c54 fprintf(FILE *fp, const char *fmt, ...) argument
59 _DIAGASSERT(fp != NULL);
61 if(fp == NULL) {
67 ret = vfprintf(fp, fmt, ap);
H A Dfscanf.c57 fscanf(FILE *fp, char const *fmt, ...) argument
63 ret = __svfscanf(fp, fmt, ap);
H A Dfseek.c65 fseek(FILE *fp, long l_offset, int whence) argument
73 return fseeko(fp, offset, whence);
/vbox/src/VBox/Runtime/r0drv/os2/
H A Dthe-os2-kernel.h49 RTR0DECL(void *) RTR0Os2Virt2Flat(RTFAR16 fp); variable

Completed in 71 milliseconds

123456