RE: lug-bg: Red Hat 7.2, kernel 2.4.7, perror bug
am.. normalno, perror si formatira errnomer i si go print kato message princip taka kakto e polzvana v tazi programa e greshno, i absoliutno bezsmisleno br,nick -Original Message- From: Radoslav Savov [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 5:23 AM To: [EMAIL PROTECTED] Subject: lug-bg: Red Hat 7.2, kernel 2.4.7, perror bug main () { perror("nothing"); perror("perror"); } rezultat: nothing: Success perror: Illegal seek Obru6tenieto kum perror() predizwikwa gre6ka ?! Kak da go oprawq? __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com 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 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
Re: lug-bg: Red Hat 7.2, kernel 2.4.7, perror bug
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