2 access - determine existence or accessibility of named file
9 mode integer or string containing only 'r', 'w', 'x' characters
11 return null value or error
14 access(name) or access(name, 0) or access(name, "") returns the null
15 value if a file with this name exists.
17 If non-null mode is specified, the null value is returned if there
18 is a file with the specified name and accessibility indicated by the
19 bits or characters of the mode argument: 'r' or bit 2 for reading,
20 'w' or bit 1 for writing, 'x' or bit 0 for execution.
23 The system error-numbers and messages may differ for different
30 "No such file or directory"
31 ; f = fopen("junk", "w")
42 There may be implementation-dependent limits inherited from the
43 system call "access" used by this function.
49 fopen, fclose, isfile, files
51 ## Copyright (C) 1999 Landon Curt Noll
53 ## Calc is open software; you can redistribute it and/or modify it under
54 ## the terms of the version 2.1 of the GNU Lesser General Public License
55 ## as published by the Free Software Foundation.
57 ## Calc is distributed in the hope that it will be useful, but WITHOUT
58 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
59 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
60 ## Public License for more details.
62 ## A copy of version 2.1 of the GNU Lesser General Public License is
63 ## distributed with calc under the filename COPYING-LGPL. You should have
64 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
65 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
67 ## @(#) $Revision: 30.1 $
68 ## @(#) $Id: access,v 30.1 2007/03/16 11:10:42 chongo Exp $
69 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/access,v $
71 ## Under source code control: 1996/04/30 03:36:20
72 ## File existed as early as: 1996
74 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
75 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/