needs -I/sys for the miscfs directory, put the man pages in
[unix-history] / usr / src / lib / libc / stdio / findfp.c
index e68daee..d5172de 100644 (file)
@@ -9,13 +9,14 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)findfp.c   5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)findfp.c   5.10 (Berkeley) %G%";
 #endif /* LIBC_SCCS and not lint */
 
 #endif /* LIBC_SCCS and not lint */
 
-#include <stdio.h>
-#include <stdlib.h>
 #include <unistd.h>
 #include <unistd.h>
+#include <stdio.h>
 #include <errno.h>
 #include <errno.h>
+#include <stdlib.h>
+#include <string.h>
 #include "local.h"
 #include "glue.h"
 
 #include "local.h"
 #include "glue.h"
 
@@ -25,8 +26,8 @@ int   __sdidinit;
 #define        NDYNAMIC 10     /* add ten more whenever necessary */
 
 #define        std(flags, file) \
 #define        NDYNAMIC 10     /* add ten more whenever necessary */
 
 #define        std(flags, file) \
-       {0,0,0,flags,file,{0},0,__sF+file,__sread,__swrite,__sseek,__sclose}
-/*      p r w flags file _bf z  cookie    read    write    seek    close */
+       {0,0,0,flags,file,{0},0,__sF+file,__sclose,__sread,__sseek,__swrite}
+/*      p r w flags file _bf z  cookie      close    read    seek    write */
 
 static FILE usual[NSTATIC - 3];        /* the usual */
 static struct glue uglue = { 0, NSTATIC - 3, usual };
 
 static FILE usual[NSTATIC - 3];        /* the usual */
 static struct glue uglue = { 0, NSTATIC - 3, usual };