Xref: utzoo comp.lang.c:25688 comp.unix.wizards:20468 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!uniol!lehners From: lehners@uniol.UUCP (Joerg Lehners) Newsgroups: comp.lang.c,comp.unix.wizards Subject: Re: Argument validity checking (addresses) Message-ID: <1668@uniol.UUCP> Date: 4 Feb 90 22:48:14 GMT References: <1990Jan18.175540.12131@wolves.uucp> <1891@gmdzi.UUCP> <1990Jan26.003654.6080@NCoast.ORG> <1990Feb2.070437.2695@stb.uucp> Organization: University of Oldenburg, W-Germany Lines: 22 Hello ! michael@stb.uucp (Michael Gersten) writes: >. Guys, to find out if an address is valid or not, pass it to >access as a filename. It has to check for that being valid and in your >address, and you can see if it gives you EACCESS or not. But that would cause tons of useless disk io. And that routine would be really slow if the buffer (interpreted as a path by access()) is a valid path to a file on eg. a mounted floopy disk. >So there is a use for access() after all. I hope Michael is just joking ... Joerg -- / UUCP: lehners@uniol | Joerg Lehners \ | ...!uunet!unido!uniol!lehners | Fachbereich 10 Informatik ARBI | | BITNET: 066065 AT DOLUNI1 | Universitaet Oldenburg | \ Inhouse: aragorn!joerg | D-2900 Oldenburg /