Update contrib.
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.
15 * The only thing we could fail on is write access to a read-only file
26 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)
38 EXPORT_C int waccess(const wchar_t *fn, int flags)
43 if (s.st_mode & S_IFDIR)
45 if ((flags&W_OK)&&(s.st_mode&S_IWRITE)==0)