diff options
Diffstat (limited to 'libc/stdlib')
-rw-r--r-- | libc/stdlib/ptsname.c | 4 | ||||
-rw-r--r-- | libc/stdlib/unix_grantpt.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libc/stdlib/ptsname.c b/libc/stdlib/ptsname.c index c56f18a91..8e18e3989 100644 --- a/libc/stdlib/ptsname.c +++ b/libc/stdlib/ptsname.c @@ -136,7 +136,7 @@ int attribute_hidden __ptsname_r (int fd, char *buf, size_t buflen) return ERANGE; } - if (fstat (fd, &st) < 0) + if (__fstat (fd, &st) < 0) return errno; /* Check if FD really is a master pseudo terminal. */ @@ -165,7 +165,7 @@ int attribute_hidden __ptsname_r (int fd, char *buf, size_t buflen) p[2] = '\0'; } - if (stat(buf, &st) < 0) + if (__stat(buf, &st) < 0) return errno; /* Check if the name we're about to return really corresponds to a diff --git a/libc/stdlib/unix_grantpt.c b/libc/stdlib/unix_grantpt.c index e087d18c8..c8dbf3cb3 100644 --- a/libc/stdlib/unix_grantpt.c +++ b/libc/stdlib/unix_grantpt.c @@ -23,6 +23,7 @@ #define setrlimit __setrlimit #define waitpid __waitpid #define dup2 __dup2 +#define chmod __chmod #include <assert.h> #include <errno.h> @@ -119,7 +120,7 @@ grantpt (int fd) if (pts_name (fd, &buf, sizeof (_buf))) return -1; - if (stat(buf, &st) < 0) + if (__stat(buf, &st) < 0) goto cleanup; /* Make sure that we own the device. */ |