Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: Red Hat 7.2, kernel 2.4.7, perror bug


  • Subject: Re: lug-bg: Red Hat 7.2, kernel 2.4.7, perror bug
  • From: alex@xxxxxx (Alexander Atanasov)
  • Date: Thu, 27 Jun 2002 07:50:58 +0300 (EEST)



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
============================================================================




 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.