diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-11-17 18:00:46 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-11-17 18:00:46 +0000 |
commit | 886d6acb51d50addaff443042b399536654e954e (patch) | |
tree | ac7f0371c900217ebc70e4668cc5b023e56c6d45 /libc/stdlib/grantpt.c | |
parent | 312cdbc101048128ba05714f4eca84e7d70af3dd (diff) | |
download | uClibc-alpine-886d6acb51d50addaff443042b399536654e954e.tar.bz2 uClibc-alpine-886d6acb51d50addaff443042b399536654e954e.tar.xz |
Synch with trunk @ 24075.
Step 7: libc/stdlib and malloc
Diffstat (limited to 'libc/stdlib/grantpt.c')
-rw-r--r-- | libc/stdlib/grantpt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/stdlib/grantpt.c b/libc/stdlib/grantpt.c index b60ffe7dc..8c858506b 100644 --- a/libc/stdlib/grantpt.c +++ b/libc/stdlib/grantpt.c @@ -38,7 +38,8 @@ int __unix_grantpt (int fd); /* Prototype for private function that gets the name of the slave pseudo terminal in a safe way. */ static int pts_name (int fd, char **pts, size_t buf_len); - +extern __typeof(statfs) __libc_statfs; +libc_hidden_proto(__libc_statfs) #endif /* Change the ownership and access permission of the slave pseudo @@ -59,7 +60,7 @@ grantpt (attribute_unused int fd) if (pts_name (fd, &buf, sizeof (_buf))) return -1; - if (statfs (buf, &fsbuf) < 0) + if (__libc_statfs (buf, &fsbuf) < 0) return -1; /* If the slave pseudo terminal lives on a `devpts' filesystem, the |