Update contrib.
2 * Copyright (c) 2005-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.
14 * Description: Contains the source for fchdir
23 #include <sys/types.h>
30 The fchdir() function shall be equivalent to chdir() except that
31 the directory that is to be the new current working directory is
32 specified by the file descriptor fildes.A conforming application
33 can obtain a file descriptor for a file of type directory using
34 open(), provided that the file status flags and access modes do
35 not contain O_WRONLY or O_RDWR.
37 Upon successful completion, fchdir() shall return 0. Otherwise,
38 it shall return -1 and set errno to indicate the error.
40 Calls the reentrant version of the function.
43 EXPORT_C int fchdir(int filedesc)
45 return _fchdir_r(&errno, filedesc);