ntsysv: chyba cteni z adresare

Stanislav Meduna stano na trillian.eunet.sk
Neděle Listopad 29 09:36:11 CET 1998


On 29 Nov 1998 00:36:05 +0100, Pavel Kankovsky wrote:

: Hm? Vetsionou je to tak, ze volani, ktere je uspesne, MUSI v errno
: ponechat to, co tam bylo puvodne.

Je to tak niekde napisane? Moj vyklad som niekde videl
(uz netusim kde), ale pre istotu skonzultujem
aktualne referencie: The Single Unix (R) Specification,
Version 2 od The Open Group pise:

: The value of errno will be defined only after a call
: to a function for which it is explicitly stated
: to be set and until it is changed by the next function
: call. The value of errno should only be examined
: when it is indicated to be valid by a function's
: return value.

Aby to ale nebolo take jednoznacne, o par riadkov
dalej v sekcii "Application usage" vnesieme trochu
zmatku :-):

: A program that uses errno for error checking should
: set it to 0 before a function call, then inspect it
: before a subsequent function call. 

Uz vidim programatorov, ako pred kazdym volanim
nastavuju errno na nulu ...

Zdravi
--
				Stano



Další informace o konferenci Linux