From 709263b6d814becff7e4191fce2a70bdd9c3c172 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 22 Aug 2008 23:38:33 +0000 Subject: [PATCH] Add chdir() and getcwd() git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@837 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 2 + Documentation/NuttX.html | 3 +- Documentation/NuttxUserGuide.html | 9 +- include/stdio.h | 2 - include/unistd.h | 6 ++ lib/Makefile | 2 +- lib/lib_chdir.c | 131 ++++++++++++++++++++++++++++ lib/lib_cwdsem.c | 86 ++++++++++++++++++ lib/lib_getcwd.c | 139 ++++++++++++++++++++++++++++++ lib/lib_internal.h | 44 ++++++---- lib/lib_strlen.c | 22 ++--- 11 files changed, 411 insertions(+), 35 deletions(-) create mode 100644 lib/lib_chdir.c create mode 100644 lib/lib_cwdsem.c create mode 100644 lib/lib_getcwd.c diff --git a/ChangeLog b/ChangeLog index 6f21cf3c19a..bd0addd0fcf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -417,4 +417,6 @@ * NSH now supports comments beginning with '#' * NSH now supports commands to inspect and modify memory * NSH cat command now supports multiple files on command line + * Add chdir() and getcwd() + diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index 1c48e5d5838..05c44e37e74 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -8,7 +8,7 @@

NuttX RTOS

-

Last Updated: August 21, 2008

+

Last Updated: August 22, 2008

@@ -1051,6 +1051,7 @@ nuttx-0.3.13 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> * NSH now supports comments beginning with '#' * NSH now supports commands to inspect and modify memory * NSH cat command now supports multiple files on command line + * Add chdir() and getcwd() pascal-0.1.3 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> diff --git a/Documentation/NuttxUserGuide.html b/Documentation/NuttxUserGuide.html index e5cb13eb3b7..0feb1ef0e18 100644 --- a/Documentation/NuttxUserGuide.html +++ b/Documentation/NuttxUserGuide.html @@ -21,7 +21,7 @@ User's Manual

Gregory Nutt

-Last Update: August 10, 2008 +Last Update: August 22, 2008

1.0 Introduction

@@ -5942,6 +5942,11 @@ interface of the same name. void seekdir(FAR DIR *dirp, int loc); int telldir(FAR DIR *dirp); +

2.11.4 Standard I/O