Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/technotes/modify_printf_behavior.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/technotes/modify_printf_behavior.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/technotes/modify_printf_behavior.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/technotes/modify_printf_behavior.html on line 8
This technote provides information about how to modify the default behavior for the printf command from issuing a SIGSEGV to return a NULL when an error is encountered.
For more information about the printf command, see the Utilities Reference User Guide.
The purpose of this feature is for the following printf code to now generate a SIGSEGV for specific builds of lib/c/:
printf("%s",NULL)
Instead, the result is that it will print a NULL.
|
A SIGSEGV will continue to be the result for other builds; only specific builds are affected. |
To enable this feature:
- Issues these commands:
cd lib/c/
make clean
make EXCLUDE_VARIANTLIST=wcc install
- Build a new kernel.
- Reboot your system.
|
Since you already compile with one of these build environment options specified, BUILDENV=iox or BUILDENV=ion, it is not necessary for you to also include it in the make command; however, you are allowed to do so. For example:
make EXCLUDE_VARIANTLIST=wcc BUILDENV=iox install
|
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/technotes/modify_printf_behavior.html on line 101
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/technotes/modify_printf_behavior.html on line 101