Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to use open (unbuffered I/O) instead of fopen?

unbuffered
0
Posted

How to use open (unbuffered I/O) instead of fopen?

0

To use open instead of fopen in HDF4, you must: • Download and uncompress the HDF source code. • Edit the ./hdf/src/hdfi.h file. • Find the section of code for the platform you are on. For example on Solaris, find this line: #define DF_MT DFMT_SUN Then go down further until you find the section below. • Change the 2nd define in the following lines in that section, from: #ifdef HAVE_FMPOOL #define FILELIB PAGEBUFIO /* enable page buffering */ #else #define FILELIB UNIXBUFIO #endif to: #ifdef HAVE_FMPOOL #define FILELIB PAGEBUFIO /* enable page buffering */ #else #define FILELIB UNIXUNBUFIO #endif This will make HDF use unbuffered I/O.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123