EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

StdLib/LibC/Stdio/fwalk.c

Go to the documentation of this file.
00001 
00046 #include  <LibConfig.h>
00047 
00048 #include <assert.h>
00049 #include <errno.h>
00050 #include <stdio.h>
00051 #include "reentrant.h"
00052 #include "local.h"
00053 #include "glue.h"
00054 
00055 int
00056 _fwalk(int (*function)(FILE *))
00057 {
00058   FILE *fp;
00059   int n, ret;
00060   struct glue *g;
00061 
00062   _DIAGASSERT(function != NULL);
00063 
00064   ret = 0;
00065   for (g = &__sglue; g != NULL; g = g->next)
00066     for (fp = g->iobs, n = g->niobs; --n >= 0; fp++)
00067       if (fp->_flags != 0)
00068         ret |= (*function)(fp);
00069   return (ret);
00070 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines