lseek takes an off_t
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 22 Jun 1992 05:27:13 +0000 (21:27 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 22 Jun 1992 05:27:13 +0000 (21:27 -0800)
SCCS-vsn: usr.bin/ftp/ftp.c 5.39

usr/src/usr.bin/ftp/ftp.c

index 79734c6..4564416 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)ftp.c      5.38 (Berkeley) %G%";
+static char sccsid[] = "@(#)ftp.c      5.39 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -22,13 +22,16 @@ static char sccsid[] = "@(#)ftp.c   5.38 (Berkeley) %G%";
 #include <arpa/ftp.h>
 #include <arpa/telnet.h>
 
 #include <arpa/ftp.h>
 #include <arpa/telnet.h>
 
-#include <stdio.h>
 #include <signal.h>
 #include <signal.h>
-#include <errno.h>
 #include <netdb.h>
 #include <fcntl.h>
 #include <netdb.h>
 #include <fcntl.h>
+#include <errno.h>
 #include <pwd.h>
 #include <varargs.h>
 #include <pwd.h>
 #include <varargs.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
 
 #include "ftp_var.h"
 
 
 #include "ftp_var.h"
 
@@ -38,10 +41,8 @@ int  data = -1;
 int    abrtflag = 0;
 int    ptflag = 0;
 struct sockaddr_in myctladdr;
 int    abrtflag = 0;
 int    ptflag = 0;
 struct sockaddr_in myctladdr;
-uid_t  getuid();
 sig_t  lostpeer();
 
 sig_t  lostpeer();
 
-extern char *strerror();
 extern int connected, errno;
 
 FILE   *cin, *cout;
 extern int connected, errno;
 
 FILE   *cin, *cout;
@@ -655,9 +656,7 @@ recvrequest(cmd, local, remote, lmode, printnames)
        register int c, d;
        struct timeval start, stop;
        struct stat st;
        register int c, d;
        struct timeval start, stop;
        struct stat st;
-       off_t lseek();
        void abortrecv();
        void abortrecv();
-       char *malloc();
 
        is_retr = strcmp(cmd, "RETR") == 0;
        if (is_retr && verbose && printnames) {
 
        is_retr = strcmp(cmd, "RETR") == 0;
        if (is_retr && verbose && printnames) {