⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 proto.h

📁 Rsync 3.0.5 source code
💻 H
📖 第 1 页 / 共 2 页
字号:
/* This file is automatically generated with "make proto". DO NOT EDIT */int allow_access(char *addr, char *host, char *allow_list, char *deny_list);void free_acl(stat_x *sxp);int get_acl(const char *fname, stat_x *sxp);void send_acl(stat_x *sxp, int f);void receive_acl(struct file_struct *file, int f);void cache_acl(struct file_struct *file, stat_x *sxp);int set_acl(const char *fname, const struct file_struct *file, stat_x *sxp);void match_acl_ids(void);int default_perms_for_dir(const char *dir);void base64_encode(const char *buf, int len, char *out, int pad);char *auth_server(int f_in, int f_out, int module, const char *host,		  const char *addr, const char *leader);void auth_client(int fd, const char *user, const char *challenge);char *get_backup_name(const char *fname);int make_bak_dir(const char *fullpath);int make_backup(const char *fname);void write_stream_flags(int fd);void read_stream_flags(int fd);void check_batch_flags(void);void write_batch_shell_file(int argc, char *argv[], int file_arg_cnt);uint32 get_checksum1(char *buf1, int32 len);void get_checksum2(char *buf, int32 len, char *sum);void file_checksum(char *fname, char *sum, OFF_T size);void sum_init(int seed);void sum_update(const char *p, int32 len);int sum_end(char *sum);struct chmod_mode_struct *parse_chmod(const char *modestr,				      struct chmod_mode_struct **root_mode_ptr);int tweak_mode(int mode, struct chmod_mode_struct *chmod_modes);int free_chmod_mode(struct chmod_mode_struct *chmod_modes);void close_all(void);NORETURN void _exit_cleanup(int code, const char *file, int line);void cleanup_disable(void);void cleanup_set(const char *fnametmp, const char *fname, struct file_struct *file,		 int fd_r, int fd_w);void cleanup_set_pid(pid_t pid);char *client_addr(int fd);char *client_name(int fd);void client_sockaddr(int fd,		     struct sockaddr_storage *ss,		     socklen_t *ss_len);int lookup_name(int fd, const struct sockaddr_storage *ss,		socklen_t ss_len,		char *name_buf, size_t name_buf_size,		char *port_buf, size_t port_buf_size);int compare_addrinfo_sockaddr(const struct addrinfo *ai,			      const struct sockaddr_storage *ss);int check_name(int fd,	       const struct sockaddr_storage *ss,	       char *name_buf, size_t name_buf_size);int start_socket_client(char *host, int remote_argc, char *remote_argv[],			int argc, char *argv[]);int start_inband_exchange(int f_in, int f_out, const char *user, int argc, char *argv[]);int start_daemon(int f_in, int f_out);int daemon_main(void);void set_allow_inc_recurse(void);void setup_protocol(int f_out,int f_in);int claim_connection(char *fname, int max_connections);void set_filter_dir(const char *dir, unsigned int dirlen);void *push_local_filters(const char *dir, unsigned int dirlen);void pop_local_filters(void *mem);void change_local_filter_dir(const char *dname, int dlen, int dir_depth);int check_filter(struct filter_list_struct *listp, enum logcode code,		 const char *name, int name_is_dir);void parse_rule(struct filter_list_struct *listp, const char *pattern,		uint32 mflags, int xflags);void parse_filter_file(struct filter_list_struct *listp, const char *fname,		       uint32 mflags, int xflags);char *get_rule_prefix(int match_flags, const char *pat, int for_xfer,		      unsigned int *plen_ptr);void send_filter_list(int f_out);void recv_filter_list(int f_in);int sparse_end(int f);int flush_write_file(int f);int write_file(int f, char *buf, int len);struct map_struct *map_file(int fd, OFF_T len, int32 read_size,			    int32 blk_size);char *map_ptr(struct map_struct *map, OFF_T offset, int32 len);int unmap_file(struct map_struct *map);void init_flist(void);void show_flist_stats(void);int link_stat(const char *path, STRUCT_STAT *stp, int follow_dirlinks);int change_pathname(struct file_struct *file, const char *dir, int dirlen);struct file_struct *make_file(const char *fname, struct file_list *flist,			      STRUCT_STAT *stp, int flags, int filter_level);void unmake_file(struct file_struct *file);void send_extra_file_list(int f, int at_least);struct file_list *send_file_list(int f, int argc, char *argv[]);struct file_list *recv_file_list(int f);void recv_additional_file_list(int f);int flist_find(struct file_list *flist, struct file_struct *f);int flist_find_ignore_dirness(struct file_list *flist, struct file_struct *f);void clear_file(struct file_struct *file);struct file_list *flist_new(int flags, char *msg);void flist_free(struct file_list *flist);int f_name_cmp(const struct file_struct *f1, const struct file_struct *f2);int f_name_has_prefix(const struct file_struct *f1, const struct file_struct *f2);char *f_name_buf(void);char *f_name(const struct file_struct *f, char *fbuf);struct file_list *get_dirlist(char *dirname, int dlen, int ignore_filter_rules);int unchanged_attrs(const char *fname, struct file_struct *file, stat_x *sxp);void itemize(const char *fnamecmp, struct file_struct *file, int ndx, int statret,	     stat_x *sxp, int32 iflags, uchar fnamecmp_type,	     const char *xname);int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st);void check_for_finished_files(int itemizing, enum logcode code, int check_redo);void generate_files(int f_out, const char *local_name);struct hashtable *hashtable_create(int size, int key64);void hashtable_destroy(struct hashtable *tbl);void *hashtable_find(struct hashtable *tbl, int64 key, int allocate_if_missing);void init_hard_links(void);struct ht_int64_node *idev_find(int64 dev, int64 ino);void idev_destroy(void);void match_hard_links(struct file_list *flist);int hard_link_check(struct file_struct *file, int ndx, const char *fname,		    int statret, stat_x *sxp, int itemizing,		    enum logcode code);int hard_link_one(struct file_struct *file, const char *fname,		  const char *oldname, int terse);void finish_hard_link(struct file_struct *file, const char *fname, int fin_ndx,		      STRUCT_STAT *stp, int itemizing, enum logcode code,		      int alt_dest);int skip_hard_link(struct file_struct *file, struct file_list **flist_p);void io_set_sock_fds(int f_in, int f_out);void set_io_timeout(int secs);void set_msg_fd_in(int fd);void set_msg_fd_out(int fd);void increment_active_files(int ndx, int itemizing, enum logcode code);int send_msg(enum msgcode code, const char *buf, int len, int convert);void send_msg_int(enum msgcode code, int num);void wait_for_receiver(void);int get_redo_num(void);int get_hlink_num(void);void io_set_filesfrom_fds(int f_in, int f_out);int read_line(int fd, char *buf, size_t bufsiz, int flags);void read_args(int f_in, char *mod_name, char *buf, size_t bufsiz, int rl_nulls,	       char ***argv_p, int *argc_p, char **request_p);int io_start_buffering_out(int f_out);int io_start_buffering_in(int f_in);void io_end_buffering_in(void);void io_end_buffering_out(void);void maybe_flush_socket(int important);void maybe_send_keepalive(void);void start_flist_forward(int f_in);void stop_flist_forward();unsigned short read_shortint(int f);int32 read_int(int f);int32 read_varint(int f);int64 read_varlong(int f, uchar min_bytes);int64 read_longint(int f);void read_buf(int f, char *buf, size_t len);void read_sbuf(int f, char *buf, size_t len);uchar read_byte(int f);int read_vstring(int f, char *buf, int bufsize);void read_sum_head(int f, struct sum_struct *sum);void write_sum_head(int f, struct sum_struct *sum);int io_flush(int flush_it_all);void write_shortint(int f, unsigned short x);void write_int(int f, int32 x);void write_varint(int f, int32 x);void write_varlong(int f, int64 x, uchar min_bytes);void write_longint(int f, int64 x);void write_buf(int f, const char *buf, size_t len);void write_sbuf(int f, const char *buf);void write_byte(int f, uchar c);void write_vstring(int f, const char *str, int len);void write_ndx(int f, int32 ndx);int32 read_ndx(int f);int read_line_old(int f, char *buf, size_t bufsiz);void io_printf(int fd, const char *format, ...);void io_start_multiplex_out(void);void io_start_multiplex_in(void);int io_multiplex_write(enum msgcode code, const char *buf, size_t len, int convert);void io_end_multiplex_in(void);void io_end_multiplex_out(void);void start_write_batch(int fd);void stop_write_batch(void);char *lp_bind_address(void);char *lp_motd_file(void);char *lp_pid_file(void);char *lp_socket_options(void);int lp_rsync_port(void);char *lp_auth_users(int module_id);char *lp_charset(int module_id);char *lp_comment(int module_id);char *lp_dont_compress(int module_id);char *lp_exclude(int module_id);char *lp_exclude_from(int module_id);char *lp_filter(int module_id);char *lp_gid(int module_id);char *lp_hosts_allow(int module_id);char *lp_hosts_deny(int module_id);char *lp_include(int module_id);char *lp_include_from(int module_id);char *lp_incoming_chmod(int module_id);char *lp_lock_file(int module_id);char *lp_log_file(int module_id);char *lp_log_format(int module_id);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -