Diff for /embedaddon/rsync/proto.h between versions 1.1 and 1.1.1.3

version 1.1, 2012/02/17 15:09:30 version 1.1.1.3, 2016/11/01 09:54:32
Line 1 Line 1
 /* This file is automatically generated with "make proto". DO NOT EDIT */  /* This file is automatically generated with "make proto". DO NOT EDIT */
   
int allow_access(char *addr, char *host, char *allow_list, char *deny_list);int allow_access(const char *addr, const char **host_ptr, int i);
 void free_acl(stat_x *sxp);  void free_acl(stat_x *sxp);
 int get_acl(const char *fname, stat_x *sxp);  int get_acl(const char *fname, stat_x *sxp);
 void send_acl(int f, stat_x *sxp);  void send_acl(int f, stat_x *sxp);
Line 15  char *auth_server(int f_in, int f_out, int module, con Line 15  char *auth_server(int f_in, int f_out, int module, con
                   const char *addr, const char *leader);                    const char *addr, const char *leader);
 void auth_client(int fd, const char *user, const char *challenge);  void auth_client(int fd, const char *user, const char *challenge);
 char *get_backup_name(const char *fname);  char *get_backup_name(const char *fname);
int make_bak_dir(const char *fullpath);int make_backup(const char *fname, BOOL prefer_rename);
int make_backup(const char *fname); 
 void write_stream_flags(int fd);  void write_stream_flags(int fd);
 void read_stream_flags(int fd);  void read_stream_flags(int fd);
 void check_batch_flags(void);  void check_batch_flags(void);
 void write_batch_shell_file(int argc, char *argv[], int file_arg_cnt);  void write_batch_shell_file(int argc, char *argv[], int file_arg_cnt);
 uint32 get_checksum1(char *buf1, int32 len);  uint32 get_checksum1(char *buf1, int32 len);
 void get_checksum2(char *buf, int32 len, char *sum);  void get_checksum2(char *buf, int32 len, char *sum);
void file_checksum(char *fname, char *sum, OFF_T size);void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum);
 void sum_init(int seed);  void sum_init(int seed);
 void sum_update(const char *p, int32 len);  void sum_update(const char *p, int32 len);
 int sum_end(char *sum);  int sum_end(char *sum);
Line 59  int daemon_main(void); Line 58  int daemon_main(void);
 void set_allow_inc_recurse(void);  void set_allow_inc_recurse(void);
 void setup_protocol(int f_out,int f_in);  void setup_protocol(int f_out,int f_in);
 int claim_connection(char *fname, int max_connections);  int claim_connection(char *fname, int max_connections);
   enum delret delete_item(char *fbuf, uint16 mode, uint16 flags);
   uint16 get_del_for_flag(uint16 mode);
 void set_filter_dir(const char *dir, unsigned int dirlen);  void set_filter_dir(const char *dir, unsigned int dirlen);
 void *push_local_filters(const char *dir, unsigned int dirlen);  void *push_local_filters(const char *dir, unsigned int dirlen);
 void pop_local_filters(void *mem);  void pop_local_filters(void *mem);
 void change_local_filter_dir(const char *dname, int dlen, int dir_depth);  void change_local_filter_dir(const char *dname, int dlen, int dir_depth);
int check_filter(struct filter_list_struct *listp, enum logcode code,int check_filter(filter_rule_list *listp, enum logcode code,
                  const char *name, int name_is_dir);                   const char *name, int name_is_dir);
void parse_rule(struct filter_list_struct *listp, const char *pattern,const filter_rule *rule_template(uint32 rflags);
                uint32 mflags, int xflags);void parse_filter_str(filter_rule_list *listp, const char *rulestr,
void parse_filter_file(struct filter_list_struct *listp, const char *fname,                     const filter_rule *template, int xflags);
                       uint32 mflags, int xflags);void parse_filter_file(filter_rule_list *listp, const char *fname, const filter_rule *template, int xflags);
char *get_rule_prefix(int match_flags, const char *pat, int for_xfer,char *get_rule_prefix(filter_rule *rule, const char *pat, int for_xfer,
                       unsigned int *plen_ptr);                        unsigned int *plen_ptr);
 void send_filter_list(int f_out);  void send_filter_list(int f_out);
 void recv_filter_list(int f_in);  void recv_filter_list(int f_in);
 int sparse_end(int f, OFF_T size);  int sparse_end(int f, OFF_T size);
 int flush_write_file(int f);  int flush_write_file(int f);
 int write_file(int f, char *buf, int len);  int write_file(int f, char *buf, int len);
struct map_struct *map_file(int fd, OFF_T len, int32 read_size,struct map_struct *map_file(int fd, OFF_T len, int32 read_size, int32 blk_size);
                            int32 blk_size); 
 char *map_ptr(struct map_struct *map, OFF_T offset, int32 len);  char *map_ptr(struct map_struct *map, OFF_T offset, int32 len);
 int unmap_file(struct map_struct *map);  int unmap_file(struct map_struct *map);
 void init_flist(void);  void init_flist(void);
Line 89  struct file_struct *make_file(const char *fname, struc Line 89  struct file_struct *make_file(const char *fname, struc
 void unmake_file(struct file_struct *file);  void unmake_file(struct file_struct *file);
 void send_extra_file_list(int f, int at_least);  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 *send_file_list(int f, int argc, char *argv[]);
struct file_list *recv_file_list(int f);struct file_list *recv_file_list(int f, int dir_ndx);
 void recv_additional_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(struct file_list *flist, struct file_struct *f);
   int flist_find_name(struct file_list *flist, const char *fname, int want_dir_match);
 int flist_find_ignore_dirness(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);  void clear_file(struct file_struct *file);
 struct file_list *flist_new(int flags, char *msg);  struct file_list *flist_new(int flags, char *msg);
Line 106  void itemize(const char *fnamecmp, struct file_struct  Line 107  void itemize(const char *fnamecmp, struct file_struct 
              stat_x *sxp, int32 iflags, uchar fnamecmp_type,               stat_x *sxp, int32 iflags, uchar fnamecmp_type,
              const char *xname);               const char *xname);
 int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st);  int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st);
   int atomic_create(struct file_struct *file, char *fname, const char *slnk, const char *hlnk,
                     dev_t rdev, stat_x *sxp, int del_for_flag);
 void check_for_finished_files(int itemizing, enum logcode code, int check_redo);  void check_for_finished_files(int itemizing, enum logcode code, int check_redo);
 void generate_files(int f_out, const char *local_name);  void generate_files(int f_out, const char *local_name);
 struct hashtable *hashtable_create(int size, int key64);  struct hashtable *hashtable_create(int size, int key64);
Line 115  void init_hard_links(void); Line 118  void init_hard_links(void);
 struct ht_int64_node *idev_find(int64 dev, int64 ino);  struct ht_int64_node *idev_find(int64 dev, int64 ino);
 void idev_destroy(void);  void idev_destroy(void);
 void match_hard_links(struct file_list *flist);  void match_hard_links(struct file_list *flist);
int hard_link_check(struct file_struct *file, int ndx, const char *fname,int hard_link_check(struct file_struct *file, int ndx, char *fname,
                     int statret, stat_x *sxp, int itemizing,                      int statret, stat_x *sxp, int itemizing,
                     enum logcode code);                      enum logcode code);
 int hard_link_one(struct file_struct *file, const char *fname,  int hard_link_one(struct file_struct *file, const char *fname,
Line 124  void finish_hard_link(struct file_struct *file, const  Line 127  void finish_hard_link(struct file_struct *file, const 
                       STRUCT_STAT *stp, int itemizing, enum logcode code,                        STRUCT_STAT *stp, int itemizing, enum logcode code,
                       int alt_dest);                        int alt_dest);
 int skip_hard_link(struct file_struct *file, struct file_list **flist_p);  int skip_hard_link(struct file_struct *file, struct file_list **flist_p);
   void reduce_iobuf_size(xbuf *out, size_t new_size);
   void restore_iobuf_size(xbuf *out);
   void noop_io_until_death(void);
   int send_msg(enum msgcode code, const char *buf, size_t len, int convert);
   void send_msg_int(enum msgcode code, int num);
 void io_set_sock_fds(int f_in, int f_out);  void io_set_sock_fds(int f_in, int f_out);
 void set_io_timeout(int secs);  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);  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_redo_num(void);
 int get_hlink_num(void);  int get_hlink_num(void);
void io_set_filesfrom_fds(int f_in, int f_out);void start_filesfrom_forwarding(int fd);
 int read_line(int fd, char *buf, size_t bufsiz, int flags);  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,  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);                 char ***argv_p, int *argc_p, char **request_p);
int io_start_buffering_out(int f_out);BOOL io_start_buffering_out(int f_out);
int io_start_buffering_in(int f_in);BOOL io_start_buffering_in(int f_in);
void io_end_buffering_in(void);void io_end_buffering_in(BOOL free_buffers);
void io_end_buffering_out(void);void io_end_buffering_out(BOOL free_buffers);
 void maybe_flush_socket(int important);  void maybe_flush_socket(int important);
void maybe_send_keepalive(void);void maybe_send_keepalive(time_t now, int flags);
void start_flist_forward(int f_in);void start_flist_forward(int ndx);
 void stop_flist_forward(void);  void stop_flist_forward(void);
   void wait_for_receiver(void);
 unsigned short read_shortint(int f);  unsigned short read_shortint(int f);
 int32 read_int(int f);  int32 read_int(int f);
 int32 read_varint(int f);  int32 read_varint(int f);
Line 157  uchar read_byte(int f); Line 161  uchar read_byte(int f);
 int read_vstring(int f, char *buf, int bufsize);  int read_vstring(int f, char *buf, int bufsize);
 void read_sum_head(int f, struct sum_struct *sum);  void read_sum_head(int f, struct sum_struct *sum);
 void write_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 io_flush(int flush_it_all);
 void write_shortint(int f, unsigned short x);  void write_shortint(int f, unsigned short x);
 void write_int(int f, int32 x);  void write_int(int f, int32 x);
 void write_varint(int f, int32 x);  void write_varint(int f, int32 x);
 void write_varlong(int f, int64 x, uchar min_bytes);  void write_varlong(int f, int64 x, uchar min_bytes);
 void write_longint(int f, int64 x);  void write_longint(int f, int64 x);
   void write_bigbuf(int f, const char *buf, size_t len);
 void write_buf(int f, const char *buf, size_t len);  void write_buf(int f, const char *buf, size_t len);
 void write_sbuf(int f, const char *buf);  void write_sbuf(int f, const char *buf);
 void write_byte(int f, uchar c);  void write_byte(int f, uchar c);
 void write_vstring(int f, const char *str, int len);  void write_vstring(int f, const char *str, int len);
 void write_ndx(int f, int32 ndx);  void write_ndx(int f, int32 ndx);
 int32 read_ndx(int f);  int32 read_ndx(int f);
int read_line_old(int f, char *buf, size_t bufsiz);int read_line_old(int fd, char *buf, size_t bufsiz, int eof_ok);
 void io_printf(int fd, const char *format, ...);  void io_printf(int fd, const char *format, ...);
void io_start_multiplex_out(void);void io_start_multiplex_out(int fd);
void io_start_multiplex_in(void);void io_start_multiplex_in(int fd);
int io_multiplex_write(enum msgcode code, const char *buf, size_t len, int convert);int io_end_multiplex_in(int mode);
void io_end_multiplex_in(void);int io_end_multiplex_out(int mode);
void io_end_multiplex_out(void); 
 void start_write_batch(int fd);  void start_write_batch(int fd);
 void stop_write_batch(void);  void stop_write_batch(void);
 char *lp_bind_address(void);  char *lp_bind_address(void);
 char *lp_motd_file(void);  char *lp_motd_file(void);
 char *lp_pid_file(void);  char *lp_pid_file(void);
 char *lp_socket_options(void);  char *lp_socket_options(void);
   int lp_listen_backlog(void);
 int lp_rsync_port(void);  int lp_rsync_port(void);
 char *lp_auth_users(int module_id);  char *lp_auth_users(int module_id);
 char *lp_charset(int module_id);  char *lp_charset(int module_id);
Line 213  int lp_max_verbosity(int module_id); Line 218  int lp_max_verbosity(int module_id);
 int lp_syslog_facility(int module_id);  int lp_syslog_facility(int module_id);
 int lp_timeout(int module_id);  int lp_timeout(int module_id);
 BOOL lp_fake_super(int module_id);  BOOL lp_fake_super(int module_id);
   BOOL lp_forward_lookup(int module_id);
 BOOL lp_ignore_errors(int module_id);  BOOL lp_ignore_errors(int module_id);
 BOOL lp_ignore_nonreadable(int module_id);  BOOL lp_ignore_nonreadable(int module_id);
 BOOL lp_list(int module_id);  BOOL lp_list(int module_id);
 BOOL lp_munge_symlinks(int module_id);  BOOL lp_munge_symlinks(int module_id);
 BOOL lp_numeric_ids(int module_id);  BOOL lp_numeric_ids(int module_id);
 BOOL lp_read_only(int module_id);  BOOL lp_read_only(int module_id);
   BOOL lp_reverse_lookup(int module_id);
 BOOL lp_strict_modes(int module_id);  BOOL lp_strict_modes(int module_id);
 BOOL lp_transfer_logging(int module_id);  BOOL lp_transfer_logging(int module_id);
 BOOL lp_use_chroot(int module_id);  BOOL lp_use_chroot(int module_id);
 BOOL lp_write_only(int module_id);  BOOL lp_write_only(int module_id);
BOOL lp_load(char *pszFname, int globals_only);int lp_load(char *pszFname, int globals_only);
int lp_numservices(void);BOOL set_dparams(int syntax_check_only);
 int lp_num_modules(void);
 int lp_number(char *name);  int lp_number(char *name);
 void log_init(int restart);  void log_init(int restart);
 void logfile_close(void);  void logfile_close(void);
