Paul Durrant wrote:
On 4/10/07, Frank Hofmann <[EMAIL PROTECTED]> wrote:
But then,
what's the advantage of non-portable hacks like the above versus:
void write_stderr ( char * buf, int n )
{
(void)write(fileno(stderr), buf, n);
}
Why can you not have the library call ?
The usual reason is to avoid an LD_PRELOAD. I've had to pull such
tricks in the past when writing my own preloads.
Isn't that what _write() versus write() is about ?
--
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code