On 4/20/23 17:35, наб wrote: > +.I errcode > +must be the latest error returned from an operation on > +.IR preg . > +If > +.I preg > +is a null pointer\(emthe latest error. I don't read that from the POSIX spec. If preg is NULL, then I think any error returned by a call to one of these APIs would be valid. In fact, since these functions are MT-Safe, they can't store any state, which leads me to think that they can't really distinguish between the latest error, and an error returned at a random point in the past, or even the result of csrand_interval(x, y)[1] with appropriate x and y. [1]: <https://github.com/shadow-maint/shadow/blob/c80788a3ac092bc5abfa89ff48060d3f95cd5812/libmisc/csrand.c#L93> -- <http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature