summaryrefslogtreecommitdiff
path: root/libc/misc/internals
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-13 11:35:31 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-13 11:35:31 +0000
commit3c84ded68a9106ac87886e173e75dd3dde33c231 (patch)
treedcc90d017e2c77b98d3753d470adfa576d36149c /libc/misc/internals
parent4d668e00b8c42aca5662f1d65496a97a507f583f (diff)
Convert internal users of chmod/*stat*, minimize change for __strsep
Diffstat (limited to 'libc/misc/internals')
-rw-r--r--libc/misc/internals/__uClibc_main.c2
-rw-r--r--libc/misc/internals/tempname.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index 618fad74c..3760ae275 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -96,7 +96,7 @@ static void __check_one_fd(int fd, int mode)
/* /dev/null is major=1 minor=3. Make absolutely certain
* that is in fact the device that we have opened and not
* some other wierd file... */
- if ( (nullfd!=fd) || fstat(fd, &st) || !S_ISCHR(st.st_mode) ||
+ if ( (nullfd!=fd) || __fstat(fd, &st) || !S_ISCHR(st.st_mode) ||
(st.st_rdev != makedev(1, 3)))
{
/* Somebody is trying some trickery here... */
diff --git a/libc/misc/internals/tempname.c b/libc/misc/internals/tempname.c
index fae3687ad..5bcd78390 100644
--- a/libc/misc/internals/tempname.c
+++ b/libc/misc/internals/tempname.c
@@ -54,7 +54,7 @@
static int direxists (const char *dir)
{
struct stat buf;
- return stat(dir, &buf) == 0 && S_ISDIR (buf.st_mode);
+ return __stat(dir, &buf) == 0 && S_ISDIR (buf.st_mode);
}
/* Path search algorithm, for tmpnam, tmpfile, etc. If DIR is
@@ -212,7 +212,7 @@ int attribute_hidden __gen_tempname (char *tmpl, int kind)
case __GT_NOCREATE:
{
struct stat st;
- if (stat (tmpl, &st) < 0)
+ if (__stat (tmpl, &st) < 0)
{
if (errno == ENOENT)
{