summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fdopen.c
diff options
context:
space:
mode:
authorJason Evans <jasone@FreeBSD.org>2000-01-27 23:07:25 +0000
committerJason Evans <jasone@FreeBSD.org>2000-01-27 23:07:25 +0000
commit9233c4d9426e03b28e043baeefb6d5a37dc4086e (patch)
tree8606358bf2ae9c436cce380d290e7a73f9cddfc6 /lib/libc/stdio/fdopen.c
parent072229cdbb757229b7e11f102da326679db27d0e (diff)
Notes
Diffstat (limited to 'lib/libc/stdio/fdopen.c')
-rw-r--r--lib/libc/stdio/fdopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/fdopen.c b/lib/libc/stdio/fdopen.c
index 1c56a9d466b6..44341b39a500 100644
--- a/lib/libc/stdio/fdopen.c
+++ b/lib/libc/stdio/fdopen.c
@@ -63,7 +63,7 @@ fdopen(fd, mode)
return (NULL);
/* Make sure the mode the user wants is a subset of the actual mode. */
- if ((fdflags = _libc_fcntl(fd, F_GETFL, 0)) < 0)
+ if ((fdflags = _fcntl(fd, F_GETFL, 0)) < 0)
return (NULL);
tmp = fdflags & O_ACCMODE;
if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) {