Argument validity checking (addresses)

Joerg Lehners lehners at uniol.UUCP
Mon Feb 5 09:48:14 AEST 1990


Hello !

michael at stb.uucp (Michael Gersten) writes:
><Sigh>. 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 at uniol              | Joerg Lehners                  \
|       ...!uunet!unido!uniol!lehners | Fachbereich 10 Informatik ARBI |
| BITNET:  066065 AT DOLUNI1          | Universitaet Oldenburg         |
\ Inhouse: aragorn!joerg              | D-2900 Oldenburg               /



More information about the Comp.unix.wizards mailing list