#include <ctype.h>#include <errno.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>#include <utime.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/wait.h>#include <dirent.h>#include <fcntl.h>#include <pwd.h>#include <signal.h>#include <unistd.h>#include <net/gen/netdb.h>#include <net/netlib.h>Include dependency graph for rcp.c:

Go to the source code of this file.
Data Structures | |
| struct | buffer |
Defines | |
| #define | NAMESERVER |
| #define | PROTO(func, args) func () |
| #define | vfork fork |
| #define | ga() (void) write(rem, "", 1) |
| #define | atime utimbuf.actime |
| #define | mtime utimbuf.modtime |
| #define | SCREWUP(str) { whopp = str; goto screwup; } |
| #define | getnum(t) (t) = 0; while (isdigit(*cp)) (t) = (t) * 10 + (*cp++ - '0'); |
Functions | |
| PROTO (int main,(int argc, char *argv[])) | |
| PROTO (void lostconn,(int sig)) | |
| PROTO (void error,(char *fmt,...)) | |
| PROTO (int response,(void)) | |
| PROTO (void source,(int argc, char *argv[])) | |
| PROTO (void usage,(void)) | |
| PROTO (char *colon,(char *cp)) | |
| PROTO (int okname,(char *cp0)) | |
| PROTO (int susystem,(char *s)) | |
| PROTO (void verifydir,(char *cp)) | |
| PROTO (void rsource,(char *name, struct stat *statp)) | |
| PROTO (struct buffer *allocbuf,(struct buffer *bp, int fd, int blksize)) | |
| main (int argc, char **argv) | |
| void | verifydir (char *cp) |
| char * | colon (char *cp) |
| int | okname (char *cp0) |
| int | susystem (char *s) |
| void | source (int argc, char **argv) |
| void | rsource (char *name, struct stat *statp) |
| int | response () |
| void | lostconn (int sig) |
| void | sink (int argc, char **argv) |
| buffer * | allocbuf (struct buffer *bp, int fd, int blksize) |
| error (char *fmt) | |
| void | usage () |
Variables | |
| char | copyright [] |
| static char | sccsid [] = "@(#)rcp.c 1.1 87/12/21 SMI" |
| int | rem |
| int | errs |
| int | errno |
| int | iamremote |
| int | targetshouldbedirectory |
| int | iamrecursive |
| int | myuid |
| int | pflag |
| passwd * | pwd |
| int | userid |
| int | port |
|
|
Referenced by next_file(). |
|
|
Definition at line 85 of file rcp.c. Referenced by sink(). |
|
|
Referenced by getnum(), give_prompt(), and prnum(). |
|
|
Referenced by latest_version(), next_file(), unix_copydir(), and unix_write(). |
|
|
|
|
|
|
|
|
Referenced by sink(). |
|
|
Definition at line 66 of file rcp.c. Referenced by susystem(). |
|
||||||||||||||||
|
Definition at line 791 of file rcp.c. References errno, error, free, fstat, malloc(), stb, and strerror(). |
|
|
|
|
|
Definition at line 826 of file rcp.c. References BUFSIZ, cp, errs, iamremote, rem, strlen(), va_end, va_start, vsprintf(), and write. |
|
|
Definition at line 589 of file rcp.c. References exit(), fprintf(), iamremote, and stderr. Referenced by response(). |
|
||||||||||||
|
Definition at line 87 of file rcp.c. References BUFSIZ, exit(), fprintf(), getpwuid(), getservbyname(), getuid, host, i, NULL, perror(), pwd, response(), seteuid, sink(), source, sp, stderr, and usage. |
|
|
Definition at line 371 of file rcp.c. References bad, c, cp, fprintf(), isalpha, isdigit, and stderr. |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 557 of file rcp.c. References BUFSIZ, c, cp, errs, exit(), iamremote, lostconn(), read, rem, and write. |
|
||||||||||||
|
Definition at line 504 of file rcp.c. References BUFSIZ, closedir, d, dirent::d_ino, dirent::d_name, errno, error, opendir, pflag, readdir, rem, response(), source, sprintf(), stat::st_atime, stat::st_mode, stat::st_mtime, strcmp, strerror(), strlen(), strrchr(), and write. |
|
||||||||||||
|
Definition at line 599 of file rcp.c. References bp, buffer, BUFSIZ, cmdbuf, count, cp, dummy, error, errs, exit(), first, ga, iamremote, j, pflag, passwd::pw_uid, pwd, read, rem, S_IFDIR, SCREWUP, seteuid, size, stat::st_mode, stat, stb, strlen(), targetshouldbedirectory, time_t, umask, verifydir(), and write. Referenced by main(). |
|
||||||||||||
|
Definition at line 417 of file rcp.c. References bp, buffer, BUFSIZ, errno, error, open, stb, strerror(), and x. |
|
|
Definition at line 392 of file rcp.c. References _exit, execl, myuid, pid, PROTO, SIG_IGN, SIGINT, signal(), SIGQUIT, status, vfork, and wait. |
|
|
|
|
|
Definition at line 340 of file rcp.c. References ENOTDIR, errno, error, exit(), S_IFDIR, S_IFMT, stat::st_mode, stat, stb, and strerror(). Referenced by sink(). |
|
|
Initial value: "@(#) Copyright (c) 1983 Regents of the University of California.\n\ All rights reserved.\n" |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 71 of file rcp.c. Referenced by error(), lostconn(), response(), and sink(). |
|
|
Definition at line 73 of file rcp.c. Referenced by susystem(). |
|
|
|
|
|
|
|
|
Definition at line 75 of file rcp.c. Referenced by AreWeIn(), do_chown(), doPASS(), iruserok(), main(), make_header(), passnone(), passpass(), sink(), subvpath(), and write_log(). |
|
|
Definition at line 68 of file rcp.c. Referenced by adler32_combine(), cp_file(), doit(), error(), lunpipe(), main(), rd_wrfile(), response(), rsource(), sbx_aout(), sbx_ready(), select_region(), sink(), uInt64_qrm10(), and writedata(). |
|
|
|
|
|
Definition at line 71 of file rcp.c. Referenced by sink(). |
|
|
Definition at line 76 of file rcp.c. Referenced by cuserid(), and getlogin(). |
1.4.6