[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nfr-users
Subject:    Re: RH6 bug? Re: nfr and rh-6 (fwd)
From:       Cristian Gafton <gafton () redhat ! com>
Date:       1999-06-27 21:18:19
[Download RAW message or body]


>      stderr should be always be defined, in RedHat 5.2 it is defined in
> stdio.h as #define stderr _IO_stderr, but RedHat 6.0 misses this 
> item strangely.

Please look in the /usr/doc/glibc-2.1/FAQ file, the whole stderr issue is
explained there. Basically you can not use stderr anymore as a constant,
so code like:

FILE *foo = stderr;
int main(int argc, char **argv)
{ ... }

needs to be replaced with something like:

FILE *foo;
int main(int argc, char **argv)
{
    foo = stderr;
    ...
}


Look in the FAQ file for other triucks that can be done. Somebody
mentioned that "stderr in in the standard". I don;t know what standard,
but there is no C spec that required stderr to be defined as a constant.
Now instead of a constant is a real variable.

I hope this helps,

Cristian
--
----------------------------------------------------------------------
Cristian Gafton    --     gafton@redhat.com     --       Red Hat, Inc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 UNIX is user friendly. It's just selective about who its friends are.

****************************************************************
TO POST A MESSAGE on this list, send it to nfr-users@nfr.net.
TO UNSUBSCRIBE from this list, send the following text in the
message body (not subject line) to majordomo@nfr.net

unsubscribe nfr-users your-email-address
****************************************************************

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic