First public contribution.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
25 EXPORT_C int access(const char *fn , int flags)
31 if (s.st_mode & S_IFDIR)
33 if ((flags&W_OK)&&(s.st_mode&S_IWRITE)==0)
41 #ifdef __SYMBIAN_COMPILE_UNUSED__
42 int _access(const char *fn , int flags)
44 return access(fn, flags);
48 EXPORT_C int waccess(const wchar_t *fn, int flags)
53 if (s.st_mode & S_IFDIR)
55 if ((flags&W_OK)&&(s.st_mode&S_IWRITE)==0)