1997-06-29 06:55:02 +00:00
|
|
|
/* utility functions for `patch' */
|
|
|
|
|
1998-01-04 20:25:29 +00:00
|
|
|
/* $Id: util.h,v 1.15 1997/07/16 12:26:36 eggert Exp $ */
|
1997-06-29 06:55:02 +00:00
|
|
|
|
|
|
|
int ok_to_reverse PARAMS ((char const *, ...)) __attribute__ ((format (printf, 1, 2)));
|
|
|
|
void ask PARAMS ((char const *, ...)) __attribute__ ((format (printf, 1, 2)));
|
|
|
|
void say PARAMS ((char const *, ...)) __attribute__ ((format (printf, 1, 2)));
|
|
|
|
|
|
|
|
void fatal PARAMS ((char const *, ...))
|
|
|
|
__attribute__ ((noreturn, format (printf, 1, 2)));
|
|
|
|
void pfatal PARAMS ((char const *, ...))
|
|
|
|
__attribute__ ((noreturn, format (printf, 1, 2)));
|
|
|
|
|
|
|
|
char *fetchname PARAMS ((char *, int, time_t *));
|
|
|
|
char *savebuf PARAMS ((char const *, size_t));
|
|
|
|
char *savestr PARAMS ((char const *));
|
|
|
|
char const *version_controller PARAMS ((char const *, int, struct stat const *, char **, char **));
|
|
|
|
int version_get PARAMS ((char const *, char const *, int, int, char const *, struct stat *));
|
|
|
|
int create_file PARAMS ((char const *, int, mode_t));
|
|
|
|
int systemic PARAMS ((char const *));
|
|
|
|
void Fseek PARAMS ((FILE *, file_offset, int));
|
|
|
|
void copy_file PARAMS ((char const *, char const *, mode_t));
|
|
|
|
void exit_with_signal PARAMS ((int)) __attribute__ ((noreturn));
|
|
|
|
void ignore_signals PARAMS ((void));
|
|
|
|
void init_time PARAMS ((void));
|
1998-01-04 20:25:29 +00:00
|
|
|
void memory_fatal PARAMS ((void)) __attribute__ ((noreturn));
|
1997-06-29 06:55:02 +00:00
|
|
|
void move_file PARAMS ((char const *, char *, mode_t, int));
|
1998-01-04 20:25:29 +00:00
|
|
|
void read_fatal PARAMS ((void)) __attribute__ ((noreturn));
|
1997-06-29 06:55:02 +00:00
|
|
|
void remove_prefix PARAMS ((char *, size_t));
|
|
|
|
void removedirs PARAMS ((char *));
|
|
|
|
void set_signals PARAMS ((int));
|
1998-01-04 20:25:29 +00:00
|
|
|
void write_fatal PARAMS ((void)) __attribute__ ((noreturn));
|