diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-19 18:04:25 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-19 18:04:25 +0000 |
commit | 3fec316902712c8a7546405852fa50a0aa39d4f6 (patch) | |
tree | 250fe9428f45f686c401f22ff96b9e9a0d2a7436 /libc/stdlib | |
parent | bfefdc65657e145a0e05886ec571e0ee6af1a290 (diff) |
Eliminate wrapping of struct stat and use the kernel version
directly. Eliminate all the attendant baggage. Fix internal
types to match kernel types more closely.
-Erik
Diffstat (limited to 'libc/stdlib')
-rw-r--r-- | libc/stdlib/ptsname.c | 2 | ||||
-rw-r--r-- | libc/stdlib/unix_grantpt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdlib/ptsname.c b/libc/stdlib/ptsname.c index 636e9c121..74f3e87d9 100644 --- a/libc/stdlib/ptsname.c +++ b/libc/stdlib/ptsname.c @@ -160,7 +160,7 @@ int ptsname_r (int fd, char *buf, size_t buflen) p[2] = '\0'; } - if (__xstat (_STAT_VER, 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 49e65d16d..4d1b56adf 100644 --- a/libc/stdlib/unix_grantpt.c +++ b/libc/stdlib/unix_grantpt.c @@ -112,7 +112,7 @@ grantpt (int fd) if (pts_name (fd, &buf, sizeof (_buf))) return -1; - if (__xstat (_STAT_VER, buf, &st) < 0) + if (stat(buf, &st) < 0) goto cleanup; /* Make sure that we own the device. */ |