On Wed, 26 Jun 2002, Radoslav Savov wrote:

> main ()
> 
> {
>       perror("nothing");
>       perror("perror");
> 
> }
> 
> rezultat:
> ----------------
> nothing: Success
> perror: Illegal seek
> 
> ----------------
> 
> Obru6tenieto kum perror() predizwikwa gre6ka ?!
> Kak da go oprawq?

        Ot man perror:
        Note that  errno  is undefined after a successful library call:
       this call may well change this variable,  even  though  it
       succeeds,  for  example  because  it  internally used some
       other library function that failed.

        TR: Sled uspesheno izvikvane na funkcia ot lib errno e v nevalidno
systoianie ...
        Ot koeto sledva che vtoroto perror moje da vadi kakvoto si iska.
ako ti triabva da go zapazish moje da probvash slednoto:
int main()
{
        int errno_save;
        errno_save = errno;
        perror("nothing");
        errno = errno_save;
        perror("perror");
}

Tova ne sym siguren dali raboti ako e v thread.

-- 
have fun,
alex

============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================

Reply via email to