File:  [Apple XNU] / GNUtools / cctools / include / stuff / errors.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:45:50 2018 UTC (8 years, 2 months ago) by root
Branches: MAIN, Apple
CVS tags: HEAD, GNUtools33
GNU tools for NeXTSTEP 3.3

#import "mach/mach.h"

/* user defined (imported) */
extern char *progname;

/* defined in errors.c */
extern unsigned long errors;	/* number of detected calls to error() */

extern void warning(
    const char *format, ...) __attribute__ ((format (printf, 1, 2)));
extern void error(
    const char *format, ...) __attribute__ ((format (printf, 1, 2)));
extern void error_with_arch(
    const char *arch_name,
    const char *format, ...) __attribute__ ((format (printf, 2, 3)));
extern void system_error(
    const char *format, ...) __attribute__ ((format (printf, 1, 2)));
extern void fatal(
    const char *format, ...) __attribute__ ((format (printf, 1, 2)));
extern void system_fatal(
    const char *format, ...) __attribute__ ((format (printf, 1, 2)));
extern void my_mach_error(
    kern_return_t r,
    char *format, ...) __attribute__ ((format (printf, 2, 3)));
extern void mach_fatal(
    kern_return_t r,
    char *format, ...) __attribute__ ((format (printf, 2, 3)));

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.