Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-11-03 23:47:50 +0300
committerJeff Johnston <jjohnstn@redhat.com>2005-11-03 23:47:50 +0300
commit15eaca1c3fadd40d41d0f61cb656923be443c577 (patch)
treefbf4c19ebb71cf021569dbc294e146162dc664d6 /newlib/libc/unix/getcwd.c
parentd31a862312eebff8f99e28f30d245248408b538b (diff)
2005-11-03 Jeff Johnston <jjohnstn@redhat.com>
* libc/unix/getcwd.c: Don't use non-reentrant syscall names. * libc/unix/getlogin.c: Ditto. * libc/unix/getpass.c: Ditto. * libc/unix/getut.c: Ditto. * libc/unix/ttyname.c: Ditto.
Diffstat (limited to 'newlib/libc/unix/getcwd.c')
-rw-r--r--newlib/libc/unix/getcwd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/newlib/libc/unix/getcwd.c b/newlib/libc/unix/getcwd.c
index 826fc789d..f57e14742 100644
--- a/newlib/libc/unix/getcwd.c
+++ b/newlib/libc/unix/getcwd.c
@@ -124,7 +124,7 @@ getcwd (pt, size)
for (first = 1;; first = 0)
{
/* Stat the current level. */
- if (_stat (up, &s))
+ if (stat (up, &s))
goto err;
/* Save current node values. */
@@ -165,7 +165,7 @@ getcwd (pt, size)
*bup = '\0';
/* Open and stat parent directory. */
- if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s))
+ if (!(dir = opendir (up)) || fstat (__dirfd (dir), &s))
goto err;
/* Add trailing slash for next directory. */
@@ -182,7 +182,7 @@ getcwd (pt, size)
{
for (;;)
{
- if (!(dp = _readdir (dir)))
+ if (!(dp = readdir (dir)))
goto notfound;
if (dp->d_ino == ino)
break;
@@ -191,7 +191,7 @@ getcwd (pt, size)
else
for (;;)
{
- if (!(dp = _readdir (dir)))
+ if (!(dp = readdir (dir)))
goto notfound;
if (ISDOT (dp))
continue;
@@ -238,7 +238,7 @@ getcwd (pt, size)
*--bpt = '/';
bpt -= strlen (dp->d_name);
bcopy (dp->d_name, bpt, strlen (dp->d_name));
- (void) _closedir (dir);
+ (void) closedir (dir);
/* Truncate any file name. */
*bup = '\0';