Line 233  void rwrite(enum logcode code, const char *buf, int le Line 241  void rwrite(enum logcode code, const char *buf, int le
 void rprintf(enum logcode code, const char *format, ...);  void rprintf(enum logcode code, const char *format, ...);
 void rsyserr(enum logcode code, int errcode, const char *format, ...);  void rsyserr(enum logcode code, int errcode, const char *format, ...);
 void rflush(enum logcode code);  void rflush(enum logcode code);
   void remember_initial_stats(void);
 int log_format_has(const char *format, char esc);  int log_format_has(const char *format, char esc);
void log_item(enum logcode code, struct file_struct *file,void log_item(enum logcode code, struct file_struct *file, int iflags, const char *hlink);
              struct stats *initial_stats, int iflags, const char *hlink); 
 void maybe_log_item(struct file_struct *file, int iflags, int itemizing,  void maybe_log_item(struct file_struct *file, int iflags, int itemizing,
                     const char *buf);                      const char *buf);
 void log_delete(const char *fname, int mode);  void log_delete(const char *fname, int mode);
 void log_exit(int code, const char *file, int line);  void log_exit(int code, const char *file, int line);
 pid_t wait_process(pid_t pid, int *status_ptr, int flags);  pid_t wait_process(pid_t pid, int *status_ptr, int flags);
   void write_del_stats(int f);
   void read_del_stats(int f);
 int child_main(int argc, char *argv[]);  int child_main(int argc, char *argv[]);
 void start_server(int f_in, int f_out, int argc, char *argv[]);  void start_server(int f_in, int f_out, int argc, char *argv[]);
 int client_run(int f_in, int f_out, pid_t pid, int argc, char *argv[]);  int client_run(int f_in, int f_out, pid_t pid, int argc, char *argv[]);
RETSIGTYPE remember_children(UNUSED(int val));void remember_children(UNUSED(int val));
 const char *get_panic_action(void);  const char *get_panic_action(void);
 int main(int argc,char *argv[]);  int main(int argc,char *argv[]);
 void match_sums(int f, struct sum_struct *s, struct map_struct *buf, OFF_T len);  void match_sums(int f, struct sum_struct *s, struct map_struct *buf, OFF_T len);
 void match_report(void);  void match_report(void);
   void limit_output_verbosity(int level);
   void reset_output_levels(void);
   void negate_output_levels(void);
 void usage(enum logcode F);  void usage(enum logcode F);
 void option_error(void);  void option_error(void);
 int parse_arguments(int *argc_p, const char ***argv_p);  int parse_arguments(int *argc_p, const char ***argv_p);
 void server_options(char **args, int *argc_p);  void server_options(char **args, int *argc_p);
 char *check_for_hostspec(char *s, char **host_ptr, int *port_ptr);  char *check_for_hostspec(char *s, char **host_ptr, int *port_ptr);
BOOL pm_process( char *FileName,int pm_process( char *FileName,
                  BOOL (*sfunc)(char *),                   BOOL (*sfunc)(char *),
                  BOOL (*pfunc)(char *, char *) );                   BOOL (*pfunc)(char *, char *) );
 pid_t piped_child(char **command, int *f_in, int *f_out);  pid_t piped_child(char **command, int *f_in, int *f_out);
Line 263  pid_t local_child(int argc, char **argv, int *f_in, in Line 276  pid_t local_child(int argc, char **argv, int *f_in, in
 void set_current_file_index(struct file_struct *file, int ndx);  void set_current_file_index(struct file_struct *file, int ndx);
 void end_progress(OFF_T size);  void end_progress(OFF_T size);
 void show_progress(OFF_T ofs, OFF_T size);  void show_progress(OFF_T ofs, OFF_T size);
int get_tmpname(char *fnametmp, const char *fname);int get_tmpname(char *fnametmp, const char *fname, BOOL make_unique);
 int open_tmpfile(char *fnametmp, const char *fname, struct file_struct *file);  int open_tmpfile(char *fnametmp, const char *fname, struct file_struct *file);
int recv_files(int f_in, char *local_name);int recv_files(int f_in, int f_out, char *local_name);
 void setup_iconv(void);  void setup_iconv(void);
 int iconvbufs(iconv_t ic, xbuf *in, xbuf *out, int flags);  int iconvbufs(iconv_t ic, xbuf *in, xbuf *out, int flags);
 void send_protected_args(int fd, char *args[]);  void send_protected_args(int fd, char *args[]);
int read_ndx_and_attrs(int f_in, int *iflag_ptr, uchar *type_ptr,int read_ndx_and_attrs(int f_in, int f_out, int *iflag_ptr, uchar *type_ptr,
                        char *buf, int *len_ptr);                         char *buf, int *len_ptr);
 void free_sums(struct sum_struct *s);  void free_sums(struct sum_struct *s);
 mode_t dest_mode(mode_t flist_mode, mode_t stat_mode, int dflt_perms,  mode_t dest_mode(mode_t flist_mode, mode_t stat_mode, int dflt_perms,
                  int exists);                   int exists);
 int set_file_attrs(const char *fname, struct file_struct *file, stat_x *sxp,  int set_file_attrs(const char *fname, struct file_struct *file, stat_x *sxp,
                    const char *fnamecmp, int flags);                     const char *fnamecmp, int flags);
RETSIGTYPE sig_int(UNUSED(int val));void sig_int(int sig_num);
 int finish_transfer(const char *fname, const char *fnametmp,  int finish_transfer(const char *fname, const char *fnametmp,
                     const char *fnamecmp, const char *partialptr,                      const char *fnamecmp, const char *partialptr,
                     struct file_struct *file, int ok_to_set_time,                      struct file_struct *file, int ok_to_set_time,
Line 295  int is_a_socket(int fd); Line 308  int is_a_socket(int fd);
 void start_accept_loop(int port, int (*fn)(int, int));  void start_accept_loop(int port, int (*fn)(int, int));
 void set_socket_options(int fd, char *options);  void set_socket_options(int fd, char *options);
 int do_unlink(const char *fname);  int do_unlink(const char *fname);
int do_symlink(const char *fname1, const char *fname2);int do_symlink(const char *lnk, const char *fname);
 ssize_t do_readlink(const char *path, char *buf, size_t bufsiz);
 int do_link(const char *fname1, const char *fname2);  int do_link(const char *fname1, const char *fname2);
 int do_lchown(const char *path, uid_t owner, gid_t group);  int do_lchown(const char *path, uid_t owner, gid_t group);
 int do_mknod(const char *pathname, mode_t mode, dev_t dev);  int do_mknod(const char *pathname, mode_t mode, dev_t dev);
Line 315  int do_utimensat(const char *fname, time_t modtime, ui Line 329  int do_utimensat(const char *fname, time_t modtime, ui
 int do_lutimes(const char *fname, time_t modtime, uint32 mod_nsec);  int do_lutimes(const char *fname, time_t modtime, uint32 mod_nsec);
 int do_utimes(const char *fname, time_t modtime, uint32 mod_nsec);  int do_utimes(const char *fname, time_t modtime, uint32 mod_nsec);
 int do_utime(const char *fname, time_t modtime, UNUSED(uint32 mod_nsec));  int do_utime(const char *fname, time_t modtime, UNUSED(uint32 mod_nsec));
   int do_fallocate(int fd, OFF_T offset, OFF_T length);
   int do_open_nofollow(const char *pathname, int flags);
 void set_compression(const char *fname);  void set_compression(const char *fname);
 void send_token(int f, int32 token, struct map_struct *buf, OFF_T offset,  void send_token(int f, int32 token, struct map_struct *buf, OFF_T offset,
                 int32 n, int32 toklen);                  int32 n, int32 toklen);
 int32 recv_token(int f, char **data);  int32 recv_token(int f, char **data);
 void see_token(char *data, int32 toklen);  void see_token(char *data, int32 toklen);
   char *uid_to_user(uid_t uid);
   char *gid_to_group(gid_t gid);
   int user_to_uid(const char *name, uid_t *uid_p, BOOL num_ok);
   int group_to_gid(const char *name, gid_t *gid_p, BOOL num_ok);
 uid_t match_uid(uid_t uid);  uid_t match_uid(uid_t uid);
 gid_t match_gid(gid_t gid, uint16 *flags_ptr);  gid_t match_gid(gid_t gid, uint16 *flags_ptr);
 const char *add_uid(uid_t uid);  const char *add_uid(uid_t uid);
Line 328  void send_id_list(int f); Line 348  void send_id_list(int f);
 uid_t recv_user_name(int f, uid_t uid);  uid_t recv_user_name(int f, uid_t uid);
 gid_t recv_group_name(int f, gid_t gid, uint16 *flags_ptr);  gid_t recv_group_name(int f, gid_t gid, uint16 *flags_ptr);
 void recv_id_list(int f, struct file_list *flist);  void recv_id_list(int f, struct file_list *flist);
   void parse_name_map(char *map, BOOL usernames);
   const char *getallgroups(uid_t uid, item_list *gid_list);
 void set_nonblocking(int fd);  void set_nonblocking(int fd);
 void set_blocking(int fd);  void set_blocking(int fd);
 int fd_pair(int fd[2]);  int fd_pair(int fd[2]);
 void print_child_argv(const char *prefix, char **cmd);  void print_child_argv(const char *prefix, char **cmd);
NORETURN void out_of_memory(const char *str);int set_modtime(const char *fname, time_t modtime, uint32 mod_nsec, mode_t mode);
NORETURN void overflow_exit(const char *str);int make_path(char *fname, int flags);
int set_modtime(const char *fname, time_t modtime, mode_t mode); 
int mkdir_defmode(char *fname); 
int create_directory_path(char *fname); 
 int full_write(int desc, const char *ptr, size_t len);  int full_write(int desc, const char *ptr, size_t len);
int copy_file(const char *source, const char *dest, int ofd,int copy_file(const char *source, const char *dest, int ofd, mode_t mode);
              mode_t mode, int create_bak_dir); 
 int robust_unlink(const char *fname);  int robust_unlink(const char *fname);
 int robust_rename(const char *from, const char *to, const char *partialptr,  int robust_rename(const char *from, const char *to, const char *partialptr,
                   int mode);                    int mode);
 pid_t do_fork(void);  pid_t do_fork(void);
 void kill_all(int sig);  void kill_all(int sig);
 int name_to_uid(const char *name, uid_t *uid_p);  
 int name_to_gid(const char *name, gid_t *gid_p);  
 int lock_range(int fd, int offset, int len);  int lock_range(int fd, int offset, int len);
 int glob_expand(const char *arg, char ***argv_p, int *argc_p, int *maxargs_p);  int glob_expand(const char *arg, char ***argv_p, int *argc_p, int *maxargs_p);
 void glob_expand_module(char *base1, char *arg, char ***argv_p, int *argc_p, int *maxargs_p);  void glob_expand_module(char *base1, char *arg, char ***argv_p, int *argc_p, int *maxargs_p);
Line 354  void strlower(char *s); Line 370  void strlower(char *s);
 size_t pathjoin(char *dest, size_t destsize, const char *p1, const char *p2);  size_t pathjoin(char *dest, size_t destsize, const char *p1, const char *p2);
 size_t stringjoin(char *dest, size_t destsize, ...);  size_t stringjoin(char *dest, size_t destsize, ...);
 int count_dir_elements(const char *p);  int count_dir_elements(const char *p);
unsigned int clean_fname(char *name, int flags);int clean_fname(char *name, int flags);
 char *sanitize_path(char *dest, const char *p, const char *rootdir, int depth,  char *sanitize_path(char *dest, const char *p, const char *rootdir, int depth,
                     int flags);                      int flags);
 int change_dir(const char *dir, int set_path_only);  int change_dir(const char *dir, int set_path_only);
Line 363  char *full_fname(const char *fn); Line 379  char *full_fname(const char *fn);
 char *partial_dir_fname(const char *fname);  char *partial_dir_fname(const char *fname);
 int handle_partial_dir(const char *fname, int create);  int handle_partial_dir(const char *fname, int create);
 int unsafe_symlink(const char *dest, const char *src);  int unsafe_symlink(const char *dest, const char *src);
 char *human_num(int64 num);  
 char *human_dnum(double dnum, int decimal_digits);  
 char *timestring(time_t t);  char *timestring(time_t t);
 int msleep(int t);  
 int cmp_time(time_t file1, time_t file2);  int cmp_time(time_t file1, time_t file2);
 int _Insure_trap_error(int a1, int a2, int a3, int a4, int a5, int a6);  int _Insure_trap_error(int a1, int a2, int a3, int a4, int a5, int a6);
 void *_new_array(unsigned long num, unsigned int size, int use_calloc);  
 void *_realloc_array(void *ptr, unsigned int size, size_t num);  
 const char *find_filename_suffix(const char *fn, int fn_len, int *len_ptr);  const char *find_filename_suffix(const char *fn, int fn_len, int *len_ptr);
uint32 fuzzy_distance(const char *s1, int len1, const char *s2, int len2);uint32 fuzzy_distance(const char *s1, unsigned len1, const char *s2, unsigned len2);
 struct bitbag *bitbag_create(int max_ndx);  struct bitbag *bitbag_create(int max_ndx);
 void bitbag_set_bit(struct bitbag *bb, int ndx);  void bitbag_set_bit(struct bitbag *bb, int ndx);
 void bitbag_clear_bit(struct bitbag *bb, int ndx);  void bitbag_clear_bit(struct bitbag *bb, int ndx);
Line 382  void flist_ndx_push(flist_ndx_list *lp, int ndx); Line 393  void flist_ndx_push(flist_ndx_list *lp, int ndx);
 int flist_ndx_pop(flist_ndx_list *lp);  int flist_ndx_pop(flist_ndx_list *lp);
 void *expand_item_list(item_list *lp, size_t item_size,  void *expand_item_list(item_list *lp, size_t item_size,
                        const char *desc, int incr);                         const char *desc, int incr);
   int msleep(int t);
   void *_new_array(unsigned long num, unsigned int size, int use_calloc);
   void *_realloc_array(void *ptr, unsigned int size, size_t num);
   const char *sum_as_hex(const char *sum);
   NORETURN void out_of_memory(const char *str);
   NORETURN void overflow_exit(const char *str);
 void free_xattr(stat_x *sxp);  void free_xattr(stat_x *sxp);
 int get_xattr(const char *fname, stat_x *sxp);  int get_xattr(const char *fname, stat_x *sxp);
 int copy_xattrs(const char *source, const char *dest);  int copy_xattrs(const char *source, const char *dest);
Line 403  int x_stat(const char *fname, STRUCT_STAT *fst, STRUCT Line 420  int x_stat(const char *fname, STRUCT_STAT *fst, STRUCT
 int x_lstat(const char *fname, STRUCT_STAT *fst, STRUCT_STAT *xst);  int x_lstat(const char *fname, STRUCT_STAT *fst, STRUCT_STAT *xst);
 int x_fstat(int fd, STRUCT_STAT *fst, STRUCT_STAT *xst);  int x_fstat(int fd, STRUCT_STAT *fst, STRUCT_STAT *xst);
 int sys_gettimeofday(struct timeval *tv);  int sys_gettimeofday(struct timeval *tv);
   char *do_big_num(int64 num, int human_flag, const char *fract);
   char *do_big_dnum(double dnum, int human_flag, int decimal_digits);

Removed from v.1.1  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>