Accessing UNIX file system files

When accessing UNIX file system files, you should review the following considerations:

When you include the header file stdio.h, macros are defined for getc(), putc(), getchar(), and putchar(). To use the function calls instead of the macro calls, use #undef after the stdio.h header file is included. If you are working with a threaded application, these macros are automatically undefined forcing the application to use function calls, which are thread safe. The feature test macro _ALL_SOURCE causes these four macros to be undefined. However, if you require _ALL_SOURCE, and want these macros to be used in a non multi-threaded application, you can use feature test macro _ALL_SOURCE_NOTHREADS.