[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is ``access (NULL, whatever)'' supposed to do?
From: |
Roland McGrath |
Subject: |
Re: What is ``access (NULL, whatever)'' supposed to do? |
Date: |
Mon, 9 Apr 2007 20:02:32 -0700 (PDT) |
It is supposed to crash. Hopefully it does not hold locks while doing so,
and we should make sure that it doesn't. But anything that returns EFAULT
on Linux has every right to crash with SIGSEGV or SIGBUS there too, and on
the Hurd we explicitly intend that bad addresses cause crashes and not
errors that might be ignored. If it's undefined behavior, crashing quickly
is the most humane way to treat the disadvantaged programmer who made an
error or truly didn't know better before.
- What is ``access (NULL, whatever)'' supposed to do?, Thomas Schwinge, 2007/04/09
- Re: What is ``access (NULL, whatever)'' supposed to do?, Thomas Schwinge, 2007/04/09
- Re: What is ``access (NULL, whatever)'' supposed to do?,
Roland McGrath <=
- Re: What is ``access (NULL, whatever)'' supposed to do?, Neal H. Walfield, 2007/04/10
- Re: What is ``access (NULL, whatever)'' supposed to do?, Roland McGrath, 2007/04/10
- Re: What is ``access (NULL, whatever)'' supposed to do?, Thomas Schwinge, 2007/04/10
- My proposal for `PATH_MAX' and friends (was: What is ``access (NULL, whatever)'' supposed to do?), Thomas Schwinge, 2007/04/10
- Re: My proposal for `PATH_MAX' and friends (was: What is ``access (NULL, whatever)'' supposed to do?), Thomas Bushnell BSG, 2007/04/11
- Re: My proposal for `PATH_MAX' and friends (was: What is ``access (NULL, whatever)'' supposed to do?), Neal H. Walfield, 2007/04/11
- Re: My proposal for `PATH_MAX' and friends (was: What is ``access (NULL, whatever)'' supposed to do?), olafBuddenhagen, 2007/04/11
- Re: My proposal for `PATH_MAX' and friends (was: What is ``access (NULL, whatever)'' supposed to do?), Marcus Brinkmann, 2007/04/11
- Setting ones's priorities (was: My proposal for `PATH_MAX' and friends), Thomas Schwinge, 2007/04/11
- Re: Setting ones's priorities (was: My proposal for `PATH_MAX' and friends), Thomas Bushnell BSG, 2007/04/11