[BACK]Return to util.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / patch

File: [local] / src / usr.bin / patch / util.h (download)

Revision 1.10, Mon Jul 28 18:35:36 2003 UTC (20 years, 10 months ago) by otto
Branch: MAIN
Changes since 1.9: +12 -11 lines

More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,
some rewriting of code to make it more readable and more KNF.

ok millert@ tedu@ deraadt@

/*	$OpenBSD: util.h,v 1.10 2003/07/28 18:35:36 otto Exp $	*/

char		*fetchname(const char *, int, int);
int		backup_file(const char *);
int		move_file(const char *, const char *);
int		copy_file(const char *, const char *);
void		say(const char *, ...)
		    __attribute__((__format__(__printf__, 1, 2)));
void		fatal(const char *, ...)
		    __attribute__((__format__(__printf__, 1, 2)));
void		pfatal(const char *, ...)
		    __attribute__((__format__(__printf__, 1, 2)));
void		ask(const char *, ...)
		    __attribute__((__format__(__printf__, 1, 2)));
char		*savestr(const char *);
void		set_signals(int);
void		ignore_signals(void);
void		makedirs(const char *, bool);
void		version(void);
void            my_exit(int) __attribute__((noreturn));