Loading...
--- Libc/Libc-1725.40.4/stdio/FreeBSD/fdopen.c
+++ Libc/Libc-763.12/stdio/FreeBSD/fdopen.c
@@ -30,15 +30,6 @@
* SUCH DAMAGE.
*/
-#ifdef VARIANT_DARWINEXTSN
-#define _DARWIN_UNLIMITED_STREAMS
-#define COUNT 0
-#elif defined(VARIANT_LEGACY)
-#define COUNT 0
-#else
-#define COUNT 1
-#endif
-
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)fdopen.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
@@ -54,15 +45,14 @@
#include <limits.h>
#include "un-namespace.h"
#include "local.h"
-#include "libc_hooks_impl.h"
FILE *
-fdopen(int fd, const char *mode)
+fdopen(fd, mode)
+ int fd;
+ const char *mode;
{
FILE *fp;
int flags, oflags, fdflags, tmp;
-
- libc_hooks_will_read_cstring(mode);
/*
* File descriptors are a full int, but _file is only a short.
@@ -88,7 +78,7 @@
return (NULL);
}
- if ((fp = __sfp(COUNT)) == NULL)
+ if ((fp = __sfp()) == NULL)
return (NULL);
fp->_flags = flags;
/*