Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jun 1998 18:08:54 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        current@FreeBSD.ORG
Subject:   Re: Bogus errno twiddling by lstat...
Message-ID:  <v04011710b1b090f1c21f@[128.113.24.47]>
In-Reply-To: <199806191851.LAA12551@usr06.primenet.com>
References:  <98Jun19.095515pdt.177515@crevenia.parc.xerox.com> from "Bill Fenner" at Jun 19, 98 09:55:00 am

next in thread | previous in thread | raw e-mail | index | archive | help
One question I have is:

Is there any reason that we must let lstat clobber the value of
errno?  Could we just add a few-line update somewhere which
saves the value of errno on entry to lstat, and *if* no error
occurs then reset errno before returning to the caller of lstat?

Or does this start us down a path of having all kinds of system
routines saving copies of errno?

Note that I'm not really interested in whether lstat has the
"right" to clobber errno.  I'm just wondering what advantage
there is in having it continue to clobber errno.

---
Garance Alistair Drosehn           =   gad@eclipse.its.rpi.edu
Senior Systems Programmer          or  drosih@rpi.edu
Rensselaer Polytechnic Institute

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v04011710b1b090f1c21f>