Report an Issue | Log In | Sign Up   View a printable version of the current page.


Solaris Application Programming

Home


Added by dgove , last edited by dgove on Jan 15, 2008  (view change)
Labels: 
(None)

Summary

The book Solaris Application Programming will be available from early January 2008.

Publication details:

Pearson Media page: http://vig.prenhall.com/catalog/academic/product/0,1144,0138134553,00.html
Table of contents: http://vig.prenhall.com/catalog/academic/product/0,1144,0138134553-TOC,00.html
About the author: http://vig.prenhall.com/catalog/academic/product/0,1144,0138134553-ABI,00.html
Preface: http://vig.prenhall.com/catalog/academic/product/0,1144,0138134553-PRE,00.html
Author's blog: http://blogs.sun.com/d/

Related wiki pages

Application Performance Tuning
Solaris Developer
Performance

Errata for first printing of the book

Page 190. Example 7.14 - The formatting is broken, it should look more like:

  (*((void(*)())dlsym(RTLD_NEXT, "exit")))(status);
}

double sin(double x) {

Page 186 Example 7.8 - The flag needs to be in quotes to avoid being interpreted by the shell

$ cc -o myapp -L. '-R$ORIGIN/../lib' -lmylib myapp.c

Page 400. Example 12.28 is missing

#include <limits.h>

Clarifications

page 399.

"This minimum stack size is held in the PTHREAD_STACK_MIN constant, which is defined in limits.h."
Actually PTHREAD_STACK_MIN is a macro which is declared in limits.h as:

#define PTHREAD_STACK_MIN       ((size_t)_sysconf(_SC_THREAD_STACK_MIN))

It is available when limits.h is included and also the code is compiled with _POSIX_C_SOURCE=199506L (or greater) - meaning that the code requires at least POSIX.1c. To get all possible compatible extensions enabled __EXTENSIONS__ can be defined on the compile line. More details on standards can be found in the man pages (`man standards`)

The individuals who post here are part of the extended Sun Microsystems community and they may not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact